|
Re: Single motor 2015
Ah. So to echo it back to you, it sounds like you want two buttons on the gamepad, one forward, one backward.
In begin, you need to Open the motor and save the refnum with a name. In TeleOp, where the joystick Get has already read the buttons, drop an Index Array node, grow it and wire up the button indices. There are really three conditions for the motor. You either run the motor forward at a speed, backwards at a speed, or you leave it off with a speed of zero.
The attached image shows how the buttons 0 and 1 are choosing any of three speeds and updates the motor controller.
Greg McKaskle
|