AP_ADSB: Sagetech for 2MB only
This commit is contained in:
parent
4ac6a647d7
commit
1fce38c62a
@ -32,6 +32,10 @@
|
||||
#include <AP_Baro/AP_Baro.h>
|
||||
#include <AP_AHRS/AP_AHRS.h>
|
||||
|
||||
#ifndef ADSB_SAGETECH_ENABLED
|
||||
#define ADSB_SAGETECH_ENABLED !HAL_MINIMIZE_FEATURES
|
||||
#endif
|
||||
|
||||
|
||||
//#define ADSB_STATIC_CALLSIGN "APM1234" // 8 ASCII chars of a Callsign. This can be overwritten by MAVLink msg UAVIONIX_ADSB_OUT_CFG
|
||||
|
||||
@ -182,9 +186,12 @@ void AP_ADSB::hw_init(void)
|
||||
return;
|
||||
}
|
||||
|
||||
#if ADSB_SAGETECH_ENABLED
|
||||
if (AP_ADSB_Sagetech::detect()) {
|
||||
backend = new AP_ADSB_Sagetech(*this);
|
||||
} else {
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
backend = new AP_ADSB_MAVLink(*this);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user