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 _iq EST_getLs_q_pu(EST_Handle handle);
Gets the stator inductance value in the quadrature coordinate direction in per unit (pu), IQ30
The per units value of the quadrature stator inductance can be used as an alternative way of calculating the quadrature stator inductance of a permanent magnet motor using fixed point math. An example showing how this is done is shown here:
#define VarShift(var,nshift) (((nshift) < 0) ? ((var)>>(-(nshift))) : ((var)<<(nshift)))
#define MATH_PI (3.1415926535897932384626433832795)
#define USER_IQ_FULL_SCALE_VOLTAGE_V (300.0)
#define USER_IQ_FULL_SCALE_CURRENT_A (10.0)
#define USER_VOLTAGE_FILTER_POLE_Hz (335.648)
#define USER_VOLTAGE_FILTER_POLE_rps (2.0 * MATH_PI * USER_VOLTAGE_FILTER_POLE_Hz)
uint_least8_t Ls_qFmt = EST_getLs_qFmt(handle);
_iq fullScaleInductance = _IQ(USER_IQ_FULL_SCALE_VOLTAGE_V/(USER_IQ_FULL_SCALE_CURRENT_A * USER_VOLTAGE_FILTER_POLE_rps));
_iq Ls_q_pu = _IQ30toIQ(EST_getLs_q_pu(handle));
_iq pu_to_h_sf = VarShift(fullScaleInductance, 30 - Ls_qFmt);
_iq Ls_q_H = _IQmpy(Ls_q_pu, pu_to_h_sf);
The estimator (EST) handle
The stator inductance value, pu