AP_Follow: allow compilation with HAL_LOGGING_ENABLED false

This commit is contained in:
Peter Barker 2023-07-14 10:58:05 +10:00 committed by Andrew Tridgell
parent f92b02afd0
commit 6627c1f4e4
1 changed files with 3 additions and 1 deletions

View File

@ -397,6 +397,7 @@ void AP_Follow::handle_msg(const mavlink_message_t &msg)
} }
if (updated) { if (updated) {
#if HAL_LOGGING_ENABLED
// get estimated location and velocity // get estimated location and velocity
Location loc_estimate{}; Location loc_estimate{};
Vector3f vel_estimate; Vector3f vel_estimate;
@ -431,6 +432,7 @@ void AP_Follow::handle_msg(const mavlink_message_t &msg)
loc_estimate.lng, loc_estimate.lng,
loc_estimate.alt loc_estimate.alt
); );
#endif
} }
} }