mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-20 23:58:43 -04:00
61f6c0dc3d
... and logging. Also correct default compilation for mavlink backend to not be attempted if HAL_GCS_ENABLED is false
27 lines
680 B
C
27 lines
680 B
C
#pragma once
|
|
|
|
#include <AP_HAL/AP_HAL_Boards.h>
|
|
|
|
#include <GCS_MAVLink/GCS_config.h>
|
|
|
|
#ifndef HAL_ADSB_ENABLED
|
|
#define HAL_ADSB_ENABLED BOARD_FLASH_SIZE > 1024
|
|
#endif
|
|
|
|
#ifndef HAL_ADSB_UAVIONIX_MAVLINK_ENABLED
|
|
#define HAL_ADSB_UAVIONIX_MAVLINK_ENABLED HAL_ADSB_ENABLED && HAL_GCS_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
|