Changes between Version 10 and Version 11 of MotorControl


Ignore:
Timestamp:
Mar 4, 2016, 7:36:35 PM (9 years ago)
Author:
David Albert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MotorControl

    v10 v11  
    3434
    3535__What PID means__
    36 PID is used to balance responsiveness and stability using factors P, I, D, and sometimes F that you can tune.  When you configure your talon for closed loop control, you will need to set those 3 factors.  There is no perfect setting, it's always going to be a trade off between responsiveness and stability, but you should experiment with different values to tune your mechanism properly (there are also mathematical approaches to tuning that I will not address here).
     36PID is used to balance responsiveness and stability using factors P, I, D, and sometimes F that you can tune.  When you configure your PID control loop (in the Talon or RoboRio), you will need to set those 3 factors.  There is no perfect setting, it's always going to be a trade off between responsiveness, overshoot, and stability, but you should experiment with different values to tune your mechanism properly (there are also mathematical approaches to tuning that you can find with some googling).
    3737
    38    * Proportion (P): Power is increased/decreased in proportion to how far the last measurement was from its goal (i.e. the instantaneous error): if far from goal, add a lot of power, if close to goal, add a little power).  Adjusting P determines how responsive the system is.  Adding P increases responsiveness, but too much P will cause oscillation at steady state.
    39    * Integral (I): Power is increased/decreased in proportion to the average size and duration of the error: this can help reduce the steady state error to zero but will increasing the tendency to overshoot goals (instability).
    40    * Derivative (D): Power is increased/decreased in proportion to the rate at which the motor is approaching its goal (i.e. if the motor is not closing in fast enough, increase power, if it is closing in fast, decrease power); D increases stability by slowing the motor as it approaches its goal; this will help reduce overshoot.
     38   * Proportion (P): Power is increased/decreased in proportion to how far the last measurement was from its goal (i.e. the instantaneous error): if far from goal, add a lot of power, if close to goal, add a little power).  Adjusting P determines how responsive the system is.  Adding P increases responsiveness, but too much P will cause oscillation around the steady state point.
     39   * Integral (I): Power is increased/decreased in proportion to the average size '''and duration''' of the error: this can help reduce the steady state error to zero but will increase the tendency to overshoot the target set point initially.
     40   * Derivative (D): Power is increased/decreased in proportion to the rate at which the motor is approaching its goal (i.e. if the motor is not closing in fast enough, increase power, if it is closing in fast, decrease power); D increases stability by slowing the motor as it approaches its goal; this helps reduce overshoot.
    4141   * !FeedForward (F): Adds a constant to the output to keep it from going to zero
    4242