VCS V5 Encoder Autonomous


I wanted to use the built in V5 encoder values for skills and competition autonomous. I was wondering what the best way to do this is, because I am currently using speed and time for autonomous and it is very inaccurate and inconsistent. So if anyone else is using Vex Coding Studio and the built in encoders for autonomous, could you give me some info along with possibly some sample code? Thanks.


VEX wrote some ‘Example Programs’, the following are about how to make your robot drive forward, backward, and turn right/left. They describe how to use specific rotations instead of ‘time’.

You’ll want to figure out how to use startRotateFor and rotateFor, which allow you to tell the robot to go a specific number of wheel rotations. This will be more accurate than using time.

Example Programs

VCS Command Reference:

It will help you if you learn the difference between blocking and non-blocking functions: