mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-19 23:28:32 -04:00
44 lines
1.4 KiB
C
44 lines
1.4 KiB
C
#pragma once
|
|
|
|
#include <AP_HAL/AP_HAL_Boards.h>
|
|
#include <AP_Scripting/AP_Scripting_config.h>
|
|
|
|
#ifndef AP_RANGEFINDER_ENABLED
|
|
#define AP_RANGEFINDER_ENABLED 1
|
|
#endif
|
|
|
|
#ifndef AP_RANGEFINDER_BACKEND_DEFAULT_ENABLED
|
|
#define AP_RANGEFINDER_BACKEND_DEFAULT_ENABLED AP_RANGEFINDER_ENABLED
|
|
#endif
|
|
|
|
#ifndef AP_RANGEFINDER_ANALOG_ENABLED
|
|
#define AP_RANGEFINDER_ANALOG_ENABLED AP_RANGEFINDER_BACKEND_DEFAULT_ENABLED
|
|
#endif
|
|
|
|
#ifndef AP_RANGEFINDER_BBB_PRU_ENABLED
|
|
#define AP_RANGEFINDER_BBB_PRU_ENABLED ( \
|
|
AP_RANGEFINDER_BACKEND_DEFAULT_ENABLED && \
|
|
CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BBBMINI \
|
|
)
|
|
#endif
|
|
|
|
#ifndef AP_RANGEFINDER_BLPING_ENABLED
|
|
#define AP_RANGEFINDER_BLPING_ENABLED AP_RANGEFINDER_BACKEND_DEFAULT_ENABLED
|
|
#endif
|
|
|
|
#ifndef AP_RANGEFINDER_BEBOP_ENABLED
|
|
#define AP_RANGEFINDER_BEBOP_ENABLED \
|
|
AP_RANGEFINDER_BACKEND_DEFAULT_ENABLED && \
|
|
(CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BEBOP || \
|
|
CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_DISCO) && \
|
|
defined(HAVE_LIBIIO)
|
|
#endif
|
|
|
|
#ifndef AP_RANGEFINDER_LUA_ENABLED
|
|
#define AP_RANGEFINDER_LUA_ENABLED AP_SCRIPTING_ENABLED
|
|
#endif
|
|
|
|
#ifndef AP_RANGEFINDER_SIM_ENABLED
|
|
#define AP_RANGEFINDER_SIM_ENABLED (CONFIG_HAL_BOARD == HAL_BOARD_SITL && AP_RANGEFINDER_BACKEND_DEFAULT_ENABLED)
|
|
#endif
|