From cd1c9309e6254fea6adda22136ec3f56164e0e8d Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 4 Nov 2019 11:40:59 +1100 Subject: [PATCH] Tools: add method to avoid linking AP_Avoidance --- Tools/Replay/Replay.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Tools/Replay/Replay.cpp b/Tools/Replay/Replay.cpp index 9ade3d51fe..1bd5d54d4d 100644 --- a/Tools/Replay/Replay.cpp +++ b/Tools/Replay/Replay.cpp @@ -962,6 +962,9 @@ const struct AP_Param::GroupInfo GCS_MAVLINK_Parameters::var_info[] = { }; GCS_Dummy _gcs; +#include +#include + // dummy methods to avoid linking with these libraries AP_Camera *AP::camera() { return nullptr; } void AP_Camera::send_feedback(mavlink_channel_t) {} @@ -970,6 +973,9 @@ void AP_Camera::configure(float, float, float, float, float, float, float) {} bool AP_AdvancedFailsafe::gcs_terminate(bool should_terminate, const char *reason) { return false; } AP_AdvancedFailsafe *AP::advancedfailsafe() { return nullptr; } +// dummy method to avoid linking AP_Avoidance +AP_Avoidance *AP::ap_avoidance() { return nullptr; } + // avoid building/linking Devo: void AP_DEVO_Telem::init() {};