View Single Post
  #3   Spotlight this post!  
Unread 19-03-2010, 20:46
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
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.