Help with autonomous code

This is API for the vex::drivetrain class and its usage example:

https://www.robotmesh.com/docs/vexv5-cpp/html/classvex_1_1drivetrain.html