forked from Archive/PX4-Autopilot
EKF2 always use IMU timestamp as now
This commit is contained in:
parent
4c4ee67954
commit
ddc9522712
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue