mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_ExternalAHRS: correct compilation if AP_Baro_ExternalAHRS isn't available
This commit is contained in:
parent
b99c4b3a89
commit
e9426b2ff3
@ -269,6 +269,7 @@ void AP_ExternalAHRS_LORD::post_imu() const
|
||||
AP::compass().handle_external(mag);
|
||||
}
|
||||
|
||||
#if AP_BARO_EXTERNALAHRS_ENABLED
|
||||
{
|
||||
const AP_ExternalAHRS::baro_data_message_t baro {
|
||||
instance: 0,
|
||||
@ -278,6 +279,7 @@ void AP_ExternalAHRS_LORD::post_imu() const
|
||||
};
|
||||
AP::baro().handle_external(baro);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
// Collects data from a gnss packet into `gnss_data`
|
||||
|
@ -244,7 +244,8 @@ void AP_ExternalAHRS_VectorNav::process_packet1(const uint8_t *b)
|
||||
Location::AltFrame::ABSOLUTE};
|
||||
state.have_location = true;
|
||||
}
|
||||
|
||||
|
||||
#if AP_BARO_EXTERNALAHRS_ENABLED
|
||||
{
|
||||
AP_ExternalAHRS::baro_data_message_t baro;
|
||||
baro.instance = 0;
|
||||
@ -253,6 +254,7 @@ void AP_ExternalAHRS_VectorNav::process_packet1(const uint8_t *b)
|
||||
|
||||
AP::baro().handle_external(baro);
|
||||
}
|
||||
#endif
|
||||
|
||||
{
|
||||
AP_ExternalAHRS::mag_data_message_t mag;
|
||||
|
Loading…
Reference in New Issue
Block a user