|
Re: Launching a command with a second thumbstick
Quote:
Originally Posted by nickpaterni
We are using an Xbox controller for robot control, and would like to use the right thumbstick to call a command - specifically to be able to use the value from GetRawAxis() to determine the speed at which we activate a Victor. I know how to get a button to launch a command in OI, but don't know how to make movement of the right thumbstick do the same. Any ideas?
|
It seems like you want a command that you schedule in teleopInit() that will just grab the joystick value and drive the motor. It can do that independently from everything else in your teleop code.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
|