mirror of https://github.com/ArduPilot/ardupilot
Sub: add methods to avoid linking AP_Avoidance
This commit is contained in:
parent
5a28aa9c1b
commit
7e81aa8f64
|
@ -304,7 +304,12 @@ bool Sub::should_log(uint32_t mask)
|
|||
}
|
||||
|
||||
#include <AP_AdvancedFailsafe/AP_AdvancedFailsafe.h>
|
||||
#include <AP_Avoidance/AP_Avoidance.h>
|
||||
#include <AP_ADSB/AP_ADSB.h>
|
||||
|
||||
// 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; }
|
||||
|
|
Loading…
Reference in New Issue