View Single Post
  #7   Spotlight this post!  
Unread 18-01-2005, 23:18
Bob Koehl Bob Koehl is offline
Engineer
no team (The MEZ)
Team Role: Mentor
 
Join Date: Nov 2001
Rookie Year: 2000
Location: Detroit, MI
Posts: 7
Bob Koehl is a jewel in the roughBob Koehl is a jewel in the roughBob Koehl is a jewel in the rough
Re: Help with code single joystick

Once you are convinced the math is OK, there is still one more possible thing to check.
The Limit Mix function absolutely requires that the joysticks be calibrated.
If the calibration is off, the robot will go in different directions than where the joystick is pointed.
The lights on the operator interface show if p1_y and p2_y are calibrated.
For single joystick, the p1_y and p1_x need to be calibrated.
Calibration is when both y and x values are 127 when the joystick is centered.
Hope this helps.