From f0d06e7a9c8514be8ab906cd2761a1929021dac6 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 10 Mar 2018 20:35:13 +1100 Subject: [PATCH] AP_Arming: use ins singleton --- libraries/AP_Arming/AP_Arming.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Arming/AP_Arming.cpp b/libraries/AP_Arming/AP_Arming.cpp index 518436bc9c..27bceaa1ed 100644 --- a/libraries/AP_Arming/AP_Arming.cpp +++ b/libraries/AP_Arming/AP_Arming.cpp @@ -172,7 +172,7 @@ bool AP_Arming::ins_checks(bool report) { if ((checks_to_perform & ARMING_CHECK_ALL) || (checks_to_perform & ARMING_CHECK_INS)) { - const AP_InertialSensor &ins = ahrs.get_ins(); + const AP_InertialSensor &ins = AP::ins(); if (!ins.get_gyro_health_all()) { if (report) { gcs().send_text(MAV_SEVERITY_CRITICAL, "PreArm: Gyros not healthy");