daily pastebin goal
35%
SHARE
TWEET

Untitled

a guest Feb 20th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
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