Our team came across a bug in the DS software related to a D-Pad on a gamepad type controller. At first we attributed it to a broken controller, but a new one exhibited the same behavior. Moreover, when we ran the exact came code using last year's blue DS, there was no problem.
Our D-Pad objects talks directly to the DriverStation object. When it wants to get the 'x' axis, it looks at axis number 5, and looks at axis number 6 for the 'y' axis. Axis 5 is expected to return -1 for a left arrow press and 1 for a right arrow press. Axis 6 is expected to return -1 for an up arrow press and 1 for a down arrow press. The corners should return combinations of these, such as axis 5 => -1, axis 6 => 1 for a down-left press. Every direction works as expected except and left arrow press, it returns 1 instead of -1 for axis 5. Oddly, down-left and up-left work correctly. As I said above, last year's DS works correctly, so it is definitely a bug in this year's DS.


Reply With Quote