This file contains 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 |
This file contains 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
task leftPIDController() | |
{ | |
taskRunning=true; | |
float pidSensorCurrentValue; | |
float pidError; | |
float pidLastError; | |
float pidIntegral; | |
float pidDerivative; | |
float pidDrive; |
NewerOlder