Controller Code

So this is the code I’m trying to use to connect the motors to the controller to make it go straight:

Motor.spin(vex::directionType::fwd, Controller.Axis2.value(), vex::velocityUnits::pct);

The program says I have no errors and it downloads to the robot but it isn’t working. Is there something I’m doing wrong?

where are u running this code?

I wrote it on the V5 text and I’m running it on a V5 system. The code works it’s just the motors have a stutter in them. On one axis in the remote the motors work perfectly but on another they don’t work

Is it in a while loop? If not, it would only spin the value determined at the very beginning of driver control.

If you need more help please post (copy and paste from VexCode) all you code with ``` on the line above and the line below. Also let us know if you are using the competition template (or intend to do so).