From f6da769de834ba2ca92a9be37f7d9d2dea408125 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Thu, 21 Jan 2021 13:16:45 +0900 Subject: [PATCH] Rover: ahrs only checks position in modes that require it --- Rover/AP_Arming.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rover/AP_Arming.cpp b/Rover/AP_Arming.cpp index 969efd62bf..8bcf53fa03 100644 --- a/Rover/AP_Arming.cpp +++ b/Rover/AP_Arming.cpp @@ -43,7 +43,7 @@ bool AP_Arming_Rover::gps_checks(bool display_failure) // always check if inertial nav has started and is ready char failure_msg[50] = {}; - if (!ahrs.pre_arm_check(failure_msg, sizeof(failure_msg))) { + if (!ahrs.pre_arm_check(true, failure_msg, sizeof(failure_msg))) { check_failed(display_failure, "AHRS: %s", failure_msg); return false; }