View Single Post
  #1   Spotlight this post!  
Unread 23-01-2015, 15:34
TheMechanic40 TheMechanic40 is offline
Registered User
FRC #3506 (YETI Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: North Carolina
Posts: 31
TheMechanic40 is an unknown quantity at this point
Can you get joystick values?

Hello everyone, does anyone know if there is someway to get what button is currently being pressed on a joystick? Let provide some context: My team, 3506, is using a command based robot and we've just created a way to record the values taken from the joysticks and save them to a file so they can be used as the autonomous. We know how to record the various button inputs and the joystick axes values and we can do this successfully, but in order to be able to detect the button presses and save them we have to edit three different classes. So my question is: Is there a way to detect any button on a joystick and return a which button is being pressed?