|
Re: Locking Controller in Driver Station
We originally tried to use a USB hub and make the order match the hub ports. But USB has its own idea of how things get enumerated, and it rarely matches the ink on the case.
The typical joystick also doesn't have a serial number, so there is no way to identify a joystick uniquely and follow it from port to port. All we have is VID and PID -- vendor and product IDs. Many teams with multiple joysticks use the same model.
So in the end, we rely on the enumerate order of what is plugged in and we consistently index it. It is certainly a good idea to verify the joysticks are as expected. It should be pretty predictable, but if you randomly plug stuff in, it won't be, and the setup page is how you adjust it.
Greg McKaskle
|