From 50167bfbcf40874947c3a4e9d3ffdca846c20b0e Mon Sep 17 00:00:00 2001 From: bresch Date: Wed, 16 Oct 2019 11:58:58 +0200 Subject: [PATCH] estimator interface: add deprecated functions for backward compatibility --- EKF/estimator_interface.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/EKF/estimator_interface.h b/EKF/estimator_interface.h index 6a599e156c..3c7d6501c1 100644 --- a/EKF/estimator_interface.h +++ b/EKF/estimator_interface.h @@ -124,6 +124,10 @@ public: virtual void getHaglInnovVar(float *hagl_innov_var) = 0; virtual void getHaglInnov(float *hagl_innov) = 0; + //[[deprecated("Replaced by getHaglInnovVar")]] + void get_hagl_innov_var(float *hagl_innov_var) { getHaglInnovVar(hagl_innov_var); } + //[[deprecated("Replaced by getHaglInnov")]] + void get_hagl_innov(float *hagl_innov) { getHaglInnov(hagl_innov); } // return an array containing the output predictor angular, velocity and position tracking // error magnitudes (rad), (m/s), (m) @@ -266,9 +270,13 @@ public: bool inertial_dead_reckoning() {return _is_dead_reckoning;} virtual bool isTerrainEstimateValid() = 0; + //[[deprecated("Replaced by isTerrainEstimateValid")]] + bool get_terrain_valid() { return isTerrainEstimateValid(); } // get the estimated terrain vertical position relative to the NED origin virtual void getTerrainVertPos(float *ret) = 0; + //[[deprecated("Replaced by getTerrainVertPos")]] + void get_terrain_vert_pos(float *ret) { getTerrainVertPos(ret); } // return true if the local position estimate is valid bool local_position_is_valid();