Hey guys, my team had a question. We want to use an Xbox 360 controller to control our robot, but we have no idea how to. We’re going to need step-by-step instructions as to how to program it. We’re using Labview, so if you have any video tutorials, or even just can go through it in text with us, it would be really really appreciated. None of us really know how to code because our “programmers” have all graduated. I say it like that because they struggled quite a lot too. Thank you a ton in advance.
Microsoft has the drivers for using an XBOX controller (a usb one, mind you) with a computer. From that point, just do standard joystick control.
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.
This is very helpful…will help you determine which axis is which and same for buttons.
I have no familiarity with LabVIEW, but here are the button id’s.
/** 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 +) */
D-Pad X is on axis 6 also.
Previously, LeftAnalog and RightAnalog were only on Trigger (not Digitals). Has this changed?
If you push the joysticks straight down, they both register as additional buttons.
I mapped out that controller in 2011 and could not find those buttons. Maybe they changed something since then.