View Single Post
  #4   Spotlight this post!  
Unread 13-12-2014, 00:43
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: Problem with PIDs

Quote:
Originally Posted by Joe Ross View Post
How did you choose your PID gains?
The question still stands. Improper PID gains could cause the system to behave in the way you described.

Pretend you're in a really sensitive shower trying to get just the right amount of hot water. You move the knob what you think is just a little bit, but then the water is scalding. You turn it back, moving it even less than before, but now the water is cold as ice. No matter what you do, you can't find any middle ground between "earth's core" and "ice age." The problem here isn't necessarily that your shower is broken, you're just applying way too much force on a knob that's too sensitive.

It sounds like the gains of your system are too high - try to set all the constants to zero and apply the Zeigler-Nichold method of tuning. Basically, set everything to 0 and slowly raise P until you see oscillation. Then add I and D based on how you want your system to behave. It's not the best method of determining constants, but it's often a good place to start.
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
Reply With Quote