View Single Post
  #2   Spotlight this post!  
Unread 17-06-2010, 10:26
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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.
Reply With Quote