Quote:
Originally Posted by Pratik Kunapuli
Code:
if(joystick.getRawButton(buttonNumber)
{
speedController.set(1.0);
}
else
{
speedController.set(0.0);
}
If this code is in the periodic teleop method, it should do what you want.
|
Is there any way to set this to run from multiple joysticks? For instance, having button 1 on joystick 1 start and button one on joystick 2 stop it?