|
Re: Programming Specific Button Input on Controller
Yes!
Now, you haven't mentioned if you use LabView or C, but for LabView this is what you would do:
Use the "Joystick -> Get" VI. It's under WPI libraries -> RobotDrive-> Joysticks -> Get
You first need to open a "channel" to that joystick. Then pass in the JoystickDevRef from the OPEN to GET
There are two outputs, one for axis and one for buttons. You need a "Unbundle" vi. It's in Programming->Clusters->Unbundle (you have two choices, by name or just by blocks)
Then you can select which button to read and it will give you a true or a false.
keehun
edit: wow you guys respond fast ;-) (while I was typing he mentioned that he used labview)
__________________
For by grace you have been saved through faith, and that not of yourselves; it is the gift of God, not of works, lest anyone should boast. -- Ephesians 2:8-9 2010: Quarter Finalist (MN 10,000 Lakes)
2010: Website Award (MN 10,000 Lakes)
2009: Quarter Finalist (MN 10,000 Lakes)
2009: GM Industrial Award (MN 10,000 Lakes)
|