Browse Source

EKF: publish the vertical position offset

master
Paul Riseborough 9 years ago
parent
commit
10bf05e9a6
  1. 3
      EKF/ekf.h
  2. 3
      EKF/estimator_interface.h

3
EKF/ekf.h

@ -126,6 +126,9 @@ public: @@ -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;

3
EKF/estimator_interface.h

@ -220,6 +220,9 @@ public: @@ -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

Loading…
Cancel
Save