mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-12 04:47:36 +08:00
EKF: publish the vertical position offset
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user