Reverse motor without configuration?

For some reason, I can’t do motor configuration. I want to try to reverse the motor in another way.

I know that there is a way by doing this:

LeftMotor.spin(directionType::rev);

That code makes the motor spin forever, but I want to set it to a certain amount of rotations.

Is there a way to make the motor run in a certain amount of rotations but also change the direction?

Thanks😁

you can use the .rotateFor(); command to move a specific amount of rotations then stop. The VCS API is a good place to see explanations and examples of the commands you can use.
http://help.vexcodingstudio.com/#pro/namespacevex/classvex_1_1motor/stop

2 Likes