2022-07-11 21:48:35 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AP_HAL/AP_HAL_Boards.h>
|
2023-04-05 09:25:54 -03:00
|
|
|
#include <GCS_MAVLink/GCS_config.h>
|
|
|
|
#include <AP_RangeFinder/AP_RangeFinder_config.h>
|
2022-07-11 21:48:35 -03:00
|
|
|
|
|
|
|
#ifndef HAL_PROXIMITY_ENABLED
|
2023-04-14 00:47:52 -03:00
|
|
|
#define HAL_PROXIMITY_ENABLED BOARD_FLASH_SIZE > 1024
|
2022-07-11 21:48:35 -03:00
|
|
|
#endif
|
2023-04-05 19:56:53 -03:00
|
|
|
|
2023-04-05 09:25:54 -03:00
|
|
|
#ifndef AP_PROXIMITY_BACKEND_DEFAULT_ENABLED
|
|
|
|
#define AP_PROXIMITY_BACKEND_DEFAULT_ENABLED HAL_PROXIMITY_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_PROXIMITY_AIRSIMSITL_ENABLED
|
|
|
|
#define AP_PROXIMITY_AIRSIMSITL_ENABLED AP_PROXIMITY_BACKEND_DEFAULT_ENABLED && (CONFIG_HAL_BOARD == HAL_BOARD_SITL)
|
|
|
|
#endif
|
|
|
|
|
2023-04-05 19:56:53 -03:00
|
|
|
#ifndef AP_PROXIMITY_CYGBOT_ENABLED
|
2023-04-05 09:25:54 -03:00
|
|
|
#define AP_PROXIMITY_CYGBOT_ENABLED AP_PROXIMITY_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_PROXIMITY_DRONECAN_ENABLED
|
|
|
|
#define AP_PROXIMITY_DRONECAN_ENABLED AP_PROXIMITY_BACKEND_DEFAULT_ENABLED && HAL_ENABLE_DRONECAN_DRIVERS
|
|
|
|
#endif
|
|
|
|
|
2023-08-13 23:57:48 -03:00
|
|
|
|
|
|
|
#ifndef AP_PROXIMITY_LD06_ENABLED
|
|
|
|
#define AP_PROXIMITY_LD06_ENABLED AP_PROXIMITY_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
2023-04-05 09:25:54 -03:00
|
|
|
#ifndef AP_PROXIMITY_LIGHTWARE_SF40C_ENABLED
|
|
|
|
#define AP_PROXIMITY_LIGHTWARE_SF40C_ENABLED AP_PROXIMITY_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_PROXIMITY_LIGHTWARE_SF45B_ENABLED
|
|
|
|
#define AP_PROXIMITY_LIGHTWARE_SF45B_ENABLED AP_PROXIMITY_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
2023-07-04 16:40:06 -03:00
|
|
|
#ifndef AP_PROXIMITY_SCRIPTING_ENABLED
|
|
|
|
#define AP_PROXIMITY_SCRIPTING_ENABLED AP_PROXIMITY_BACKEND_DEFAULT_ENABLED && AP_SCRIPTING_ENABLED
|
|
|
|
#endif
|
|
|
|
|
2023-04-05 09:25:54 -03:00
|
|
|
#ifndef AP_PROXIMITY_MAV_ENABLED
|
|
|
|
#define AP_PROXIMITY_MAV_ENABLED AP_PROXIMITY_BACKEND_DEFAULT_ENABLED && HAL_GCS_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_PROXIMITY_RANGEFINDER_ENABLED
|
|
|
|
#define AP_PROXIMITY_RANGEFINDER_ENABLED AP_RANGEFINDER_ENABLED && AP_PROXIMITY_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_PROXIMITY_RPLIDARA2_ENABLED
|
|
|
|
#define AP_PROXIMITY_RPLIDARA2_ENABLED AP_PROXIMITY_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_PROXIMITY_SITL_ENABLED
|
|
|
|
#define AP_PROXIMITY_SITL_ENABLED AP_PROXIMITY_BACKEND_DEFAULT_ENABLED && (CONFIG_HAL_BOARD == HAL_BOARD_SITL)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_PROXIMITY_TERARANGERTOWER_ENABLED
|
|
|
|
#define AP_PROXIMITY_TERARANGERTOWER_ENABLED AP_PROXIMITY_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_PROXIMITY_TERARANGERTOWEREVO_ENABLED
|
|
|
|
#define AP_PROXIMITY_TERARANGERTOWEREVO_ENABLED AP_PROXIMITY_BACKEND_DEFAULT_ENABLED
|
2023-04-05 19:56:53 -03:00
|
|
|
#endif
|
2022-06-17 00:28:26 -03:00
|
|
|
|
|
|
|
#ifndef AP_PROXIMITY_LD06_ENABLED
|
|
|
|
#define AP_PROXIMITY_LD06_ENABLED AP_PROXIMITY_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|