View Single Post
  #6   Spotlight this post!  
Unread 15-03-2015, 19:48
Crossle86's Avatar
Crossle86 Crossle86 is offline
Software Engineer
AKA: Richard Corn
FRC #4450 (Olympia Robotics Federation)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Olympia, WA.
Posts: 92
Crossle86 is an unknown quantity at this point
Re: Possible Joystick Error?

I'm looking a new situation (for us) where the getrawbutton call works as one would expect on the trigger but not on the other buttons. If the trigger is held, the getrawbutton call returns true as long as the button is held. When press and hold any other button on the JS, the getrawbutton call is returning true, false, true, false, true, false etc until the button is released. The alternating of the true/false value happens quickly about once a second. This seems incorrect but I am trying to confirm if this is a problem or a JS button behavior that I am unfamiliar with. This happens on all 3 JS we use. Now using a TI LaunchPad device to connect actual push buttons to the DS (launchpad looks to the code just like a joystick) the buttons work as expected, getrawbutton returns true as long as the button is held.
Reply With Quote