From 7f07e4306ae66e37cd3ce1499c6e4f9a893bbe5c Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sat, 30 May 2015 19:07:14 -0700 Subject: [PATCH] commander: Fix non-existing middle switch position for acro switch --- src/modules/commander/commander.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp index e3386c29f6..7bf67775d1 100644 --- a/src/modules/commander/commander.cpp +++ b/src/modules/commander/commander.cpp @@ -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); }