mirror of https://github.com/ArduPilot/ardupilot
Rover: conditionally compile ADSB support
This commit is contained in:
parent
ebef358922
commit
aa64ab0501
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue