Other Parts Discussed in Thread: MOTORWARE
My application needs to disable pwm under certain conditions, so I call HAL_disablePwm, the motor enters high-impedance mode, and then, under certain conditions, I need to re-enable pwm and output force, because after calling HAL_disablePwm, the current loop Still running, it will cause the accumulation of UI, so I first called PID_setUi(ctrlobj->pidHandle_Id,_IQ(0)); to clean up the UI of the id axis, then I enabled pwm, called HAL_enablePwm; and immediately output iq Shaft current, I can quickly freeze the motor, how to solve the problem of freeze? Or how to use HAL_disablePwm and HAL_enablePwm safely, quickly and effectively?
