View Single Post
  #5   Spotlight this post!  
Unread 24-03-2011, 21:33
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Using a Logitech Game Controller

The driver station software will recognize up to four USB devices that call themselves "joysticks" and send them to the "joystick get" functions in the WPI lib. You have to use that. The get input device function only works with a normal computer, not a real time device like the C RIO, and definitely not when it's connected offboard.

So basically, just replace all of your uses of get input device with WPI Lib Joystick Get. (Make sure you open the joystick and set the reference and everything!)

Another thing to note is that you can't really test programs meant to run on the C RIO on a laptop or anything, unless it doesn't have any IO other than the front panel; they are completely different beasts. (Testing a math script is fine, if you just put values into the front panel and see the outputs there as well.)
Reply With Quote