mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 03:23:35 +08:00
ekf2: selector improve timeout handling and reporting
- relax estimator_status timeout unless attitude hasn't published recently
This commit is contained in:
@@ -104,7 +104,12 @@ private:
|
||||
uORB::Subscription estimator_global_position_sub;
|
||||
uORB::Subscription estimator_odometry_sub;
|
||||
|
||||
estimator_status_s status{};
|
||||
uint64_t timestamp_sample_last{0};
|
||||
|
||||
uint32_t accel_device_id{0};
|
||||
uint32_t gyro_device_id{0};
|
||||
uint32_t baro_device_id{0};
|
||||
uint32_t mag_device_id{0};
|
||||
|
||||
hrt_abstime time_last_selected{0};
|
||||
|
||||
@@ -113,6 +118,7 @@ private:
|
||||
|
||||
bool healthy{false};
|
||||
bool filter_fault{false};
|
||||
bool timeout{false};
|
||||
|
||||
const uint8_t instance;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user