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
In order to continue driving the motor at low speeds, without stalling the motor, user must tune the speed controller so that the reaction of the speed controller is fast enough to prevent the motor from completely stopping during torque transients. The following functions can be used to update the speed controller inside of InstaSPIN:
_iq New_Kp_spd;
_iq New_Ki_spd;
// set the kp and ki speed controller gains
CTRL_setKp(handle,CTRL_Type_PID_spd, New_Kp_spd);
CTRL_setKi(handle,CTRL_Type_PID_spd, New_Ki_spd);