Browse Source

AP_Baro: fixed multi-baro logging

master
Andrew Tridgell 7 years ago committed by Tom Pittenger
parent
commit
d777da970b
  1. 2
      libraries/DataFlash/LogFile.cpp

2
libraries/DataFlash/LogFile.cpp

@ -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),

Loading…
Cancel
Save