Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #include "robot-config.h"
  2.  
  3. using namespace vex;
  4.  
  5. int main() {
  6. double armAngle = 0;
  7. bool armUp = 0;
  8. bool armDown = 0;
  9. const int MAX_ARM_ANGLE = 60;
  10. const int MIN_ARM_ANGLE = 0;
  11.  
  12. while(true)
  13. {
  14. armUp = control1.ButtonR1.pressing();
  15. armDown = control1.ButtonR2.pressing();
  16. if(armUp)
  17. {
  18.  
  19. }
  20. if(armDown)
  21. {
  22.  
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement