mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 12:57:34 +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);
|
||||
|
||||
_last_range_sensor_update = distance_sensor.timestamp;
|
||||
return;
|
||||
}
|
||||
|
||||
ekf2_timestamps.distance_sensor_timestamp_rel = (int16_t)((int64_t)distance_sensor.timestamp / 100 -
|
||||
|
||||
Reference in New Issue
Block a user