removed unnecessary case

Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
RomanBapst 2024-10-17 14:33:11 +03:00 committed by Roman Bapst
parent 02d344d9d9
commit 79ec39e561

View File

@ -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) {