View Single Post
  #6   Spotlight this post!  
Unread 10-01-2009, 11:33
engunneer's Avatar
engunneer engunneer is offline
Alumni turned Mentor
AKA: Branden Gunn
FRC #4761
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1996
Location: Reading, MA
Posts: 868
engunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond repute
Re: PID robot heading--comments?

Quote:
Originally Posted by JamesBrown View Post
Another concern is that friction between the carpet around the outside and the wheel is much greater than the friction between the plastic and the wheel, this will likely cause less than desirable results if part of your robot is on the carpet.
That's the whole point of using the PID. when you hit the carpet, and your equal motor speeds cause robot rotation, the gyro picks it up and corrects by slowing down the more frictionful wheels.

It is correct to say (as above) that you don't have to control the actual heading (called "position loop"), but you could instead control the rate of change of heading ("velocity loop").

many machine tools (milling machines, waterjets, etc) use two layers of PID. one position loop, and one velocity loop "inside" it.

The position loop says "I'm going to need to be here, so go this fast" to the servo amplifier (a fancy speed controller). The Amplifier then says "I need to be going this fast, so I should use this current" to decide what to send to the motor.

Since a First robot may not care about the absolute heading, the position loop can be left out.
__________________
Student FRC23 (1996-1999), Mentor FRC246 (2000), Mentor FRC1318 (2007-2009), Mentor FRC93 (2011), Mentor FRC2151 (2012), Mentor FRC23 (2013), Mentor FRC4761 (2014-2017)
1998 - National Chairman's Award and Woodie Flowers Award (FRC23, Mike Bastoni ) | 2007 - PNW SF (488, 1595) | 2008 - Oregon RCA - Seattle #2 Seed, SF (488, 1696) | 2009 - Oregon #1 Seed, Winners (1983, 2635) - Seattle SF (945, 2865) - Galileo #2 Seed, SF (973, 25) | 2012 Midwest F (111, 71) | 2014 RIDE Winners (78, 125), Inspector - NEU #24, QF (3479, 3958) - NECMP #35 | 2015 Reading #11, SF (1058, 190), Inspector - RIDE #17, QF(4055, 5494), Inspector - NECMP #57 | 2016 Reading #4, SF (133, 4474), DCA, Inspector - Ride #22, SF (1735, 2067), Creativity, Inspector - NECMP #48, RCA - Archimedes