From ff93999a9425c1b1b9456fc4c101f89b9b47f5a3 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 4 Jul 2021 18:20:29 +1000 Subject: [PATCH] Plane: fixed motor test with DShot VTOL motors need to arm when running the motor test --- ArduPlane/AP_Arming.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduPlane/AP_Arming.cpp b/ArduPlane/AP_Arming.cpp index 83f03306c2..19e7246646 100644 --- a/ArduPlane/AP_Arming.cpp +++ b/ArduPlane/AP_Arming.cpp @@ -264,7 +264,7 @@ bool AP_Arming_Plane::disarm(const AP_Arming::Method method, bool do_disarm_chec void AP_Arming_Plane::update_soft_armed() { - hal.util->set_soft_armed(is_armed() && + hal.util->set_soft_armed((plane.quadplane.motor_test.running || is_armed()) && hal.util->safety_switch_state() != AP_HAL::Util::SAFETY_DISARMED); AP::logger().set_vehicle_armed(hal.util->get_soft_armed());