mirror of https://github.com/ArduPilot/ardupilot
AP_Baro: only log dynamic pressure when compensation is enabled
This commit is contained in:
parent
5358b4d8de
commit
7b9126d612
|
@ -19,6 +19,10 @@ void AP_Baro::Write_Baro_instance(uint64_t time_us, uint8_t baro_instance)
|
|||
};
|
||||
AP::logger().WriteBlock(&pkt, sizeof(pkt));
|
||||
#if HAL_BARO_WIND_COMP_ENABLED
|
||||
if (!sensors[baro_instance].wind_coeff.enable) {
|
||||
return;
|
||||
}
|
||||
|
||||
const struct log_BARD pkt2{
|
||||
LOG_PACKET_HEADER_INIT(LOG_BARD_MSG),
|
||||
time_us : time_us,
|
||||
|
|
Loading…
Reference in New Issue