|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to determine controller type
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?
|
|
#2
|
|||
|
|||
|
Re: How to determine controller type
Use your smart dashboard, and have an input (check box?) for which controller.
|
|
#3
|
|||
|
|||
|
Re: How to determine controller type
Can you use the Get___Count() methods on the Joystick to distinguish between the two at runtime?
|
|
#4
|
|||
|
|||
|
Re: How to determine controller type
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|