|
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.)
|