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 int32_t EST_getFullScaleCurrent(EST_Handle handle);
Gets the full scale current value used in the estimator in Amperes (A)
The value returned by this function is the same as the value defined in user.h. When users require to display a value in real world units; that is, in Amperes, this value is used to convert the per unit values of currents into Amperes. The following example shows two different ways of doing this conversion, one using floating point, and the other one using IQ math. Example using floating point:
float_t pu_to_amps_sf = EST_getFullScaleCurrent(handle);
_iq Id_rated_pu = EST_getIdRated_pu(handle);
float_t Id_rated_A = _IQtoF(Id_rated_pu) * pu_to_amps_sf;
Example using fixed point:
#define USER_IQ_FULL_SCALE_CURRENT_A (10.0)
_iq pu_to_amps_sf = _IQ(USER_IQ_FULL_SCALE_CURRENT_A);
_iq Id_rated_pu = EST_getIdRated_pu(handle);
_iq Id_rated_A = _IQmpy(Id_rated_pu, pu_to_amps_sf);
The estimator (EST) handle
The full scale current value, A