|
Get joystick name and index in wpilib C++
Hi, we're trying to figure out how to access the joystick name, or some sort of hardware identifier in wpilib from C++. Basically, we want to be able to tell the difference between the logitech joystick, and the Xbox 360 controller when the robot initializes. We plan to convert a joystick into a switch box to store settings for autonomous mode each match, and we don't want to have to check the stick indices every time. Is there any way to get an identifier to tell which stick is shown as which index?
Also, I'm not incorrect in interpreting the rules as meaning that a box of switches set before the match during strategy talks would be fine to use because no human is touching the driver station or moving beyond the white line during autonomous mode am I?
|