View Single Post
  #7   Spotlight this post!  
Unread 23-01-2008, 21:17
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Synchronizing with 26.2 ms communication

First, we perform the PID calculations based on a timer every 26 ms instead of the 20 ms we had been using.

Second, and more important, we switched from trying to control the wheel velocity and went to a position-based PID scheme instead. Now the control parameter is the desired robot location (and orientation) instead of the desired speed (and turn rate). The PID constants take care of making the velocity what it needs to be in order to get to the right location without overshooting. For manual driving, the joystick input constantly sets the desired position in front or in back of the current location, and when that point is set farther away, the robot travels faster.