View Single Post
  #5   Spotlight this post!  
Unread 17-01-2009, 16:22
keehun's Avatar
keehun keehun is offline
Team Captain
AKA: Keehun Nam
FRC #2502 (EP Robotics)
Team Role: Leadership
 
Join Date: May 2008
Rookie Year: 2008
Location: Eden Priaire
Posts: 474
keehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond repute
Send a message via AIM to keehun
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)
Reply With Quote