AP_ADSB: create AP_ADSB_config.h
This commit is contained in:
parent
792ad6b5fc
commit
35daf81c27
@ -21,11 +21,7 @@
|
||||
Tom Pittenger, November 2015
|
||||
*/
|
||||
|
||||
#include <AP_HAL/AP_HAL_Boards.h>
|
||||
|
||||
#ifndef HAL_ADSB_ENABLED
|
||||
#define HAL_ADSB_ENABLED !HAL_MINIMIZE_FEATURES && BOARD_FLASH_SIZE > 1024
|
||||
#endif
|
||||
#include "AP_ADSB_config.h"
|
||||
|
||||
#if HAL_ADSB_ENABLED
|
||||
#include <AP_Common/AP_Common.h>
|
||||
|
@ -17,10 +17,6 @@
|
||||
|
||||
#include "AP_ADSB_Backend.h"
|
||||
|
||||
#ifndef HAL_ADSB_SAGETECH_ENABLED
|
||||
#define HAL_ADSB_SAGETECH_ENABLED HAL_ADSB_ENABLED
|
||||
#endif
|
||||
|
||||
#if HAL_ADSB_SAGETECH_ENABLED
|
||||
class AP_ADSB_Sagetech : public AP_ADSB_Backend {
|
||||
public:
|
||||
|
@ -24,11 +24,6 @@
|
||||
|
||||
#include "AP_ADSB_Backend.h"
|
||||
|
||||
#ifndef HAL_ADSB_SAGETECH_MXS_ENABLED
|
||||
// this feature is only enabled by default by select hardware
|
||||
#define HAL_ADSB_SAGETECH_MXS_ENABLED HAL_ADSB_ENABLED && CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||
#endif
|
||||
|
||||
#if HAL_ADSB_SAGETECH_MXS_ENABLED
|
||||
|
||||
#include "sagetech-sdk/sagetech_mxs.h"
|
||||
|
25
libraries/AP_ADSB/AP_ADSB_config.h
Normal file
25
libraries/AP_ADSB/AP_ADSB_config.h
Normal file
@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
#include <AP_HAL/AP_HAL_Boards.h>
|
||||
|
||||
|
||||
#ifndef HAL_ADSB_ENABLED
|
||||
#define HAL_ADSB_ENABLED !HAL_MINIMIZE_FEATURES && BOARD_FLASH_SIZE > 1024
|
||||
#endif
|
||||
|
||||
#ifndef HAL_ADSB_UAVIONIX_MAVLINK_ENABLED
|
||||
#define HAL_ADSB_UAVIONIX_MAVLINK_ENABLED HAL_ADSB_ENABLED
|
||||
#endif
|
||||
|
||||
#ifndef HAL_ADSB_SAGETECH_ENABLED
|
||||
#define HAL_ADSB_SAGETECH_ENABLED HAL_ADSB_ENABLED
|
||||
#endif
|
||||
|
||||
#ifndef HAL_ADSB_UCP_ENABLED
|
||||
#define HAL_ADSB_UCP_ENABLED HAL_ADSB_ENABLED
|
||||
#endif
|
||||
|
||||
#ifndef HAL_ADSB_SAGETECH_MXS_ENABLED
|
||||
// this feature is only enabled by default by select hardware
|
||||
#define HAL_ADSB_SAGETECH_MXS_ENABLED HAL_ADSB_ENABLED && CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||
#endif
|
@ -17,10 +17,6 @@
|
||||
|
||||
#include "AP_ADSB_Backend.h"
|
||||
|
||||
#ifndef HAL_ADSB_UAVIONIX_MAVLINK_ENABLED
|
||||
#define HAL_ADSB_UAVIONIX_MAVLINK_ENABLED HAL_ADSB_ENABLED
|
||||
#endif
|
||||
|
||||
#if HAL_ADSB_UAVIONIX_MAVLINK_ENABLED
|
||||
class AP_ADSB_uAvionix_MAVLink : public AP_ADSB_Backend {
|
||||
public:
|
||||
|
@ -20,10 +20,6 @@
|
||||
#pragma once
|
||||
#include "AP_ADSB_Backend.h"
|
||||
|
||||
#ifndef HAL_ADSB_UCP_ENABLED
|
||||
#define HAL_ADSB_UCP_ENABLED HAL_ADSB_ENABLED
|
||||
#endif
|
||||
|
||||
#if HAL_ADSB_UCP_ENABLED
|
||||
|
||||
#define AP_ADSB_UAVIONIX_UCP_CAPTURE_ALL_RX_PACKETS 1
|
||||
|
Loading…
Reference in New Issue
Block a user