View Single Post
  #8   Spotlight this post!  
Unread 04-02-2015, 06:16
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Operating a relay/motor controller with two axises/buttons

There are differences in joystick axis values depending on how they are read. Specifically, Xbox controllers can be read using DirectInput libraries, and that is how it was done until this year. They can also be read using XInput libraries, and that is the more modern way that was adopted this year.

The driver station should give you an accurate way to predict the values that the joystick will return on your robot. Also some joysticks are configurable as to whether they enumerate as DirectInput or XInput. The Logitech F310 has a switch on the back that lets you choose. The primary difference of this choice is how the analog shoulder triggers are reported.

Greg McKaskle
Reply With Quote