From 10476200a431d640343cbdc09cef6957cfee34e8 Mon Sep 17 00:00:00 2001 From: Matthias Grob Date: Thu, 30 Apr 2026 00:44:06 +0200 Subject: [PATCH] fix(commander): Allow arming via RC in autonomous modes There's a check to disallow arming in modes that are not suite for takeoff. The allowed autonmous ones are: Mission - desired Loiter - does not make sense but needs to be kept for **** MAVLink MAVSDK workflow of first arming then switching mode Offboard - acceptable advanced case even for RC Takeoff - desired VTOL Takeoff - desired --- src/modules/commander/Commander.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/modules/commander/Commander.cpp b/src/modules/commander/Commander.cpp index 57bc709d01b..fcc6a8bf48e 100644 --- a/src/modules/commander/Commander.cpp +++ b/src/modules/commander/Commander.cpp @@ -654,16 +654,6 @@ transition_result_t Commander::arm(arm_disarm_reason_t calling_reason, bool run_ return TRANSITION_DENIED; } } - - } else if (calling_reason == arm_disarm_reason_t::stick_gesture - || calling_reason == arm_disarm_reason_t::rc_switch - || calling_reason == arm_disarm_reason_t::rc_button) { - - mavlink_log_critical(&_mavlink_log_pub, "Arming denied: switch to manual mode first\t"); - events::send(events::ID("commander_arm_denied_not_manual"), {events::Log::Critical, events::LogInternal::Info}, - "Arming denied: switch to manual mode first"); - tune_negative(true); - return TRANSITION_DENIED; } _health_and_arming_checks.update(false, true);