Seeing how helpful you guys are, I am going to try another question. I already have a piece of code for my wheels, but now I want to make buttons 6U and 6D control the arm (i.e. 6U lifts it and 6D lowers it). Optionally I want the arm to stay in its current position if nothing is pressed. So far I have this:
if(vexRT[Btn6U] == 1)
{
motor[AM1] = 127;
motor[AM2] = 127;
}
else if (vexRT[Btn6D] == 1)
{
motor[AM1] = -127;
motor[AM2] = -127;
}
else
{
motor[AM1] = 0;
motor[AM2] = 0;
}
Any suggestions?