From d487d6152e741a7c54e1e5749043e72043629db9 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Thu, 21 Jan 2021 15:24:01 +0900 Subject: [PATCH] Plane: ahrs pre-arm always runs position checks --- 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 6e6c0a4bfe..c1d6a1dec8 100644 --- a/ArduPlane/AP_Arming.cpp +++ b/ArduPlane/AP_Arming.cpp @@ -125,7 +125,7 @@ bool AP_Arming_Plane::ins_checks(bool display_failure) if ((checks_to_perform & ARMING_CHECK_ALL) || (checks_to_perform & ARMING_CHECK_INS)) { char failure_msg[50] = {}; - if (!AP::ahrs().pre_arm_check(failure_msg, sizeof(failure_msg))) { + if (!AP::ahrs().pre_arm_check(true, failure_msg, sizeof(failure_msg))) { check_failed(ARMING_CHECK_INS, display_failure, "AHRS: %s", failure_msg); return false; }