mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-22 14:24:21 +08:00
ekf2: fix drag data downsampling
setDragData needs the imu data at full speed to downsample it without skipping samples.
This commit is contained in:
@@ -86,9 +86,9 @@ void EstimatorInterface::setIMUData(const imuSample &imu_sample)
|
||||
// calculate the minimum interval between observations required to guarantee no loss of data
|
||||
// this will occur if data is overwritten before its time stamp falls behind the fusion time horizon
|
||||
_min_obs_interval_us = (imu_sample.time_us - _imu_sample_delayed.time_us) / (_obs_buffer_length - 1);
|
||||
|
||||
setDragData(imu_sample);
|
||||
}
|
||||
|
||||
setDragData(imu_sample);
|
||||
}
|
||||
|
||||
void EstimatorInterface::setMagData(const magSample &mag_sample)
|
||||
|
||||
Reference in New Issue
Block a user