Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "robot-config.h"
- vex::competition Competition;
- void pre_auton() {
- // Don't add anything here, the robot just needs this.
- }
- void autonomous() {
- }
- void usercontrol() {
- while (true) {
- // Do your motor stuff here
- vex::task::sleep(50);
- }
- }
- int main() {
- pre_auton();
- Competition.autonomous(autonomous);
- Competition.drivercontrol(usercontrol);
- while (true) {
- vex::task::sleep(100);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement