Quote:
Originally Posted by microman1934
Thanks for the idea, would the throttle work for that as well?
|
Yes. You could set the throttle to act as a toggle switch...
I'm on my phone so I can't format this correctly and can only give some pseudo code.
If(stick.getThrottle () > 0)
myRobot.Drive (halfSpeedValues);
else if(stick.getThrottle <= 0)
myRobot.Drive (fullSpeedValues);
Remember the throttle on the joystick ranges from -1 to 1, so 0 will be in the middle.