Structure that holds PID all the PID controller data, multiple instances are posible using different structures for each controller. More...
#include <PID.h>
Data Fields | |
float * | input |
Current Process Value. More... | |
float * | output |
Corrective Output from PID Controller. More... | |
float * | setpoint |
Controller Setpoint. More... | |
float | Kp |
Stores the gain for the Proportional term. More... | |
float | Ki |
Stores the gain for the Integral term. More... | |
float | Kd |
Stores the gain for the Derivative term. More... | |
float | omin |
Maximum value allowed at the output. More... | |
float | omax |
Minimum value allowed at the output. More... | |
float | iterm |
Accumulator for integral term. More... | |
float | lastin |
Last input value for differential term. More... | |
uint32_t | lasttime |
Stores the time when the control loop ran last time. More... | |
uint32_t | sampletime |
Defines the PID sample time. More... | |
uint8_t | automode |
Defines if the PID controller is enabled or disabled. More... | |
enum pid_control_directions | direction |
Structure that holds PID all the PID controller data, multiple instances are posible using different structures for each controller.
uint8_t automode |
Defines if the PID controller is enabled or disabled.
enum pid_control_directions direction |
float* input |
Current Process Value.
float iterm |
Accumulator for integral term.
float Kd |
Stores the gain for the Derivative term.
float Ki |
Stores the gain for the Integral term.
float Kp |
Stores the gain for the Proportional term.
float lastin |
Last input value for differential term.
uint32_t lasttime |
Stores the time when the control loop ran last time.
float omax |
Minimum value allowed at the output.
float omin |
Maximum value allowed at the output.
float* output |
Corrective Output from PID Controller.
uint32_t sampletime |
Defines the PID sample time.
float* setpoint |
Controller Setpoint.