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 bool EST_getForceAngleStatus(EST_Handle handle);
Gets the status of the force angle operation in the estimator. The status can only change to active when forced angle mode has been enabled by calling the following function: EST_setFlag_enableForceAngle(handle, true); Forced angle mode will be active when the electrical frequency of the motor falls below the defined threshold in user.h: #define USER_ZEROSPEEDLIMIT (0.001) details A manual check of forced angle status can be done using the following code example:
_iq fe_pu = EST_getFe_pu(handle);
bool is_forced_angle_active;
if(_IQabs(fe_pu) < _IQ(USER_ZEROSPEEDLIMIT))
{
is_forced_angle_active = true;
}
else
{
is_forced_angle_active = false;
}
Note that kHz is preferred to avoid overflow of IQ24 variables.
The estimator (EST) handle
A Boolean value denoting whether the angle has been forced (true) or not (false)
\retval