#include <pid.h>
PID controller class
Definition at line 11 of file pid.h.
◆ PIDController()
PIDController::PIDController |
( |
float |
P, |
|
|
float |
I, |
|
|
float |
D, |
|
|
float |
ramp, |
|
|
float |
limit |
|
) |
| |
- Parameters
-
P | - Proportional gain |
I | - Integral gain |
D | - Derivative gain |
ramp | - Maximum speed of change of the output value |
limit | - Maximum output value |
Definition at line 3 of file pid.cpp.
◆ ~PIDController()
PIDController::~PIDController |
( |
| ) |
|
|
default |
◆ operator()()
float PIDController::operator() |
( |
float |
error | ) |
|
Derivative gain.
Definition at line 29 of file pid.h.
◆ error_prev
float PIDController::error_prev |
|
protected |
last tracking error value
Definition at line 35 of file pid.h.
Integral gain.
Definition at line 28 of file pid.h.
◆ integral_prev
float PIDController::integral_prev |
|
protected |
last integral component value
Definition at line 34 of file pid.h.
◆ limit
float PIDController::limit |
Maximum output value.
Definition at line 31 of file pid.h.
◆ output_prev
float PIDController::output_prev |
|
protected |
last pid output value
Definition at line 37 of file pid.h.
◆ output_ramp
float PIDController::output_ramp |
Maximum speed of change of the output value.
Definition at line 30 of file pid.h.
Proportional gain.
Definition at line 27 of file pid.h.
◆ timestamp_prev
unsigned long PIDController::timestamp_prev |
|
protected |
Last execution timestamp.
Definition at line 36 of file pid.h.
The documentation for this class was generated from the following files: