mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 21:23:35 +08:00
ekf2: refactor output predictor to class
- refactor all EKF backend output predictor pieces into new OutputPredictor class - output states are now calculated immediately with new high rate IMU rather than after EKF update - IMU delayed sample is passed as around as control data to avoid storing an extra copy and make the requirement clear
This commit is contained in:
@@ -65,7 +65,7 @@ void Ekf::updateSideslip(estimator_aid_source1d_s &sideslip) const
|
||||
|
||||
sideslip.fusion_enabled = _control_status.flags.fuse_aspd;
|
||||
|
||||
sideslip.timestamp_sample = _imu_sample_delayed.time_us;
|
||||
sideslip.timestamp_sample = _time_delayed_us;
|
||||
|
||||
const float innov_gate = fmaxf(_params.beta_innov_gate, 1.f);
|
||||
setEstimatorAidStatusTestRatio(sideslip, innov_gate);
|
||||
@@ -121,6 +121,6 @@ void Ekf::fuseSideslip(estimator_aid_source1d_s &sideslip)
|
||||
_fault_status.flags.bad_sideslip = !is_fused;
|
||||
|
||||
if (is_fused) {
|
||||
sideslip.time_last_fuse = _imu_sample_delayed.time_us;
|
||||
sideslip.time_last_fuse = _time_delayed_us;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user