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();
|
imu_bias_reset_request = !_ekf.reset_imu_bias();
|
||||||
}
|
}
|
||||||
|
|
||||||
// in replay mode we are getting the actual timestamp from the sensor topic
|
const hrt_abstime now = sensors.timestamp;
|
||||||
hrt_abstime now = 0;
|
|
||||||
|
|
||||||
if (_replay_mode) {
|
|
||||||
now = sensors.timestamp;
|
|
||||||
|
|
||||||
} else {
|
|
||||||
now = hrt_absolute_time();
|
|
||||||
}
|
|
||||||
|
|
||||||
// push imu data into estimator
|
// push imu data into estimator
|
||||||
float gyro_integral[3];
|
float gyro_integral[3];
|
||||||
|
|
Loading…
Reference in New Issue