Skip to content

Instantly share code, notes, and snippets.

@acetousk
acetousk / hayden.c
Created January 25, 2019 03:39
here hayden this is what you want
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
@acetousk
acetousk / auton.c
Created January 22, 2019 13:38
PID Help
task leftPIDController()
{
taskRunning=true;
float pidSensorCurrentValue;
float pidError;
float pidLastError;
float pidIntegral;
float pidDerivative;
float pidDrive;