Motor Evaluation Kit NEVC-MCTRL-100-t01-1.0.0
Firmware for NEVB-MCTRL-100-01 for trapezoidal control of BLDC motors using Hall-effect sensors
Loading...
Searching...
No Matches
pidData Struct Reference

PID Status. More...

#include <pid.h>

Public Attributes

int16_t lastProcessValue
 Last process value, used to find derivative of process value.
 
int32_t sumError
 Summation of errors, used for integrate calculations.
 
int16_t P_Factor
 The Proportional tuning constant, given in x100.
 
int16_t I_Factor
 The Integral tuning constant, given in x100.
 
int16_t D_Factor
 The Derivative tuning constant, given in x100.
 
int16_t maxError
 Maximum allowed error, avoid overflow.
 
int32_t maxSumError
 Maximum allowed sum error, avoid overflow.
 
int16_t d_term
 The D-term represents the rate of change of the error.
 
int16_t p_term
 The P-term represents the immediate response to the current error.
 
int32_t i_term
 

Detailed Description

PID Status.

Set points and data used by the PID control algorithm

Definition at line 46 of file pid.h.

Member Data Documentation

◆ D_Factor

int16_t pidData::D_Factor

The Derivative tuning constant, given in x100.

Definition at line 57 of file pid.h.

◆ d_term

int16_t pidData::d_term

The D-term represents the rate of change of the error.

Definition at line 64 of file pid.h.

◆ I_Factor

int16_t pidData::I_Factor

The Integral tuning constant, given in x100.

Definition at line 55 of file pid.h.

◆ i_term

int32_t pidData::i_term

The I-term accumulates the error over time to eliminate steady-state errors

Definition at line 70 of file pid.h.

◆ lastProcessValue

int16_t pidData::lastProcessValue

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

Definition at line 49 of file pid.h.

◆ maxError

int16_t pidData::maxError

Maximum allowed error, avoid overflow.

Definition at line 59 of file pid.h.

◆ maxSumError

int32_t pidData::maxSumError

Maximum allowed sum error, avoid overflow.

Definition at line 61 of file pid.h.

◆ P_Factor

int16_t pidData::P_Factor

The Proportional tuning constant, given in x100.

Definition at line 53 of file pid.h.

◆ p_term

int16_t pidData::p_term

The P-term represents the immediate response to the current error.

Definition at line 67 of file pid.h.

◆ sumError

int32_t pidData::sumError

Summation of errors, used for integrate calculations.

Definition at line 51 of file pid.h.


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