commander: Fix non-existing middle switch position for acro switch

This commit is contained in:
Lorenz Meier 2015-05-30 19:07:14 -07:00
parent f6dc9c9727
commit 7f07e4306a
1 changed files with 0 additions and 3 deletions

View File

@ -2315,9 +2315,6 @@ set_main_state_rc(struct vehicle_status_s *status_local, struct manual_control_s
res = main_state_transition(status_local,vehicle_status_s::MAIN_STATE_STAB);
}
} else if (sp_man->acro_switch == manual_control_setpoint_s::SWITCH_POS_MIDDLE) {
res = main_state_transition(status_local,vehicle_status_s::MAIN_STATE_ACRO);
} else {
res = main_state_transition(status_local,vehicle_status_s::MAIN_STATE_MANUAL);
}