From 79ec39e561c4d170190114abc045881a972e9064 Mon Sep 17 00:00:00 2001 From: RomanBapst Date: Thu, 17 Oct 2024 14:33:11 +0300 Subject: [PATCH] removed unnecessary case Signed-off-by: RomanBapst --- src/modules/fw_pos_control/FixedwingPositionControl.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/modules/fw_pos_control/FixedwingPositionControl.cpp b/src/modules/fw_pos_control/FixedwingPositionControl.cpp index 77d7c7eb5a61..bdf5a868325f 100644 --- a/src/modules/fw_pos_control/FixedwingPositionControl.cpp +++ b/src/modules/fw_pos_control/FixedwingPositionControl.cpp @@ -768,9 +768,6 @@ FixedwingPositionControl::set_control_mode_current(const hrt_abstime &now) // we handle loss of position control during backtransition as a special case _control_mode_current = FW_POSCTRL_MODE_TRANSITON; - } else if (_param_nav_gpsf_lt.get() > 0.f && _vehicle_status.in_transition_mode) { - _control_mode_current = FW_POSCTRL_MODE_AUTO_ALTITUDE; - } else if (hrt_elapsed_time(&_time_in_fixed_bank_loiter) < (_param_nav_gpsf_lt.get() * 1_s) && !_vehicle_status.in_transition_mode) { if (commanded_position_control_mode != FW_POSCTRL_MODE_AUTO_ALTITUDE) {