Rover: conditionally compile ADSB support

This commit is contained in:
Andy Piper 2020-09-19 09:39:19 +01:00 committed by Andrew Tridgell
parent ebef358922
commit aa64ab0501
1 changed files with 2 additions and 1 deletions

View File

@ -299,6 +299,7 @@ bool Rover::is_boat() const
#include <AP_Avoidance/AP_Avoidance.h> #include <AP_Avoidance/AP_Avoidance.h>
#include <AP_ADSB/AP_ADSB.h> #include <AP_ADSB/AP_ADSB.h>
#if HAL_ADSB_ENABLED
// dummy method to avoid linking AP_Avoidance // dummy method to avoid linking AP_Avoidance
AP_Avoidance *AP::ap_avoidance() { return nullptr; } AP_Avoidance *AP::ap_avoidance() { return nullptr; }
#endif