SWARM-Bot Firmware  v1.0
Mobile robot OS - Embedded C/C++
PID_DATA Struct Reference

PID Status. More...

#include <_pid_.h>

Collaboration diagram for PID_DATA:

Public Attributes

int16_t lastProcessValue
 Last process value, used to find derivative of process value. More...
 
int32_t sumError
 Summation of errors, used for integrate calculations. More...
 
int16_t P_Factor
 The Proportional tuning constant, multiplied with SCALING_FACTOR. More...
 
int16_t I_Factor
 The Integral tuning constant, multiplied with SCALING_FACTOR. More...
 
int16_t D_Factor
 The Derivative tuning constant, multiplied with SCALING_FACTOR. More...
 
int16_t maxError
 Maximum allowed error, avoid overflow. More...
 
int32_t maxSumError
 Maximum allowed sumerror, avoid overflow. More...
 

Detailed Description

PID Status.

Setpoints and data used by the PID control algorithm

Member Data Documentation

◆ D_Factor

int16_t PID_DATA::D_Factor

The Derivative tuning constant, multiplied with SCALING_FACTOR.

Referenced by pid_Init().

◆ I_Factor

int16_t PID_DATA::I_Factor

The Integral tuning constant, multiplied with SCALING_FACTOR.

Referenced by pid_Init().

◆ lastProcessValue

int16_t PID_DATA::lastProcessValue

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

Referenced by pid_Init().

◆ maxError

int16_t PID_DATA::maxError

Maximum allowed error, avoid overflow.

Referenced by pid_Controller(), and pid_Init().

◆ maxSumError

int32_t PID_DATA::maxSumError

Maximum allowed sumerror, avoid overflow.

Referenced by pid_Controller(), and pid_Init().

◆ P_Factor

int16_t PID_DATA::P_Factor

The Proportional tuning constant, multiplied with SCALING_FACTOR.

Referenced by pid_Controller(), and pid_Init().

◆ sumError

int32_t PID_DATA::sumError

Summation of errors, used for integrate calculations.

Referenced by pid_Controller(), pid_Init(), and pid_Reset_Integrator().


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