mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
DataFlash: log baro health
This commit is contained in:
parent
b9fd3ca78d
commit
834e43f339
@ -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));
|
||||
}
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user