Hi Champ,
Currently, I am working on digital control with the customer.
It is found that the DCL_PI_CLA controller structure in DCLCLA.h file is missing a default value.
It may cause an error when compiling with the header file.
As the below attached code (begins in Line.64) in DCLCLA.h file.
typedef volatile struct {
float32_t Kp; //!< Proportional gain
float32_t Ki; //!< Integral gain
float32_t i10; //!< I storage
float32_t Umax; //!< Upper control saturation limit
float32_t Umin; //!< Lower control saturation limit
float32_t i6; //!< Saturation storage
float32_t i11; //!< I storage
float32_t Imax; //!< Upper integrator saturation limit
float32_t Imin; //!< Lower integrator saturation limit
} DCL_PI_CLA;
//! \brief Defines default values to initialize the PI_CLA structure
//!
#define PI_CLA_DEFAULTS { 1.0f, 0.0f, 0.0f, 1.0f, -1.0f, 1.0f, 1.0f, -1.0f }
The default values to initialize the PI_CLA structure is missing one initialization.
I think it is suppose to be the struct variable i11 which is missing, may I confirm that ?
If so, i11 should initial to 0.0f, correct ?
Thanks.
BR, Johnny