|
|
@@ -3,6 +3,7 @@
|
|
|
#include "foc/foc_config.h"
|
|
|
#include "foc/motor/motor_param.h"
|
|
|
#include "foc/core/e_ctrl.h"
|
|
|
+#include "foc/core/etcs.h"
|
|
|
#include "math/fix_math.h"
|
|
|
#include "math/fast_math.h"
|
|
|
#include "foc/motor/current.h"
|
|
|
@@ -1378,7 +1379,7 @@ void PMSM_FOC_AutoHold(bool lock) {
|
|
|
PI_Controller_Reset(&gFoc_Ctrl.pi_vel, hold_torque);
|
|
|
#endif
|
|
|
}
|
|
|
- eCtrl_reset_Torque(hold_torque);
|
|
|
+ etcs_reset_torque(hold_torque);
|
|
|
gFoc_Ctrl.out.f_autohold_trq = hold_torque;
|
|
|
}else {
|
|
|
gFoc_Ctrl.out.f_autohold_trq = 0;
|