Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. #include "robot-config.h"
  2.  
  3. vex::competition Competition;
  4.  
  5. void pre_auton() {
  6.     // Don't add anything here, the robot just needs this.
  7. }
  8.  
  9. void autonomous() {
  10.    
  11. }
  12.  
  13. void usercontrol() {
  14.     while (true) {
  15.         // Do your motor stuff here
  16.        
  17.         vex::task::sleep(50);
  18.     }
  19. }
  20.  
  21. int main() {
  22.     pre_auton();
  23.    
  24.     Competition.autonomous(autonomous);
  25.     Competition.drivercontrol(usercontrol);
  26.    
  27.     while (true) {
  28.         vex::task::sleep(100);
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement