AP_TECS: use 64-bit timestamps for dataflash logs

This commit is contained in:
Peter Barker 2015-04-30 13:21:44 +10:00 committed by Andrew Tridgell
parent feb85ef7d5
commit 457f77314e
2 changed files with 3 additions and 3 deletions

View File

@ -887,7 +887,7 @@ void AP_TECS::update_pitch_throttle(int32_t hgt_dem_cm,
log_tuning.thr = _throttle_dem;
log_tuning.ptch = _pitch_dem;
log_tuning.dspd_dem = _TAS_rate_dem;
log_tuning.time_ms = hal.scheduler->millis();
log_tuning.time_us = hal.scheduler->micros64();
}
// log the contents of the log_tuning structure to dataflash

View File

@ -81,7 +81,7 @@ public:
struct PACKED log_TECS_Tuning {
LOG_PACKET_HEADER;
uint32_t time_ms;
uint64_t time_us;
float hgt;
float dhgt;
float hgt_dem;
@ -288,6 +288,6 @@ private:
};
#define TECS_LOG_FORMAT(msg) { msg, sizeof(AP_TECS::log_TECS_Tuning), \
"TECS", "Iffffffffffff", "TimeMS,h,dh,h_dem,dh_dem,sp_dem,sp,dsp,ith,iph,th,ph,dsp_dem" }
"TECS", "Qffffffffffff", "TimeUS,h,dh,h_dem,dh_dem,sp_dem,sp,dsp,ith,iph,th,ph,dsp_dem" }
#endif //AP_TECS_H