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
This consideration is required in this mode of operation since a negative DC current is applied to the motor in order to recalibrate Rs. This DC current must be removed as fast as possible before running the motor in closed loop. In order to do this, the following code example should be used to change the maximum current slope value to a maximum.
// set max current slope value to a maximum
EST_setMaxCurrentSlope_pu(obj->estHandle,_IQ(127.99));
The input parameter of the maximum slope function expects a value in IQ24, which has a maximum value of 127.99. This would cause a step increase in the current when it starts injecting current to recalibrate the resistance, as well as a step to remove such current, which is what we want to accomplish.