|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Programming With an XBOX Controller
You would program an Xbox Controller in Labview just like an ordinary joystick. Take a look at the example code for a joystick and do the same. There's a bit more to it that's hard to explain and I won't have access to our programming laptop until tomorrow to show an example. Message me and I'll make a video tutorial for you tomorrow.
|
|
#2
|
||||
|
||||
|
Re: Programming With an XBOX Controller
This is very helpful.....will help you determine which axis is which and same for buttons.
http://firstforge.wpi.edu/sf/frs/do/downloadFile/projects.wpilib/frs.joystick_explorer.joystick_explorer/frs1934;jsessionid=F88BF8A83468C604414BF26D99540C2 8?dl=1 |
|
#3
|
||||
|
||||
|
Re: Programming With an XBOX Controller
I have no familiarity with LabVIEW, but here are the button id's.
Code:
/** XBOX Controller Notes * Buttons: * A=1 * B=2 * X=3 * Y=4 * LB=5 * RB=6 * Back=7 * Start=8 * LeftAnalog=9 * RightAnalog=10 * Axis: * LeftX=1 * LeftY=2 * RightX=4 * RightY=5 * Trigger=3 (Left moves -, Right moves +) */ |
|
#4
|
|||||
|
|||||
|
Re: Programming With an XBOX Controller
Quote:
Previously, LeftAnalog and RightAnalog were only on Trigger (not Digitals). Has this changed? |
|
#5
|
||||
|
||||
|
Re: Programming With an XBOX Controller
If you push the joysticks straight down, they both register as additional buttons.
|
|
#6
|
|||||
|
|||||
|
Re: Programming With an XBOX Controller
Quote:
I mapped out that controller in 2011 and could not find those buttons. Maybe they changed something since then. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|