mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 19:32:36 +08:00
ekf2: update range sample fix ekf2_timestamps
- this is necessary to use distance_sensor data in replay
This commit is contained in:
@@ -1921,7 +1921,6 @@ void EKF2::UpdateRangeSample(ekf2_timestamps_s &ekf2_timestamps)
|
|||||||
_ekf.set_rangefinder_limits(distance_sensor.min_distance, distance_sensor.max_distance);
|
_ekf.set_rangefinder_limits(distance_sensor.min_distance, distance_sensor.max_distance);
|
||||||
|
|
||||||
_last_range_sensor_update = distance_sensor.timestamp;
|
_last_range_sensor_update = distance_sensor.timestamp;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ekf2_timestamps.distance_sensor_timestamp_rel = (int16_t)((int64_t)distance_sensor.timestamp / 100 -
|
ekf2_timestamps.distance_sensor_timestamp_rel = (int16_t)((int64_t)distance_sensor.timestamp / 100 -
|
||||||
|
|||||||
Reference in New Issue
Block a user