From e7607b858d9c6a061832f3e3c44d3d825f5e2c3d Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Tue, 24 Aug 2021 12:09:31 -0400 Subject: [PATCH] sensors: use vehicle_imu timestamp_sample instead of timestamp --- src/modules/sensors/voted_sensors_update.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/sensors/voted_sensors_update.cpp b/src/modules/sensors/voted_sensors_update.cpp index 35d1fe6cbf..90fc583e92 100644 --- a/src/modules/sensors/voted_sensors_update.cpp +++ b/src/modules/sensors/voted_sensors_update.cpp @@ -176,10 +176,10 @@ void VotedSensorsUpdate::imuPoll(struct sensor_combined_s &raw) _last_accel_timestamp[uorb_index] = imu_report.timestamp_sample; - _accel.voter.put(uorb_index, imu_report.timestamp, _last_sensor_data[uorb_index].accelerometer_m_s2, + _accel.voter.put(uorb_index, imu_report.timestamp_sample, _last_sensor_data[uorb_index].accelerometer_m_s2, imu_status.accel_error_count, _accel.priority[uorb_index]); - _gyro.voter.put(uorb_index, imu_report.timestamp, _last_sensor_data[uorb_index].gyro_rad, + _gyro.voter.put(uorb_index, imu_report.timestamp_sample, _last_sensor_data[uorb_index].gyro_rad, imu_status.gyro_error_count, _gyro.priority[uorb_index]); } }