View Single Post
  #3   Spotlight this post!  
Unread 18-02-2014, 19:45
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,753
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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