mirror of https://github.com/ArduPilot/ardupilot
AP_TECS: use 64-bit timestamps for dataflash logs
This commit is contained in:
parent
feb85ef7d5
commit
457f77314e
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue