xyControl
0.1
Quadrotor Flight Controller on AVR Basis
|
Data Structure for a single PID Controller. More...
#include <pid.h>
Data Fields | |
double | kp |
Proportional factor. More... | |
double | ki |
Integral factor. More... | |
double | kd |
Derivative factor. More... | |
double | outMin |
Minimum Output. More... | |
double | outMax |
Maximum Output. More... | |
double | intMin |
Minimum Integral sum. More... | |
double | intMax |
Maximum Integral sum. More... | |
double | lastError |
Derivative State. More... | |
double | sumError |
Integral state. More... | |
time_t | last |
Last execution time. More... | |
Data Structure for a single PID Controller.
Stores all needed constants and state variables.
double intMax |
Maximum Integral sum.
Default is PID_INTMAX.
Definition at line 54 of file pid.h.
Referenced by pidExecute(), and pidSet().
double intMin |
Minimum Integral sum.
Default is PID_INTMIN.
Definition at line 53 of file pid.h.
Referenced by pidExecute(), and pidSet().
double kd |
Derivative factor.
Default is PID_D.
Definition at line 50 of file pid.h.
Referenced by pidExecute(), and pidSet().
double ki |
Integral factor.
Default is PID_I.
Definition at line 49 of file pid.h.
Referenced by pidExecute(), and pidSet().
double kp |
Proportional factor.
Default is PID_P.
Definition at line 48 of file pid.h.
Referenced by pidExecute(), and pidSet().
time_t last |
Last execution time.
For dT calculation.
Definition at line 57 of file pid.h.
Referenced by pidExecute(), and pidSet().
double lastError |
double outMax |
Maximum Output.
Default is PID_OUTMAX.
Definition at line 52 of file pid.h.
Referenced by pidExecute(), and pidSet().
double outMin |
Minimum Output.
Default is PID_OUTMIN.
Definition at line 51 of file pid.h.
Referenced by pidExecute(), and pidSet().
double sumError |