From 57cbf212be07e3f7ce775b6b23fc1cce673522e8 Mon Sep 17 00:00:00 2001 From: Silvan Fuhrer Date: Wed, 8 Jul 2020 11:34:42 +0200 Subject: [PATCH] PreFlightchecks: remove duplicated VTOL mode prearm check This removes the check for the current position of the VTOL swtich, as arming is already prevented if in transition mode, plus also if VTOL and in fixed-wing mode (unless CBRK_VTOL_ARMING is set). Signed-off-by: Silvan Fuhrer --- .../Arming/PreFlightCheck/checks/manualControlCheck.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/modules/commander/Arming/PreFlightCheck/checks/manualControlCheck.cpp b/src/modules/commander/Arming/PreFlightCheck/checks/manualControlCheck.cpp index fecfa35d33..b8b0e80c7f 100644 --- a/src/modules/commander/Arming/PreFlightCheck/checks/manualControlCheck.cpp +++ b/src/modules/commander/Arming/PreFlightCheck/checks/manualControlCheck.cpp @@ -74,13 +74,6 @@ bool PreFlightCheck::manualControlCheck(orb_advert_t *mavlink_log_pub, const boo } } - if (manual_control_setpoint.transition_switch == manual_control_setpoint_s::SWITCH_POS_ON) { - success = false; - - if (report_fail) { - mavlink_log_critical(mavlink_log_pub, "Failure: VTOL transition switch engaged"); - } - } } return success;