View Single Post
  #42   Spotlight this post!  
Unread 05-05-2004, 09:36
Jay Lundy Jay Lundy is offline
Programmer/Driver 2001-2004
FRC #0254 (The Cheesy Poofs)
Team Role: Alumni
 
Join Date: Jun 2001
Rookie Year: 2001
Location: Berkeley, CA
Posts: 320
Jay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to all
Re: pic: 254 Drivetrain

The drive train loop is open when you are turning (see the other posts linked to for more information about that), but the straight drive loop is closed. The striaght drive code is run whenever the steering wheel is at the center position +- a certain deadzone. It uses the proximity sensors to get a speed error (left count - right count). For the robot to go straight, the speed error should be 0, but it usually isn't, so the speed error is multiplied by a constant and subtracted from whatever side is going faster.