From 1d3e7d454aa3f347265313a142fde4f312760bd1 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 28 Dec 2017 14:44:22 +1100 Subject: [PATCH] Rover: correct gps-is-healthy mode change check --- APMrover2/mode.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/APMrover2/mode.cpp b/APMrover2/mode.cpp index cdc6d258fe..14f3c0eb95 100644 --- a/APMrover2/mode.cpp +++ b/APMrover2/mode.cpp @@ -33,6 +33,7 @@ bool Mode::enter_gps_checks() const //GPS update rate acceptable if (!gps.is_healthy()) { gcs().send_text(MAV_SEVERITY_CRITICAL, "GPS is not healthy"); + return false; } // check GPSs are within 50m of each other and that blending is healthy