Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. task usercontrol()
  2. {
  3. // User control code here, inside the loop
  4.  
  5. while (true)
  6. {
  7. // Testing
  8.  
  9.  
  10.  
  11. // Button Control:
  12. motor[port1] = 0;
  13. if(vexRT[Btn5U] == 1) //If button 5U is pressed:
  14. {
  15. motor[port1] = 127; //run motor port 5 at quarter speed (i.e. lift an arm)
  16. }
  17. else if(vexRT[Btn5D] == 1) //If button 5D is pressed:
  18. {
  19. motor[port1] = -127; //run motor port 5 at quarter speed reversed (i.e. lower an arm)
  20. }
  21.  
  22.  
  23.  
  24.  
  25.  
  26. //Left Wheel A (Back Gear)
  27.  
  28.  
  29. //Left Wheel B (Front Gear)
  30.  
  31.  
  32. //Right Wheel A (Back Gear)
  33.  
  34.  
  35. //Right Wheel B (Front Gear)
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement