From a6bda813f17eb1764438ca3840cbd87de8524da1 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 25 Oct 2017 15:32:52 +1100 Subject: [PATCH] Tracker: use gps singleton for GCS functions --- AntennaTracker/GCS_Mavlink.cpp | 5 ----- AntennaTracker/GCS_Mavlink.h | 1 - 2 files changed, 6 deletions(-) diff --git a/AntennaTracker/GCS_Mavlink.cpp b/AntennaTracker/GCS_Mavlink.cpp index c101e7869d..828c8412c3 100644 --- a/AntennaTracker/GCS_Mavlink.cpp +++ b/AntennaTracker/GCS_Mavlink.cpp @@ -771,11 +771,6 @@ void Tracker::gcs_retry_deferred(void) gcs().retry_deferred(); } -AP_GPS *GCS_MAVLINK_Tracker::get_gps() const -{ - return &tracker.gps; -} - Compass *GCS_MAVLINK_Tracker::get_compass() const { return &tracker.compass; diff --git a/AntennaTracker/GCS_Mavlink.h b/AntennaTracker/GCS_Mavlink.h index 6604890eb3..06b81b383d 100644 --- a/AntennaTracker/GCS_Mavlink.h +++ b/AntennaTracker/GCS_Mavlink.h @@ -21,7 +21,6 @@ protected: AP_Rally *get_rally() const override { return nullptr; }; AP_Camera *get_camera() const override { return nullptr; }; AP_ServoRelayEvents *get_servorelayevents() const override { return nullptr; } - AP_GPS *get_gps() const override; const AP_FWVersion &get_fwver() const override; void set_ekf_origin(const Location& loc) override;