Browse Source

ekf2: update range sample fix ekf2_timestamps

- this is necessary to use distance_sensor data in replay
main
Daniel Agar 3 years ago
parent
commit
1a513153be
  1. 1
      src/modules/ekf2/EKF2.cpp

1
src/modules/ekf2/EKF2.cpp

@ -1921,7 +1921,6 @@ void EKF2::UpdateRangeSample(ekf2_timestamps_s &ekf2_timestamps) @@ -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 -

Loading…
Cancel
Save