Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
PIDControl Class Reference
Simple PID controller class. More...
#include <pidcontrol.h>
Public Member Functions | |
| PIDControl () | |
| Default constructor. | |
| virtual | ~PIDControl () |
| Destructor. | |
| virtual PIDControl & | setPIDGains (double pGain, double iGain, double dGain) |
| Set the Proportional, Integral and Derivative gains. | |
| virtual PIDControl & | setIntegratorLimits (double iMin, double iMax) |
| Set the lower and upper limits for the integrator. | |
| virtual double | update (double error, double position) |
| Update loop. | |
Detailed Description
Simple PID controller class.
Definition at line 7 of file pidcontrol.h.
Constructor & Destructor Documentation
| PIDControl | ( | ) |
Default constructor.
Definition at line 5 of file pidcontrol.cpp.
| ~PIDControl | ( | ) | [virtual] |
Destructor.
Definition at line 18 of file pidcontrol.cpp.
Member Function Documentation
| PIDControl & setIntegratorLimits | ( | double | iMin, |
| double | iMax | ||
| ) | [virtual] |
Set the lower and upper limits for the integrator.
Definition at line 34 of file pidcontrol.cpp.
| PIDControl & setPIDGains | ( | double | pGain, |
| double | iGain, | ||
| double | dGain | ||
| ) | [virtual] |
Set the Proportional, Integral and Derivative gains.
Definition at line 24 of file pidcontrol.cpp.
| double update | ( | double | error, |
| double | position | ||
| ) | [virtual] |
Update loop.
Definition at line 43 of file pidcontrol.cpp.
Generated on Thu Jul 14 2022 00:36:34 by
1.7.2