Changes between Version 9 and Version 10 of MotorControl


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

--

Legend:

Unmodified
Added
Removed
Modified
  • MotorControl

    v9 v10  
    3636PID 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).
    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.
    39    * Integral (I): Power is increased/decreased in proportion to the average size and duration of the error: this accelerates movement towards the goal, increasing responsiveness, but 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 lets you increase P and I (responsiveness) without making the system unstable.
     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.
    4141   * !FeedForward (F): Adds a constant to the output to keep it from going to zero
    4242