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.
Dependencies: mbed
PID_Control Class Reference
This class calculates a PID control. More...
#include <PID_Control.h>
Public Member Functions | |
| PID_Control () | |
| Constructor. | |
| virtual | ~PID_Control () |
| Destructor. | |
| float | calc (float e, float period) |
| Calculate and returns the next value from PID control. | |
| void | setPIDValues (float p, float i, float d, float max, float min, float _iMax) |
| Sets the PID values. | |
Detailed Description
This class calculates a PID control.
Definition at line 14 of file PID_Control.h.
Constructor & Destructor Documentation
| PID_Control | ( | ) |
Constructor.
Definition at line 13 of file PID_Control.cpp.
| ~PID_Control | ( | ) | [virtual] |
Destructor.
Definition at line 23 of file PID_Control.cpp.
Member Function Documentation
| float calc | ( | float | e, |
| float | period | ||
| ) |
Calculate and returns the next value from PID control.
- Parameters:
-
e the error period the period
- Returns:
Definition at line 50 of file PID_Control.cpp.
| void setPIDValues | ( | float | p, |
| float | i, | ||
| float | d, | ||
| float | _max, | ||
| float | _min, | ||
| float | _iMax | ||
| ) |
Sets the PID values.
- Parameters:
-
p proportional gain i integral gain d differencial gain
Definition at line 33 of file PID_Control.cpp.
Generated on Tue Aug 16 2022 10:53:13 by
1.7.2