View Single Post
  #7   Spotlight this post!  
Unread 28-02-2012, 22:45
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Gyro Autobalancing

Quote:
Originally Posted by Luiz12 View Post
Now from what I read, I know to tune the PID I must start with zero values on I and D and then adjust the PID until it begins to oscillate ( which I assumes means the robot) then divide it by half. (from what I read on wikipedia) but do I increase the P or decrease, and in what increments should increase by? It then says,"Then increase Ki until any offset is corrected in sufficient time for the process" which I really don't understand. Do I adjust this if I see any lag or what does it mean?
You may want to look into reading this paper instead of Wikipedia.

Ki is the integration coefficient; that is, the I function of the PID controller integrates, i.e. accumulates, your error (how far you are from the setpoint), and allows you to correct for error that has accumulated as a result of oscillation from tuning P alone.

-edit- There's no definitive answer; it's almost wholly experimental, especially because the return rate of the gyro doesn't directly correlate with the "wobbling" of the bridge as you try to balance.
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners