From 1a513153beb74ae627486252d1aacd1e6d4a559e Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sat, 16 Jul 2022 12:55:46 -0400 Subject: [PATCH] ekf2: update range sample fix ekf2_timestamps - this is necessary to use distance_sensor data in replay --- src/modules/ekf2/EKF2.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/modules/ekf2/EKF2.cpp b/src/modules/ekf2/EKF2.cpp index 64b6329bef..c98cfe3035 100644 --- a/src/modules/ekf2/EKF2.cpp +++ b/src/modules/ekf2/EKF2.cpp @@ -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 -