Quote:
Originally Posted by VikingRobotics
I wanted to know if it is possible to program the buttons so that you push it once to turn the motors on and then push it again to turn them off
|
Try something like this:
Code:
button1now = leftstick.getRawButton(button1);
if (button1now && ! button1previous) {if (speed==0) speed=0.3; else speed=0.0;}
button1previous = button1now;
... repeat for buttons 2 and 3.