|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#8
|
|||
|
|||
|
Re: XBox 360 Controller Programming in LabView
Well, I got everything to work. All buttons, all of the axes (forward, backward, left, and right): Everything.
The only problem that I have is that I have to figure out how to interface the code that I have with the Project code, but that'll be solved in time. As I continue to go, I'll post my VI's here for all to see. As of now, I hope that I can be of assistance to any team that is using LabView and is also considering using an XBox 360 controller to control their robot. Thanks for all of your help thus far! Austin EDIT: There was an error in the code that I corrected. I had accidentally set what should have been the X Axis Rotation to the Y Axis Rotation. (NOTE: X Axis Rotation is Left-Right on the right thumbstick and Y Axis Rotation is Up-Down on the right thumbstick.) Here is the mapping that I have found out as I have listed in the VI: X Axis: Left Thumbstick Left-Right X Axis Rotation: Right Thumbstick Left-Right Y Axis: Left Thumb Stick (Needs to be negated or else up-down controlls are inverted) Y Axis Rotation: Right Thumb Stick (Needs to be negated or else up-down controlls are inverted) Z Axis (>0): Left Trigger Z Axis (<0): Right Trigger 1: A Button 2: B Button 3: X Button 4: Y Button 5: Left Bumper 6: Right Bumper 7: Stop/Back Button 8: Start Button 9: Left Thumbstick Button 10: Right Thumbstick Button DPAD: -1: No Thumbpad Button 0: North Thumbpad Button 45: North-East Thumbpad Button 90: East Thumbpad Button 135: South-East Thumbpad Button 180: South Thumbpad Button 225: South-West Thumbpad Button 270: West Thumbpad Button 315: North-West Thumbpad Button Last edited by Austin3324 : 19-01-2011 at 19:45. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|