DataFlash: log baro health

This commit is contained in:
Andrew Tridgell 2019-07-31 12:57:35 +10:00
parent b9fd3ca78d
commit 834e43f339
2 changed files with 6 additions and 4 deletions

View File

@ -273,6 +273,7 @@ void DataFlash_Class::Log_Write_Baro_instance(uint64_t time_us, uint8_t baro_ins
sample_time_ms: baro.get_last_update(baro_instance),
drift_offset : drift_offset,
ground_temp : ground_temp,
healthy : (uint8_t)baro.healthy(baro_instance)
};
WriteBlock(&pkt, sizeof(pkt));
}

View File

@ -335,6 +335,7 @@ struct PACKED log_BARO {
uint32_t sample_time_ms;
float drift_offset;
float ground_temp;
uint8_t healthy;
};
struct PACKED log_AHRS {
@ -1076,10 +1077,10 @@ struct PACKED log_DSTL {
#define ACC_MULTS "FF000"
// see "struct sensor" in AP_Baro.h and "Log_Write_Baro":
#define BARO_LABELS "TimeUS,Alt,Press,Temp,CRt,SMS,Offset,GndTemp"
#define BARO_FMT "QffcfIff"
#define BARO_UNITS "smPOnsmO"
#define BARO_MULTS "F00B0C?0"
#define BARO_LABELS "TimeUS,Alt,Press,Temp,CRt,SMS,Offset,GndTemp,Health"
#define BARO_FMT "QffcfIffB"
#define BARO_UNITS "smPOnsmO-"
#define BARO_MULTS "F00B0C?0-"
#define ESC_LABELS "TimeUS,RPM,Volt,Curr,Temp,CTot"
#define ESC_FMT "QeCCcH"