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
#define USER_MAX_VS_MAG_PU (0.5)
Set to 1.0 if a current reconstruction technique is not used. For more information, see the svgen_current module in Lab10a-x.
Defines the maximum voltage vector (Vs) magnitude allowed. This value sets the maximum magnitude for the output of the Id and Iq PI current controllers. The Id and Iq current controller outputs are Vd and Vq.
The relationship between Vs, Vd, and Vq is:
Vs = sqrt(Vd^2 + Vq^2).
In this FOC controller, the Vd value is set equal to USER_MAX_VS_MAG*USER_VD_MAG_FACTOR.
Vq = sqrt(USER_MAX_VS_MAG^2 - Vd^2).