AP_Logger: log baro health

This commit is contained in:
Andrew Tridgell 2019-07-31 10:07:34 +10:00
parent a196c54db6
commit 0c314c36b6
2 changed files with 6 additions and 4 deletions

View File

@ -263,6 +263,7 @@ void AP_Logger::Write_Baro_instance(uint64_t time_us, uint8_t baro_instance, enu
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

@ -385,6 +385,7 @@ struct PACKED log_BARO {
uint32_t sample_time_ms;
float drift_offset;
float ground_temp;
uint8_t healthy;
};
struct PACKED log_Optflow {
@ -1174,10 +1175,10 @@ struct PACKED log_Arm_Disarm {
#define ACC_MULTS "FF000"
// see "struct sensor" in AP_Baro.h and "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"