From e91bfdfc1cc714d253653e3455d1bdb3ffbaecbd Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 17 Jun 2015 14:15:58 +1000 Subject: [PATCH] AP_InertialSensor: fixed VibTest example build --- libraries/AP_InertialSensor/examples/VibTest/VibTest.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libraries/AP_InertialSensor/examples/VibTest/VibTest.cpp b/libraries/AP_InertialSensor/examples/VibTest/VibTest.cpp index 7b1b17bfed..f5098e337e 100644 --- a/libraries/AP_InertialSensor/examples/VibTest/VibTest.cpp +++ b/libraries/AP_InertialSensor/examples/VibTest/VibTest.cpp @@ -135,7 +135,8 @@ void loop(void) struct log_ACCEL pkt = { LOG_PACKET_HEADER_INIT((uint8_t)(LOG_ACC1_MSG+i)), - time_us : accel_report.timestamp, + time_us : hal.scheduler->micros64(), + sample_us : accel_report.timestamp, AccX : accel_report.x, AccY : accel_report.y, AccZ : accel_report.z @@ -158,7 +159,8 @@ void loop(void) struct log_GYRO pkt = { LOG_PACKET_HEADER_INIT((uint8_t)(LOG_GYR1_MSG+i)), - time_us : gyro_report.timestamp, + time_us : hal.scheduler->micros64(), + sample_us : gyro_report.timestamp, GyrX : gyro_report.x, GyrY : gyro_report.y, GyrZ : gyro_report.z