View Single Post
  #9   Spotlight this post!  
Unread 21-01-2012, 17:52
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Tuning PID Parameters

In the past two years, we never used an I or D term (except for a controller that was I only...)

For VRC this fall, on the Cortex controller, we worked with the Zeigler-Nichols method to get good PID gains for our arms. It worked really really well, as we calibrated with one game piece in, so the mass changes with none or two game pieces (most use cases in that game) wasn't very bad. After writing all of the spreadsheets to calculate the gains (and figuring out that the equations give you integral and derivative time instead of gain), I just did a data capture on the serial port, found some data in Excel (space delimited text FTW!), punched the gains back in, and it ran beautifully.

I've always manually found a good P-only gain anyway, so increasing kP until the system oscillates isn't very hard and doesn't take much time.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack