From 57cc0cac9706c017e5c5319ca6f4130e52260913 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 16 May 2018 13:02:43 +1000 Subject: [PATCH] Plane: GCS_MAVLink base class now uses same ekf call to get alt --- ArduPlane/GCS_Mavlink.cpp | 5 ----- ArduPlane/GCS_Mavlink.h | 1 - 2 files changed, 6 deletions(-) diff --git a/ArduPlane/GCS_Mavlink.cpp b/ArduPlane/GCS_Mavlink.cpp index c45673648b..908a2d810c 100644 --- a/ArduPlane/GCS_Mavlink.cpp +++ b/ArduPlane/GCS_Mavlink.cpp @@ -1781,8 +1781,3 @@ const AP_FWVersion &GCS_MAVLINK_Plane::get_fwver() const { return plane.fwver; } - -int32_t GCS_MAVLINK_Plane::global_position_int_relative_alt() const -{ - return plane.relative_altitude * 1.0e3f; -} diff --git a/ArduPlane/GCS_Mavlink.h b/ArduPlane/GCS_Mavlink.h index a8034ff543..505476a24b 100644 --- a/ArduPlane/GCS_Mavlink.h +++ b/ArduPlane/GCS_Mavlink.h @@ -34,7 +34,6 @@ protected: virtual bool in_hil_mode() const override; - int32_t global_position_int_relative_alt() const; void send_attitude() const override; private: