|
Re: Reset joysticks at startup
USB joysticks are assumed centered when they are first plugged into the PC (e.g., Classmate). Windows takes whatever they read at startup and makes that 0,0. So if the joystick were lying on it's side, depressing the stick one way, when it was first plugged into the Classmate, then you'll see an incorrect offset like that.
The joystick really needs to be fixed at the source, and quite possibly replaced. I'd test with multiple joysticks first to make sure it's a problem with a broken joystick. If it is broken you can try purposely holding the joystick off center in the opposite direction when you first plug it in just to see if that's the source of the problem.
LabVIEW on the cRIO side can only remap the joystick, for instance, add .5/subtract .5 then stretch the ranges to fit, but that'd give a driver very unbalanced stick response and it would lose half your typical joystick range on one side. The data you really need just isn't being sent from the Classmate.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Last edited by Mark McLeod : 17-06-2010 at 11:11.
|