From e4c0ef789b36f340a07d41902c00c3f4dd6a625e Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 30 Aug 2018 19:58:45 +1000 Subject: [PATCH] Sub: GCS_MAVLink uses compass singleton, stop implementing get_compass --- ArduSub/GCS_Mavlink.cpp | 5 ----- ArduSub/GCS_Mavlink.h | 1 - 2 files changed, 6 deletions(-) diff --git a/ArduSub/GCS_Mavlink.cpp b/ArduSub/GCS_Mavlink.cpp index cc4f92d285..9c3ee39c14 100644 --- a/ArduSub/GCS_Mavlink.cpp +++ b/ArduSub/GCS_Mavlink.cpp @@ -1254,11 +1254,6 @@ void Sub::gcs_update() gcs().update(); } -Compass *GCS_MAVLINK_Sub::get_compass() const -{ - return &sub.compass; -} - AP_Mission *GCS_MAVLINK_Sub::get_mission() { return &sub.mission; diff --git a/ArduSub/GCS_Mavlink.h b/ArduSub/GCS_Mavlink.h index 823cdc564e..29408be973 100644 --- a/ArduSub/GCS_Mavlink.h +++ b/ArduSub/GCS_Mavlink.h @@ -12,7 +12,6 @@ protected: return 0; }; - Compass *get_compass() const override; AP_Mission *get_mission() override; AP_Rally *get_rally() const override; AP_Camera *get_camera() const override;