Tools: add method to avoid linking AP_Avoidance

This commit is contained in:
Peter Barker 2019-11-04 11:40:59 +11:00 committed by Peter Barker
parent 4a51de724d
commit cd1c9309e6

View File

@ -962,6 +962,9 @@ const struct AP_Param::GroupInfo GCS_MAVLINK_Parameters::var_info[] = {
}; };
GCS_Dummy _gcs; GCS_Dummy _gcs;
#include <AP_ADSB/AP_ADSB.h>
#include <AP_Avoidance/AP_Avoidance.h>
// dummy methods to avoid linking with these libraries // dummy methods to avoid linking with these libraries
AP_Camera *AP::camera() { return nullptr; } AP_Camera *AP::camera() { return nullptr; }
void AP_Camera::send_feedback(mavlink_channel_t) {} 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; } bool AP_AdvancedFailsafe::gcs_terminate(bool should_terminate, const char *reason) { return false; }
AP_AdvancedFailsafe *AP::advancedfailsafe() { return nullptr; } AP_AdvancedFailsafe *AP::advancedfailsafe() { return nullptr; }
// dummy method to avoid linking AP_Avoidance
AP_Avoidance *AP::ap_avoidance() { return nullptr; }
// avoid building/linking Devo: // avoid building/linking Devo:
void AP_DEVO_Telem::init() {}; void AP_DEVO_Telem::init() {};