Log in

View Full Version : How to determine controller type


jfitz0807
13-02-2015, 13:50
We only have one XBox controller so we have to use another controller type for our practice bot. We want to keep a single code base that will work on both. Is there a good way to query a Joystick to determine what type of controller it is?

rich2202
13-02-2015, 13:54
We only have one XBox controller so we have to use another controller type for our practice bot. We want to keep a single code base that will work on both. Is there a good way to query a Joystick to determine what type of controller it is?

Use your smart dashboard, and have an input (check box?) for which controller.

MrRoboSteve
13-02-2015, 14:10
Can you use the Get___Count() methods on the Joystick to distinguish between the two at runtime?

rich2202
13-02-2015, 14:14
The x-box controller is part of the Driver's Station as does not have to be bagged.

We use the same DS and Controller for both practice and production bot.