|
Re: XBOX Controller Triggers is an axis but which one?
Tanner is right, but if he wasn't clear enough, this is how we did it:
-In your teleop VI, go to the block diagram and wire in two "Unbundle by Name" blocks (one for the axes and one for the buttons).
-Drag the bottom handle of the Unbundle blocks so every button and axis can be read.
-Go to your teleop VI front panel, and drop in one Numeric Indicator for each axis, and one LED for each button. Label them Axis1, Axis2, Button1, etc.
- On the block diagram, wire each button and axis to the corresponding indicator.
- Make a drawing of the controller.
- Deploy your code with the Play button, press each button and axes. Make a note of which indicator does what when you operate the controller. Use this to label your drawing.
- Once your drawing is fully labeled, you can start hooking up the axes and buttons to what you want them to control.
I know this is a pain, but this is how we did it. I have our drawing so I can't tell you which is which, but doing this process only takes 15 minutes or so. good luck.
__________________
-
An ounce of perception is worth a pound of obscure.
|