AP_TECS: added time to TECS messages
This commit is contained in:
parent
e1b01b205a
commit
b096881f81
@ -651,6 +651,7 @@ void AP_TECS::update_pitch_throttle(int32_t hgt_dem_cm,
|
|||||||
log_tuning.thr = _throttle_dem;
|
log_tuning.thr = _throttle_dem;
|
||||||
log_tuning.ptch = _pitch_dem;
|
log_tuning.ptch = _pitch_dem;
|
||||||
log_tuning.dspd_dem = _TAS_rate_dem;
|
log_tuning.dspd_dem = _TAS_rate_dem;
|
||||||
|
log_tuning.time_ms = hal.scheduler->millis();
|
||||||
}
|
}
|
||||||
|
|
||||||
// log the contents of the log_tuning structure to dataflash
|
// log the contents of the log_tuning structure to dataflash
|
||||||
|
@ -71,6 +71,7 @@ public:
|
|||||||
|
|
||||||
struct PACKED log_TECS_Tuning {
|
struct PACKED log_TECS_Tuning {
|
||||||
LOG_PACKET_HEADER;
|
LOG_PACKET_HEADER;
|
||||||
|
uint32_t time_ms;
|
||||||
float hgt;
|
float hgt;
|
||||||
float dhgt;
|
float dhgt;
|
||||||
float hgt_dem;
|
float hgt_dem;
|
||||||
@ -264,6 +265,6 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
#define TECS_LOG_FORMAT(msg) { msg, sizeof(AP_TECS::log_TECS_Tuning), \
|
#define TECS_LOG_FORMAT(msg) { msg, sizeof(AP_TECS::log_TECS_Tuning), \
|
||||||
"TECS", "ffffffffffff", "h,dh,h_dem,dh_dem,sp_dem,sp,dsp,ith,iph,th,ph,dsp_dem" }
|
"TECS", "Iffffffffffff", "TimeMS,h,dh,h_dem,dh_dem,sp_dem,sp,dsp,ith,iph,th,ph,dsp_dem" }
|
||||||
|
|
||||||
#endif //AP_TECS_H
|
#endif //AP_TECS_H
|
||||||
|
Loading…
Reference in New Issue
Block a user