From 84922cba9a0266fd95dc9f230c34e66db129213f Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Sun, 4 Sep 2022 02:57:38 +0100 Subject: [PATCH] Plane: Quadplane: use new motors pre arm --- ArduPlane/AP_Arming.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ArduPlane/AP_Arming.cpp b/ArduPlane/AP_Arming.cpp index 2abe4e4f19..6c05442d35 100644 --- a/ArduPlane/AP_Arming.cpp +++ b/ArduPlane/AP_Arming.cpp @@ -147,8 +147,9 @@ bool AP_Arming_Plane::quadplane_checks(bool display_failure) ret = false; } - if (!plane.quadplane.motors->initialised_ok()) { - check_failed(display_failure, "Quadplane: check motor setup"); + char failure_msg[50] {}; + if (!plane.quadplane.motors->arming_checks(ARRAY_SIZE(failure_msg), failure_msg)) { + check_failed(display_failure, "Motors: %s", failure_msg); ret = false; } @@ -176,7 +177,6 @@ bool AP_Arming_Plane::quadplane_checks(bool display_failure) } // ensure controllers are OK with us arming: - char failure_msg[50] = {}; if (!plane.quadplane.pos_control->pre_arm_checks("PSC", failure_msg, ARRAY_SIZE(failure_msg))) { check_failed(ARMING_CHECK_PARAMETERS, display_failure, "Bad parameter: %s", failure_msg); ret = false;