View Single Post
  #8   Spotlight this post!  
Unread 28-02-2012, 22:33
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,114
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: Gyro Autobalancing

Quote:
Originally Posted by Ziv View Post
This is a good idea. It's good to give as much control as possible to the driver, making it his or her choice whether or not to use a particular feature in a particular situation. (For example, if another robot is pushing you up the ramp, you probably want to stay put.)
I agree with this as well. With our method, we have the driver enable the balancing, but (while retaining driver control) the driver will drive the robot up the bridge until the robot senses a tip. Then, the robot will take control away from the driver and do the rest of the balancing itself.


Quote:
Originally Posted by Luiz12 View Post
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?
Basically, when you have Ki at zero, the system might take longer (than you want) to reach its setpoint. You use Ki in order to reduce this time. Think of the error accumulating over time and getting factored in. Therefore, the longer the system has had a nonzero error, the bigger the value the Ki term acts on is.

With that base, I don't really use a set system to tune Ki. I just usually start with a very small value (like around 0.01) and test it out. From there, if you watch your system and how long it takes to reach its setpoint, and determine how Ki should be changed. I usually tweak numbers by a factor of 2 or by a factor of 10 (depending on how much I think needs to be adjusted) and go from there.

tl;dr: Tune PID constants by guessing and checking until you get something satisfactory.
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android