AP_Baro: fixed multi-baro logging

This commit is contained in:
Andrew Tridgell 2018-04-09 16:04:17 +10:00 committed by Tom Pittenger
parent 2f26b3faa1
commit d777da970b

View File

@ -432,7 +432,7 @@ void DataFlash_Class::Log_Write_Baro_instance(uint64_t time_us, uint8_t baro_ins
float drift_offset = baro.get_baro_drift_offset(); float drift_offset = baro.get_baro_drift_offset();
float ground_temp = baro.get_ground_temperature(); float ground_temp = baro.get_ground_temperature();
struct log_BARO pkt = { struct log_BARO pkt = {
LOG_PACKET_HEADER_INIT(LOG_BARO_MSG), LOG_PACKET_HEADER_INIT(type),
time_us : time_us, time_us : time_us,
altitude : baro.get_altitude(baro_instance), altitude : baro.get_altitude(baro_instance),
pressure : baro.get_pressure(baro_instance), pressure : baro.get_pressure(baro_instance),