Motor Spasm/Siezing

Don’t do this as part of the loop (I assume that code is inside a loop). If motors are already spinning, using setVelocity will change the velocity immediately, so if going in reverse it would try and make the motor go forwards as sign is positive.

This post is a different situation, but reflects my view on setVelocity.