|
|
@@ -1299,7 +1299,7 @@ static bool mc_run_stall_process(u8 run_mode) {
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
-
|
|
|
+static void mc_autohold_process(void) __attribute__((unused));
|
|
|
static void mc_autohold_process(void) {
|
|
|
if (!mc_conf()->s.auto_hold) {
|
|
|
if (mot_contrl_is_auto_holdding(&motor.controller)) {
|
|
|
@@ -1331,7 +1331,7 @@ static void mc_autohold_process(void) {
|
|
|
motor.n_autohold_time = 0;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+static void mc_process_throttle_epm(void) __attribute__((unused));
|
|
|
static void mc_process_throttle_epm(void) {
|
|
|
if (!motor.b_epm_cmd_move) {//通过命令前进后退,不处理转把
|
|
|
if (mc_throttle_released()) {
|
|
|
@@ -1341,7 +1341,7 @@ static void mc_process_throttle_epm(void) {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+static void mc_process_epm_move(void) __attribute__((unused));
|
|
|
static void mc_process_epm_move(void) {
|
|
|
if (!motor.b_epm || (motor.epm_dir == EPM_Dir_None)){
|
|
|
return;
|
|
|
@@ -1422,7 +1422,6 @@ static void mc_process_curise(void) {
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
-#ifndef CONFIG_DQ_STEP_RESPONSE
|
|
|
static bool mc_can_stop_foc(void) {
|
|
|
if (mc_critical_need_stop()) {
|
|
|
return true;
|
|
|
@@ -1460,8 +1459,6 @@ static bool mc_can_restart_foc(void) {
|
|
|
return can_start;
|
|
|
}
|
|
|
|
|
|
-#endif
|
|
|
-
|
|
|
static void mc_motor_runstop(void) {
|
|
|
u32 mask;
|
|
|
if (mot_contrl_is_start(&motor.controller) && mc_can_stop_foc()) {
|
|
|
@@ -1481,6 +1478,7 @@ static void mc_motor_runstop(void) {
|
|
|
cpu_exit_critical(mask);
|
|
|
}
|
|
|
}
|
|
|
+static void mc_process_throttle_torque(float vol) __attribute__((unused));
|
|
|
static void mc_process_throttle_torque(float vol) {
|
|
|
float torque = throttle_get_torque(&motor.controller, vol);
|
|
|
|