Competition Setup¶
The template follows the VEX Competition structure:
pre_auton(), which callsrunPreAutonomous(), runs once at startup (sensor calibration, odometry, auton selector)autonomous(), which callsrunAutonomous(), runs during the autonomous periodusercontrol(), which callsrunDriver(), runs during the driver control periodmain()connects all of these automatically
Tips for success¶
- Read the comments in each file. They explain how each function and variable works
- Tune your PID values
- Test motions like
driveTo,turnToAngle, andmoveToPointone at a time - Use odometry for advanced navigation, with or without tracking wheels
- Try routines in the simulator before running them on the robot
- Ask for help on our Discord or from the VEX community