From 54373a6703c344863a9d2fcee529a28167f56091 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 4 Nov 2019 11:44:42 +1100 Subject: [PATCH] Tracker: add method to avoid linking AP_Avoidance --- AntennaTracker/system.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AntennaTracker/system.cpp b/AntennaTracker/system.cpp index 75d3ea40ba..774ee6ef4f 100644 --- a/AntennaTracker/system.cpp +++ b/AntennaTracker/system.cpp @@ -268,6 +268,8 @@ bool Tracker::should_log(uint32_t mask) #include #include +#include +#include /* dummy methods to avoid having to link against AP_Camera */ void AP_Camera::control_msg(const mavlink_message_t &) {} @@ -279,3 +281,6 @@ void AP_Camera::send_feedback(mavlink_channel_t chan) {} // dummy method to avoid linking AFS 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; }