diff --git a/EKF/ekf.h b/EKF/ekf.h index 2c62540d3f..f7ee978113 100644 --- a/EKF/ekf.h +++ b/EKF/ekf.h @@ -126,6 +126,9 @@ public: // get GPS check status void get_gps_check_status(uint16_t *_gps_check_fail_status); + // return the amount the local vertical position changed in the last height reset and the time of the reset + void get_vert_pos_reset(float *delta, uint64_t *time_us) {*delta = _vert_pos_reset_delta; *time_us = _time_vert_pos_reset;} + private: static const uint8_t _k_num_states = 24; diff --git a/EKF/estimator_interface.h b/EKF/estimator_interface.h index b99dafff6d..a917fa8456 100644 --- a/EKF/estimator_interface.h +++ b/EKF/estimator_interface.h @@ -220,6 +220,9 @@ public: // get GPS check status virtual void get_gps_check_status(uint16_t *val) = 0; + // return the amount the local vertical position changed in the last height reset and the time of the reset + virtual void get_vert_pos_reset(float *delta, uint64_t *time_us) = 0; + protected: parameters _params; // filter parameters