2023-01-25 00:38:45 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AP_HAL/AP_HAL_Boards.h>
|
|
|
|
|
2023-03-01 16:33:09 -04:00
|
|
|
#include <GCS_MAVLink/GCS_config.h>
|
2023-01-25 00:38:45 -04:00
|
|
|
|
|
|
|
#ifndef HAL_ADSB_ENABLED
|
2023-04-14 00:47:52 -03:00
|
|
|
#define HAL_ADSB_ENABLED BOARD_FLASH_SIZE > 1024
|
2023-01-25 00:38:45 -04:00
|
|
|
#endif
|
|
|
|
|
2023-08-28 00:41:49 -03:00
|
|
|
#ifndef HAL_ADSB_BACKEND_DEFAULT_ENABLED
|
|
|
|
#define HAL_ADSB_BACKEND_DEFAULT_ENABLED HAL_ADSB_ENABLED
|
|
|
|
#endif
|
|
|
|
|
2023-01-25 00:38:45 -04:00
|
|
|
#ifndef HAL_ADSB_UAVIONIX_MAVLINK_ENABLED
|
2023-08-28 00:41:49 -03:00
|
|
|
#define HAL_ADSB_UAVIONIX_MAVLINK_ENABLED HAL_ADSB_BACKEND_DEFAULT_ENABLED && HAL_GCS_ENABLED
|
2023-01-25 00:38:45 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAL_ADSB_SAGETECH_ENABLED
|
2023-08-28 00:41:49 -03:00
|
|
|
#define HAL_ADSB_SAGETECH_ENABLED HAL_ADSB_BACKEND_DEFAULT_ENABLED
|
2023-01-25 00:38:45 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAL_ADSB_UCP_ENABLED
|
2023-08-28 00:41:49 -03:00
|
|
|
#define HAL_ADSB_UCP_ENABLED HAL_ADSB_BACKEND_DEFAULT_ENABLED
|
2023-01-25 00:38:45 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAL_ADSB_SAGETECH_MXS_ENABLED
|
|
|
|
// this feature is only enabled by default by select hardware
|
2023-08-28 00:41:49 -03:00
|
|
|
#define HAL_ADSB_SAGETECH_MXS_ENABLED HAL_ADSB_BACKEND_DEFAULT_ENABLED && CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
2023-01-25 00:38:45 -04:00
|
|
|
#endif
|