AP_ADSB: create AP_ADSB_config.h

This commit is contained in:
Tom Pittenger 2023-01-24 20:38:45 -08:00 committed by Andrew Tridgell
parent 792ad6b5fc
commit 35daf81c27
6 changed files with 26 additions and 22 deletions

View File

@ -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>

View File

@ -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:

View File

@ -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"

View 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

View File

@ -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:

View File

@ -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