Algorithms_in_C
1.0.0
Set of algorithms implemented in C.
|
PID Controller. More...
Data Fields | |
float | kP |
float | kI |
float | kD |
float | lastError |
float | integral |
PID Controller.
The PID controller is a linear control algorithm that has three terms:
Terms of the controller can be removed by setting their gain to 0, creating a PI (kD = 0) or PD (kI = 0) controller. Depending on the control problem at hand, some terms may not increase the performance of the system, or may have a negative effect.
For a more mathematical expanation of the PID Controller, see https://en.wikipedia.org/wiki/PID_controller
Limitations of this implementation:
Inputs: e(t) - Current error at time t. For example, how far a servo is off the desired angle Output: u(t) - Controller output at time t.