mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 10:47:35 +08:00
EKF: Fix bug in accumulation of IMU data for flow sensor gyro bias calculation
This commit is contained in:
@@ -379,6 +379,10 @@ void Ekf::controlOpticalFlowFusion()
|
||||
}
|
||||
}
|
||||
|
||||
// Accumulate autopilot gyro data across the same time interval as the flow sensor
|
||||
_imu_del_ang_of += _imu_sample_delayed.delta_ang - _state.gyro_bias;
|
||||
_delta_time_of += _imu_sample_delayed.delta_ang_dt;
|
||||
|
||||
// fuse the data
|
||||
if (_control_status.flags.opt_flow) {
|
||||
// Update optical flow bias estimates
|
||||
|
||||
Reference in New Issue
Block a user