APM_Control/AP_AutoTune: use 64-bit timestamps for dataflash logs

This commit is contained in:
Peter Barker 2015-04-30 13:23:08 +10:00 committed by Andrew Tridgell
parent 457f77314e
commit 9ae85ed9ab
2 changed files with 2 additions and 2 deletions

View File

@ -331,7 +331,7 @@ void AP_AutoTune::write_log(float servo, float demanded, float achieved)
struct log_ATRP pkt = {
LOG_PACKET_HEADER_INIT(LOG_ATRP_MSG),
timestamp : hal.scheduler->millis(),
time_us : hal.scheduler->micros64(),
type : type,
state : (uint8_t)state,
servo : (int16_t)(servo*100),

View File

@ -25,7 +25,7 @@ public:
struct PACKED log_ATRP {
LOG_PACKET_HEADER;
uint32_t timestamp;
uint64_t time_us;
uint8_t type;
uint8_t state;
int16_t servo;