mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 01:43:34 +08:00
EKF2 always use IMU timestamp as now
This commit is contained in:
@@ -805,15 +805,7 @@ void Ekf2::run()
|
||||
imu_bias_reset_request = !_ekf.reset_imu_bias();
|
||||
}
|
||||
|
||||
// in replay mode we are getting the actual timestamp from the sensor topic
|
||||
hrt_abstime now = 0;
|
||||
|
||||
if (_replay_mode) {
|
||||
now = sensors.timestamp;
|
||||
|
||||
} else {
|
||||
now = hrt_absolute_time();
|
||||
}
|
||||
const hrt_abstime now = sensors.timestamp;
|
||||
|
||||
// push imu data into estimator
|
||||
float gyro_integral[3];
|
||||
|
||||
Reference in New Issue
Block a user