xyControl  0.1
Quadrotor Flight Controller on AVR Basis
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
Data Fields
PIDState Struct Reference

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...
 

Detailed Description

Data Structure for a single PID Controller.

Stores all needed constants and state variables.

Definition at line 47 of file pid.h.

Field Documentation

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

Derivative State.

Definition at line 55 of file pid.h.

Referenced by pidExecute(), and pidSet().

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

Integral state.

Kept in intMin, intMax Range.

Definition at line 56 of file pid.h.

Referenced by pidExecute(), and pidSet().


The documentation for this struct was generated from the following file: