This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F280049C: Missing default values to initialize the PI_CLA structure in DCLCLA header file

Part Number: TMS320F280049C


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