From 0db25426c0497c16a72376982de1780dd1f9d3ec Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Tue, 12 May 2015 15:19:15 +0900 Subject: [PATCH] Plane: use accel_calibrated_ok_all --- ArduPlane/GCS_Mavlink.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduPlane/GCS_Mavlink.pde b/ArduPlane/GCS_Mavlink.pde index 993430c2d4..35be1bb145 100644 --- a/ArduPlane/GCS_Mavlink.pde +++ b/ArduPlane/GCS_Mavlink.pde @@ -224,7 +224,7 @@ static NOINLINE void send_extended_status1(mavlink_channel_t chan) // AHRS subsystem is unhealthy control_sensors_health &= ~MAV_SYS_STATUS_AHRS; } - if (ahrs.have_inertial_nav() && !ins.calibrated()) { + if (ahrs.have_inertial_nav() && !ins.accel_calibrated_ok_all()) { // trying to use EKF without properly calibrated accelerometers control_sensors_health &= ~MAV_SYS_STATUS_AHRS; }