From ca4f25a78e81b6ac763578c52d72c0b1be718b6e Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 2 Dec 2017 10:50:04 +1100 Subject: [PATCH] AP_Terrain: use GPS singleton --- libraries/AP_Terrain/TerrainMission.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Terrain/TerrainMission.cpp b/libraries/AP_Terrain/TerrainMission.cpp index 15fd47a5b8..02846ac99a 100644 --- a/libraries/AP_Terrain/TerrainMission.cpp +++ b/libraries/AP_Terrain/TerrainMission.cpp @@ -47,7 +47,7 @@ void AP_Terrain::update_mission_data(void) uint16_t pending, loaded; get_statistics(pending, loaded); - if (pending && ahrs.get_gps().status() >= AP_GPS::GPS_OK_FIX_3D) { + if (pending && AP::gps().status() >= AP_GPS::GPS_OK_FIX_3D) { // wait till we have fully filled the current set of grids return; } @@ -124,7 +124,7 @@ void AP_Terrain::update_rally_data(void) uint16_t pending, loaded; get_statistics(pending, loaded); - if (pending && ahrs.get_gps().status() >= AP_GPS::GPS_OK_FIX_3D) { + if (pending && AP::gps().status() >= AP_GPS::GPS_OK_FIX_3D) { // wait till we have fully filled the current set of grids return; }