Part Number: TMS320F28069F
Hello,
I have a question on the Motorware software for TMS320F2806xF devices.
Specifically it is on the function of USER_calcPIgains() listed in the file of user.c.
In this function, the controller gains are newly calculated as follows:
Kp_Id = _IQ((0.25*Ls_d*fullScaleCurrent)/(ctrlPeriod_sec*fullScaleVoltage));
Ki_Id = _IQ(RoverLs_d*ctrlPeriod_sec);
Kp_Iq = _IQ((0.25*Ls_q*fullScaleCurrent)/(ctrlPeriod_sec*fullScaleVoltage));
Ki_Iq = _IQ(RoverLs_q*ctrlPeriod_sec);
Then they are applied as follws:
// set the Id controller gains
PID_setKi(obj->pidHandle_Id,Ki_Id);
CTRL_setGains(handle,CTRL_Type_PID_Id,Kp_Id,Ki_Id,Kd);
// set the Iq controller gains
PID_setKi(obj->pidHandle_Iq,Ki_Iq);
CTRL_setGains(handle,CTRL_Type_PID_Iq,Kp_Iq,Ki_Iq,Kd);
I can not understand why the function of PID_setKp() is not called upon. The function of PID_setKi() is being only called upon.
Is there any reason?
Thank you for your guidance.
With regards,
JS Yoo