mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-16 11:57:34 +08:00
ekf2 airspeed fusion:
- finished logic for fusion - fixed bug where previous control status was set in the wrong location
This commit is contained in:
+2
-1
@@ -56,6 +56,7 @@ Ekf::Ekf():
|
||||
_time_last_vel_fuse(0),
|
||||
_time_last_hgt_fuse(0),
|
||||
_time_last_of_fuse(0),
|
||||
_time_last_arsp_fuse(0),
|
||||
_last_disarmed_posD(0.0f),
|
||||
_airspeed_innov(0.0f),
|
||||
_airspeed_innov_var(0.0f),
|
||||
@@ -326,7 +327,7 @@ bool Ekf::update()
|
||||
}
|
||||
|
||||
// TODO This is just to get the logic inside but we will only start fusion once we tested this again
|
||||
if (_airspeed_buffer.pop_first_older_than(_imu_sample_delayed.time_us, &_airspeed_sample_delayed) && false) {
|
||||
if (_airspeed_buffer.pop_first_older_than(_imu_sample_delayed.time_us, &_airspeed_sample_delayed)) {
|
||||
fuseAirspeed();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user