Main Page | Data Structures | File List | Data Fields | Globals

pid_status Struct Reference

#include <pid.h>


Detailed Description

PID Status.

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.


Field Documentation

int pid_status::DFactor
 

The Derivative tuning constant, given in x100.

Definition at line 44 of file pid.h.

Referenced by init_pid(), and pid().

int pid_status::IFactor
 

The Integral tuning constant, given in x100.

Definition at line 42 of file pid.h.

Referenced by init_pid(), and pid().

int pid_status::lastProcessValue
 

Last process value, used to find derivative of process value.

Definition at line 36 of file pid.h.

Referenced by init_pid(), and pid().

int pid_status::max_error
 

Maximum allowed error, avoid overflow (= MAX_INT / PFactor).

Definition at line 46 of file pid.h.

Referenced by init_pid(), and pid().

int pid_status::max_sum_error
 

Maximum allowed sumerror, avoid overflow (= MAX_INT / IFactor).

Definition at line 48 of file pid.h.

Referenced by init_pid(), and pid().

int pid_status::PFactor
 

The Proportional tuning constant, given in x100.

Definition at line 40 of file pid.h.

Referenced by init_pid(), and pid().

int pid_status::sumError
 

Summation of errors, used for integrate calculations.

Definition at line 38 of file pid.h.

Referenced by init_pid(), and pid().


Generated on Thu Nov 10 11:00:41 2005 for AVR221 Discrete PID controller by  doxygen 1.4.4