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.

CCS/TIDM-1007: How to use the DCL_runPI_C1() function?

Part Number: TIDM-1007

Tool/software: Code Composer Studio

Hi, expert

Please look at the DCL_runPI_C1() function used in TIDM-1007.

The discription of this function is:

extern float32_t DCL_runPI_C1(DCL_PI *p, float32_t rk, float32_t yk);

//! \brief Executes an inline series form PI controller on the FPU32
//! \param[in] p Pointer to the DCL_PI structure
//! \param[in] rk The controller set-point reference
//! \param[in] yk The measured feedback value
//! \return The control effort
//!

But, this function is cited by:

            gi_out=GI_RUN(&gi, ac_cur_sensed, ac_cur_ref_inst);

My question is, why here the parameters of rk and yk seems are reversed? Anything is wrong?

Hope your reply. Thanks.