Created
January 25, 2019 03:39
-
-
Save acetousk/d0ead44158fe153a2004760a368734b1 to your computer and use it in GitHub Desktop.
here hayden this is what you want
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int leftVar=vexRT[Ch3]; //check out line 20-22 for how this works | |
int rightVar=vexRT[Ch2]; //check out line 23-25 for how this works | |
task usercontrol(){ | |
while(true){ | |
if(vexRT[Btn6U]==1) | |
motor[intake2]=127; | |
else if(vexRT[Btn6D]==1) | |
motor[intake2]=-127; | |
else | |
motor[intake2]=0; | |
if(vexRT[Btn5U]==1) | |
motor[puncher]=127; | |
else if(vexRT[Btn5D]==1) | |
motor[puncher]=-127 | |
else | |
motor[puncher]=0; | |
motor[driveL1]=leftVar; | |
motor[drive2]=leftVar; | |
motor[drive3]=leftVar; | |
motor[driveR1]=rightVar; | |
motor[drive5]=rightVar; | |
motor[drive6]=rightVar; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment