#include <pid.h>
Setpoints and data used by the PID control algorithm
Definition at line 34 of file pid.h.
Data Fields | |
int | DFactor |
The Derivative tuning constant, given in x100. | |
int | IFactor |
The Integral tuning constant, given in x100. | |
int | lastProcessValue |
Last process value, used to find derivative of process value. | |
int | max_error |
Maximum allowed error, avoid overflow (= MAX_INT / PFactor). | |
int | max_sum_error |
Maximum allowed sumerror, avoid overflow (= MAX_INT / IFactor). | |
int | PFactor |
The Proportional tuning constant, given in x100. | |
int | sumError |
Summation of errors, used for integrate calculations. |
|
The Derivative tuning constant, given in x100.
Definition at line 44 of file pid.h. Referenced by init_pid(), and pid(). |
|
The Integral tuning constant, given in x100.
Definition at line 42 of file pid.h. Referenced by init_pid(), and pid(). |
|
Last process value, used to find derivative of process value.
Definition at line 36 of file pid.h. Referenced by init_pid(), and pid(). |
|
Maximum allowed error, avoid overflow (= MAX_INT / PFactor).
Definition at line 46 of file pid.h. Referenced by init_pid(), and pid(). |
|
Maximum allowed sumerror, avoid overflow (= MAX_INT / IFactor).
Definition at line 48 of file pid.h. Referenced by init_pid(), and pid(). |
|
The Proportional tuning constant, given in x100.
Definition at line 40 of file pid.h. Referenced by init_pid(), and pid(). |
|
Summation of errors, used for integrate calculations.
Definition at line 38 of file pid.h. Referenced by init_pid(), and pid(). |