From 88015503accb38d112bd390b14cebd268506b946 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 30 Apr 2015 13:48:36 +1000 Subject: [PATCH] SITL: use 64-bit timestamps for dataflash logs --- libraries/SITL/SITL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/SITL/SITL.cpp b/libraries/SITL/SITL.cpp index 2ce2d1ac76..fe3720d6bb 100644 --- a/libraries/SITL/SITL.cpp +++ b/libraries/SITL/SITL.cpp @@ -111,7 +111,7 @@ void SITL::Log_Write_SIMSTATE(DataFlash_Class &DataFlash) struct log_AHRS pkt = { LOG_PACKET_HEADER_INIT(LOG_SIMSTATE_MSG), - time_ms : hal.scheduler->millis(), + time_us : hal.scheduler->micros64(), roll : (int16_t)(state.rollDeg*100), pitch : (int16_t)(state.pitchDeg*100), yaw : (uint16_t)(wrap_360_cd(yaw*100)),