mirror of https://github.com/ArduPilot/ardupilot
AP_Follow: allow compilation with HAL_LOGGING_ENABLED false
This commit is contained in:
parent
f92b02afd0
commit
6627c1f4e4
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue