2022-04-16 23:54:08 -03:00
|
|
|
#pragma once
|
|
|
|
|
2023-03-14 08:18:29 -03:00
|
|
|
#include <AP_HAL/AP_HAL_Boards.h>
|
2022-04-16 23:54:08 -03:00
|
|
|
#include <AP_Frsky_Telem/AP_Frsky_config.h>
|
2024-03-06 06:32:50 -04:00
|
|
|
#include <GCS_MAVLink/GCS_config.h>
|
2022-04-16 23:54:08 -03:00
|
|
|
|
2023-05-03 10:08:00 -03:00
|
|
|
#ifndef AP_RCPROTOCOL_ENABLED
|
|
|
|
#define AP_RCPROTOCOL_ENABLED 1
|
|
|
|
#endif
|
|
|
|
|
2023-03-14 08:18:29 -03:00
|
|
|
#ifndef AP_RCPROTOCOL_BACKEND_DEFAULT_ENABLED
|
2023-05-03 10:08:00 -03:00
|
|
|
#define AP_RCPROTOCOL_BACKEND_DEFAULT_ENABLED AP_RCPROTOCOL_ENABLED
|
2023-03-14 08:18:29 -03:00
|
|
|
#endif
|
|
|
|
|
2023-04-26 10:46:08 -03:00
|
|
|
#ifndef AP_RCPROTOCOL_CRSF_ENABLED
|
|
|
|
#define AP_RCPROTOCOL_CRSF_ENABLED AP_RCPROTOCOL_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
2023-05-18 05:20:22 -03:00
|
|
|
#ifndef AP_RCPROTOCOL_DRONECAN_ENABLED
|
|
|
|
#define AP_RCPROTOCOL_DRONECAN_ENABLED AP_RCPROTOCOL_BACKEND_DEFAULT_ENABLED && HAL_ENABLE_DRONECAN_DRIVERS
|
|
|
|
#endif
|
|
|
|
|
2023-05-15 23:21:28 -03:00
|
|
|
#ifndef AP_RCPROTOCOL_DSM_ENABLED
|
|
|
|
#define AP_RCPROTOCOL_DSM_ENABLED AP_RCPROTOCOL_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
2022-04-16 23:54:08 -03:00
|
|
|
#ifndef AP_RCPROTOCOL_FPORT_ENABLED
|
2023-08-06 01:15:48 -03:00
|
|
|
#define AP_RCPROTOCOL_FPORT_ENABLED AP_RCPROTOCOL_BACKEND_DEFAULT_ENABLED
|
2022-04-16 23:54:08 -03:00
|
|
|
#endif
|
|
|
|
#ifndef AP_RCPROTOCOL_FPORT2_ENABLED
|
2023-03-14 08:18:29 -03:00
|
|
|
#define AP_RCPROTOCOL_FPORT2_ENABLED AP_RCPROTOCOL_BACKEND_DEFAULT_ENABLED && AP_FRSKY_SPORT_TELEM_ENABLED
|
|
|
|
#endif
|
|
|
|
|
2023-05-15 23:03:39 -03:00
|
|
|
#ifndef AP_RCPROTOCOL_IBUS_ENABLED
|
|
|
|
#define AP_RCPROTOCOL_IBUS_ENABLED AP_RCPROTOCOL_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
2024-03-05 01:50:57 -04:00
|
|
|
#ifndef AP_RCPROTOCOL_JOYSTICK_SFML_ENABLED
|
|
|
|
#define AP_RCPROTOCOL_JOYSTICK_SFML_ENABLED defined(SFML_JOYSTICK)
|
|
|
|
#endif
|
|
|
|
|
2023-05-15 22:55:57 -03:00
|
|
|
#ifndef AP_RCPROTOCOL_PPMSUM_ENABLED
|
|
|
|
#define AP_RCPROTOCOL_PPMSUM_ENABLED AP_RCPROTOCOL_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
2023-04-27 21:38:54 -03:00
|
|
|
#ifndef AP_RCPROTOCOL_SBUS_ENABLED
|
|
|
|
#define AP_RCPROTOCOL_SBUS_ENABLED AP_RCPROTOCOL_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
2023-03-14 08:18:29 -03:00
|
|
|
#ifndef AP_RCPROTOCOL_SRXL_ENABLED
|
|
|
|
#define AP_RCPROTOCOL_SRXL_ENABLED AP_RCPROTOCOL_BACKEND_DEFAULT_ENABLED
|
2022-04-16 23:54:08 -03:00
|
|
|
#endif
|
2023-04-26 04:19:07 -03:00
|
|
|
|
|
|
|
#ifndef AP_RCPROTOCOL_SRXL2_ENABLED
|
|
|
|
#define AP_RCPROTOCOL_SRXL2_ENABLED AP_RCPROTOCOL_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
2023-04-27 21:38:54 -03:00
|
|
|
|
2023-05-15 22:35:46 -03:00
|
|
|
#ifndef AP_RCPROTOCOL_ST24_ENABLED
|
|
|
|
#define AP_RCPROTOCOL_ST24_ENABLED AP_RCPROTOCOL_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
2023-05-15 23:08:53 -03:00
|
|
|
#ifndef AP_RCPROTOCOL_SUMD_ENABLED
|
|
|
|
#define AP_RCPROTOCOL_SUMD_ENABLED AP_RCPROTOCOL_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
2023-04-27 21:38:54 -03:00
|
|
|
|
|
|
|
#ifndef AP_RCPROTOCOL_SBUS_NI_ENABLED
|
2023-05-02 02:41:26 -03:00
|
|
|
#define AP_RCPROTOCOL_SBUS_NI_ENABLED AP_RCPROTOCOL_BACKEND_DEFAULT_ENABLED && AP_RCPROTOCOL_SBUS_ENABLED
|
2023-04-27 21:38:54 -03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_RCPROTOCOL_FASTSBUS_ENABLED
|
2023-05-02 02:41:26 -03:00
|
|
|
#define AP_RCPROTOCOL_FASTSBUS_ENABLED AP_RCPROTOCOL_BACKEND_DEFAULT_ENABLED && AP_RCPROTOCOL_SBUS_ENABLED
|
2023-04-27 21:38:54 -03:00
|
|
|
#endif
|
2023-12-13 04:47:51 -04:00
|
|
|
|
|
|
|
#ifndef AP_RCPROTOCOL_GHST_ENABLED
|
|
|
|
#define AP_RCPROTOCOL_GHST_ENABLED AP_RCPROTOCOL_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
2024-03-06 06:32:50 -04:00
|
|
|
|
|
|
|
#ifndef AP_RCPROTOCOL_MAVLINK_RADIO_ENABLED
|
|
|
|
#define AP_RCPROTOCOL_MAVLINK_RADIO_ENABLED AP_RCPROTOCOL_BACKEND_DEFAULT_ENABLED && BOARD_FLASH_SIZE > 1024 && HAL_GCS_ENABLED
|
|
|
|
#endif
|
|
|
|
|
2024-03-14 02:47:23 -03:00
|
|
|
#ifndef AP_RCPROTOCOL_UDP_ENABLED
|
|
|
|
#define AP_RCPROTOCOL_UDP_ENABLED AP_RCPROTOCOL_BACKEND_DEFAULT_ENABLED && (CONFIG_HAL_BOARD == HAL_BOARD_SITL)
|
|
|
|
#endif
|
2024-03-14 02:47:43 -03:00
|
|
|
|
|
|
|
#ifndef AP_RCPROTOCOL_FDM_ENABLED
|
|
|
|
#define AP_RCPROTOCOL_FDM_ENABLED AP_RCPROTOCOL_BACKEND_DEFAULT_ENABLED && (CONFIG_HAL_BOARD == HAL_BOARD_SITL)
|
2024-03-27 17:40:03 -03:00
|
|
|
#endif
|