View Single Post
  #2   Spotlight this post!  
Unread 13-01-2012, 08:47
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,751
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: initializing multiple joysticks

The framework code does it the recommended way. It opens a joystick in begin, stores it with a name, and then teleop and other location can do a name lookup. This was introduced a few years ago and is used extensively to cut down on the number of parameters that need to be added. I'd recommend going through the sample code and adding your second joystick and getting that to work.

Greg Mckaskle
Reply With Quote