Hi TI team,
We are using torque loop in the BLDC mode to run the motor. But In the current loop they are tuning the Speed loop also, what is the need of tuning the Speed loop in current mode. When entering or exiting from the BLDC mode.
if(gHall_Flag_CurrentCtrl == true) // Torque Control
{
// The following instructions load the parameters for the speed PI
// controller.
//PID_setGains(pidHandle[0],_IQ(1.0),_IQ(0.02),_IQ(0.0));//From TI
// Set the initial condition value for the integrator output to 0, Id
PID_setUi(pidHandle[1],_IQ(0.0));
// Set the initial condition value for the integrator output to 0, Iq
PID_setUi(pidHandle[2], _IQmpy(pid[3].Ui, _IQ(0.25))); //default (0.25)
}
Thanks