|
Re: Button coding
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.
__________________
Official Driving Record: 101-59-0
2012-2015 Student 341 Miss Daisy
2015-Current Mentor 1648 G3 Robotics
Last edited by Pratik Kunapuli : 23-02-2016 at 10:31.
|