![]() |
SimpleFOClibrary 2.4.0
|
#include <pid.h>
Public Member Functions | |
| PIDController (float P, float I, float D, float ramp=NOT_SET, float limit=NOT_SET, float sampling_time=NOT_SET) | |
| ~PIDController ()=default | |
| float | operator() (float error) |
| void | reset () |
Public Attributes | |
| float | P |
| Proportional gain. | |
| float | I |
| Integral gain. | |
| float | D |
| Derivative gain. | |
| float | output_ramp |
| Maximum speed of change of the output value. | |
| float | limit |
| Maximum output value. | |
| float | Ts |
| Fixed sampling time (optional default NOT_SET) | |
Protected Attributes | |
| float | error_prev |
| last tracking error value | |
| float | output_prev |
| last pid output value | |
| float | integral_prev |
| last integral component value | |
| unsigned long | timestamp_prev |
| Last execution timestamp. | |
| PIDController::PIDController | ( | float | P, |
| float | I, | ||
| float | D, | ||
| float | ramp = NOT_SET, |
||
| float | limit = NOT_SET, |
||
| float | sampling_time = NOT_SET |
||
| ) |
| P | - Proportional gain |
| I | - Integral gain |
| D | - Derivative gain |
| ramp | - Maximum speed of change of the output value |
| limit | - Maximum output value |
| sampling_time | - sampling time |
Definition at line 3 of file pid.cpp.
|
default |
| float PIDController::operator() | ( | float | error | ) |
| void PIDController::reset | ( | ) |
|
protected |
|
protected |
|
protected |
| float PIDController::output_ramp |
| float PIDController::Ts |