SHARE
TWEET

Untitled

a guest Jul 18th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "robot-config.h"
  2.  
  3. vex::competition Competiton;
  4.  
  5. void pre_auton() {
  6.    
  7. }
  8.  
  9. //////////////////////////////////////////////////////
  10. //                                                  //
  11. // Your basic commands that you can copy and paste: //
  12. //                                                  //
  13. //////////////////////////////////////////////////////
  14.  
  15.  
  16. // Movement:
  17.  
  18. //L.spin(vex::directionType::fwd, 100, vex::velocityUnits::pct);
  19. //R.spin(vex::directionType::fwd, 100, vex::velocityUnits::pct);
  20. //                          ^                             ^
  21. //                          |________________________     |_____
  22. // Remember to change this for different directions |, and this | for degrees, percent and rpm
  23.  
  24. //L.stop(vex::brakeType::coast);
  25. //R.stop(vex::brakeType::coast);
  26.                          ^
  27. // coast, brake and hold |
  28.  
  29. // Sleep:
  30.  
  31. //vex::task::sleep()
  32. // vex::task::sleep(number) is the time in miliseconds, 1000 ms to 1 second
  33.  
  34.                              
  35. void autonomous() {
  36.    
  37.    
  38. }
  39.  
  40. ///////////////////////////////////////
  41. // Don't touch anything beyond here! //
  42. ///////////////////////////////////////
  43.  
  44.  
  45.  
  46. void usercontrol() {
  47.     while (true) {
  48.        
  49.     }
  50. }
  51.  
  52. int main() {
  53.     Competiton.autonomous(autonomous);
  54.     Competiton.drivercontrol(usercontrol);
  55. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top