|
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
|