View Single Post
  #6   Spotlight this post!  
Unread 17-01-2009, 16:37
ShotgunNinja's Avatar
ShotgunNinja ShotgunNinja is offline
Programming Mentor, FRC 4247
AKA: Nicholas Iannone
FRC #4247 (CougarBOTS)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Milwaukee, WI
Posts: 160
ShotgunNinja is a jewel in the roughShotgunNinja is a jewel in the roughShotgunNinja is a jewel in the roughShotgunNinja is a jewel in the rough
Re: Programming Specific Button Input on Controller

Also, it is possible to make a subVI that lets you select a single button output. Here's a copy of a subVI that I threw together (Sorry, haven't really tested it that much, let me know how it works!). You have to use an unsigned 16-bit int for the "index" pin, can't seem to figure out why (It says "wire enumeration conflict"). I guess speed of recursions doesn't really matter, but it's theoretically slightly faster than using the Joystick Get VI.
Attached Files
File Type: vi Joystick Get Button.vi (18.0 KB, 24 views)
__________________
Team #2970 Alum
Team #1652 Alum
2006: School Mascot for Team 1652
2007-2008: Programmer for Team 1652 (Robot Mafia)
2009: Programmer on Team 1652 (Robot Mafia), Programmer on Team 2970 (eSchool eBots)
2010-2016: Volunteer, Wisconsin Regional
2017: Programming Mentor, FRC 4247 (CougarBOTS, Obama SCTE, Milwaukee, WI)
Reply With Quote