wiki:ControlSystems/SoftwareTeam/Training/GettingStarted/PIDControl

Version 1 (modified by David Albert, 6 years ago) (diff)

--

In the last example we learned about proportional closed loop control where we helped the robot drive straight by increasing/decreasing power to the left/right motors in proportion to the error between the distance traveled by the left/right wheels.

While proportional control works in many cases, it can take time to achieve the proper power balances, can be slow to react to changes, and in some cases can even oscillate or never reach the proper power levels. PID control is a more sophisticated solution that takes more factors into consideration:

  • P = Proportion - how much the current error is
  • I = Integral - how much error has accumulated over time
  • D = Derivative - how fast the error is increasing/decreasing

Code examples are coming soon