mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Tools: add method to avoid linking AP_Avoidance
This commit is contained in:
parent
4a51de724d
commit
cd1c9309e6
@ -962,6 +962,9 @@ const struct AP_Param::GroupInfo GCS_MAVLINK_Parameters::var_info[] = {
|
||||
};
|
||||
GCS_Dummy _gcs;
|
||||
|
||||
#include <AP_ADSB/AP_ADSB.h>
|
||||
#include <AP_Avoidance/AP_Avoidance.h>
|
||||
|
||||
// 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() {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user