Quote:
Originally Posted by Pault
If you want the arm to move full speed in the positive direction when A on your XBOX controller:
Code:
if(A.get()) {
arm.set(1);
}
Note that in frc you send motors a value between -1 and 1, with -1 being full reverse, 0 being stopped, and 1 being full forward.
|
Code:
if(A.get()) {
arm.set(1);
} else {
arm.set(0); // !!
}
Motor safety should catch this for you, but please make sure to stop your motors when you're done with them.