mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 01:13:33 +08:00
EKF: Make range finder data continuous check more robust
Use a filtered arrival time delta to determine if range data is continuous
This commit is contained in:
@@ -183,6 +183,7 @@ bool Ekf::init(uint64_t timestamp)
|
||||
_terrain_initialised = false;
|
||||
_sin_tilt_rng = sinf(_params.rng_sens_pitch);
|
||||
_cos_tilt_rng = cosf(_params.rng_sens_pitch);
|
||||
_range_data_continuous = false;
|
||||
|
||||
_control_status.value = 0;
|
||||
_control_status_prev.value = 0;
|
||||
@@ -214,6 +215,7 @@ bool Ekf::update()
|
||||
predictCovariance();
|
||||
|
||||
// perform state and variance prediction for the terrain estimator
|
||||
checkRangeDataContinuity();
|
||||
if (!_terrain_initialised) {
|
||||
_terrain_initialised = initHagl();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user