1 motor Auton

i have been volentold to be the team programmer and i have done so well so far but i dont know how to do auton so i need a basic auton that spins 1 motor for the whole 15 seconds. any help would be deeply apreciated. i am using Vexcode Pro for V5.

You can get started with these tutorials:

https://kb.vex.com/hc/en-us/articles/360036286691-Competition-Template-Tutorials

https://kb.vex.com/hc/en-us/categories/360002333191-V5

5 Likes

I am doing this off the top of my head but this should work.

motorname.spin(forward, 100, percent);

try:

motorName.rotateFor(15, seconds, 100, velocityUnits::pct);
2 Likes