mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 10:53:34 +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:
@@ -127,7 +127,7 @@ void Ekf::fuseAirspeed(estimator_aid_source1d_s &airspeed)
|
||||
_fault_status.flags.bad_airspeed = !is_fused;
|
||||
|
||||
if (is_fused) {
|
||||
airspeed.time_last_fuse = _imu_sample_delayed.time_us;
|
||||
airspeed.time_last_fuse = _time_delayed_us;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@ void Ekf::resetWindUsingAirspeed()
|
||||
|
||||
resetWindCovarianceUsingAirspeed();
|
||||
|
||||
_aid_src_airspeed.time_last_fuse = _imu_sample_delayed.time_us;
|
||||
_aid_src_airspeed.time_last_fuse = _time_delayed_us;
|
||||
}
|
||||
|
||||
void Ekf::resetWindToZero()
|
||||
|
||||
Reference in New Issue
Block a user