Difference between revisions of "PID Control"

From FRC11 - Mentor Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
−
Links:
+
'''Links:'''
 
* [https://controlguru.com/the-p-only-control-algorithm/ Control Gurus - The P-Only Control Algorithm]  A decent intro to Proportional Control, and a solid basis for understanding PID Control.  Careful - ControlGuru uses Kc instead of Kp, and Kc/Ti instead of Ki. Essentially works the same.  
 
* [https://controlguru.com/the-p-only-control-algorithm/ Control Gurus - The P-Only Control Algorithm]  A decent intro to Proportional Control, and a solid basis for understanding PID Control.  Careful - ControlGuru uses Kc instead of Kp, and Kc/Ti instead of Ki. Essentially works the same.  
 
* [https://controlguru.com/table-of-contents/ Control Gurus - Table of Contents]  Some of the most comprehensive documentation on PID Control on the net.  Includes beginner topics and advanced topics.
 
* [https://controlguru.com/table-of-contents/ Control Gurus - Table of Contents]  Some of the most comprehensive documentation on PID Control on the net.  Includes beginner topics and advanced topics.
Line 7: Line 7:
 
* [https://phoenix-documentation.readthedocs.io/en/latest/ch16_ClosedLoop.html Talon SRX PIDF controller] PID Control built into the Talon SRX controllers
 
* [https://phoenix-documentation.readthedocs.io/en/latest/ch16_ClosedLoop.html Talon SRX PIDF controller] PID Control built into the Talon SRX controllers
  
−
Some basic tips:
+
'''Some basic tips:'''
  
 
* PID control works best if the underlying control mechanism does a decent job first
 
* PID control works best if the underlying control mechanism does a decent job first
Line 18: Line 18:
 
:* You can perform noise filtering to get improvements at a cost of slightly delayed response for the D component
 
:* You can perform noise filtering to get improvements at a cost of slightly delayed response for the D component
  
−
To Do:
+
'''To Do:'''
  
 
Need a good solid introduction, not just links.  Should include some intro to Control Theory, as well as a good explanation of PID Control, with details about use of P, use of I, and use of D.  Should cover use of the [https://phoenix-documentation.readthedocs.io/en/latest/ch16_ClosedLoop.html PIDF controller] built into the Talon SRX controllers. Maybe include advanced treatment (noise filtering, especially for D, windowing for I, cascading controllers?) and possibly info about the mentor PID Controller code when completed. Additional topics: tips for tuning, keeping away from D unless necessary, typical places to apply on the robot.
 
Need a good solid introduction, not just links.  Should include some intro to Control Theory, as well as a good explanation of PID Control, with details about use of P, use of I, and use of D.  Should cover use of the [https://phoenix-documentation.readthedocs.io/en/latest/ch16_ClosedLoop.html PIDF controller] built into the Talon SRX controllers. Maybe include advanced treatment (noise filtering, especially for D, windowing for I, cascading controllers?) and possibly info about the mentor PID Controller code when completed. Additional topics: tips for tuning, keeping away from D unless necessary, typical places to apply on the robot.
  
 
[[Category:Programming]]
 
[[Category:Programming]]

Revision as of 22:17, 30 November 2020

Links:

Some basic tips:

  • PID control works best if the underlying control mechanism does a decent job first
  • That way, the correction constants can be tuned to correct disturbances, and not to control the system for its default behavior
  • This implies that your feed-forward/open loop/bias component should be calculated appropriately, and not rely on the PID portion to perform basic operation
  • Tune P before I or D
  • Tune I before D
  • D often does not need to be used
  • The Derivative component (D) is often subject to noise and can be difficult to control
  • You can perform noise filtering to get improvements at a cost of slightly delayed response for the D component

To Do:

Need a good solid introduction, not just links. Should include some intro to Control Theory, as well as a good explanation of PID Control, with details about use of P, use of I, and use of D. Should cover use of the PIDF controller built into the Talon SRX controllers. Maybe include advanced treatment (noise filtering, especially for D, windowing for I, cascading controllers?) and possibly info about the mentor PID Controller code when completed. Additional topics: tips for tuning, keeping away from D unless necessary, typical places to apply on the robot.