mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
EKF: protect covariance prediction from delta time errors
Allow time step to vary by a factor of 2 to allow for jitter.
This commit is contained in:
parent
fa07536314
commit
bef7325884
@ -143,7 +143,7 @@ void Ekf::predictCovariance()
|
||||
float dvy_b = _state.accel_bias(1);
|
||||
float dvz_b = _state.accel_bias(2);
|
||||
|
||||
float dt = _imu_sample_delayed.delta_ang_dt;
|
||||
float dt = math::constrain(_imu_sample_delayed.delta_ang_dt, 0.0005f * FILTER_UPDATE_PERIOD_MS, 0.002f * FILTER_UPDATE_PERIOD_MS);
|
||||
|
||||
// compute noise variance for stationary processes
|
||||
float process_noise[_k_num_states] = {};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user