SPRUHJ1I January 2013 – October 2021 TMS320F2802-Q1 , TMS320F28026-Q1 , TMS320F28026F , TMS320F28027-Q1 , TMS320F28027F , TMS320F28027F-Q1 , TMS320F28052-Q1 , TMS320F28052F , TMS320F28052F-Q1 , TMS320F28052M , TMS320F28052M-Q1 , TMS320F28054-Q1 , TMS320F28054F , TMS320F28054F-Q1 , TMS320F28054M , TMS320F28054M-Q1 , TMS320F2806-Q1 , TMS320F28062-Q1 , TMS320F28062F , TMS320F28062F-Q1 , TMS320F28068F , TMS320F28068M , TMS320F28069-Q1 , TMS320F28069F , TMS320F28069F-Q1 , TMS320F28069M , TMS320F28069M-Q1
extern void EST_setLs_d_pu(EST_Handle handle,const _iq Ls_d_pu);
Sets the direct stator inductance value in the estimator in per unit (pu), IQ30
The internal direct inductance (Ls_d) used by the estimator can be changed in real time by calling this function. An example showing how this is done is shown here:
#define USER_MOTOR_Ls_d (0.012)
float_t fullScaleInductance = EST_getFullScaleInductance(handle);
float_t Ls_coarse_max = _IQ30toF(EST_getLs_coarse_max_pu(handle));
int_least8_t lShift = ceil(log(USER_MOTOR_Ls_d/(Ls_coarse_max*fullScaleInductance))/log(2.0));
uint_least8_t Ls_qFmt = 30 - lShift;
float_t L_max = fullScaleInductance * pow(2.0,lShift);
_iq Ls_d_pu = _IQ30(USER_MOTOR_Ls_d / L_max);
EST_setLs_d_pu(handle, Ls_d_pu);
EST_setLs_qFmt(handle, Ls_qFmt);
The estimator (EST) handle
The direct stator inductance value, pu