2023-05-22 00:04:36 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AP_HAL/AP_HAL_Boards.h>
|
2022-01-06 21:36:48 -04:00
|
|
|
#include <GCS_MAVLink/GCS_config.h>
|
2023-05-22 00:04:36 -03:00
|
|
|
|
2024-11-11 17:49:13 -04:00
|
|
|
#define AP_SIM_MAX_GPS_SENSORS 4
|
|
|
|
|
2023-05-12 02:53:31 -03:00
|
|
|
#ifndef HAL_SIM_ADSB_ENABLED
|
2023-09-29 01:09:21 -03:00
|
|
|
#define HAL_SIM_ADSB_ENABLED (CONFIG_HAL_BOARD == HAL_BOARD_SITL)
|
2023-05-12 02:53:31 -03:00
|
|
|
#endif
|
|
|
|
|
2023-05-22 00:04:36 -03:00
|
|
|
#ifndef HAL_SIM_SERIALPROXIMITYSENSOR_ENABLED
|
|
|
|
#define HAL_SIM_SERIALPROXIMITYSENSOR_ENABLED (CONFIG_HAL_BOARD == HAL_BOARD_SITL)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAL_SIM_PS_RPLIDARA1_ENABLED
|
|
|
|
#define HAL_SIM_PS_RPLIDARA1_ENABLED HAL_SIM_SERIALPROXIMITYSENSOR_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAL_SIM_PS_RPLIDARA2_ENABLED
|
|
|
|
#define HAL_SIM_PS_RPLIDARA2_ENABLED HAL_SIM_SERIALPROXIMITYSENSOR_ENABLED
|
|
|
|
#endif
|
2023-06-08 01:13:51 -03:00
|
|
|
|
|
|
|
#ifndef AP_SIM_IS31FL3195_ENABLED
|
|
|
|
#define AP_SIM_IS31FL3195_ENABLED (CONFIG_HAL_BOARD == HAL_BOARD_SITL)
|
|
|
|
#endif
|
2023-05-12 02:53:31 -03:00
|
|
|
|
2024-07-10 21:26:42 -03:00
|
|
|
#ifndef AP_SIM_LED_N_ENABLED
|
|
|
|
#define AP_SIM_LED_N_ENABLED (CONFIG_HAL_BOARD == HAL_BOARD_SITL) && defined(WITH_SITL_RGBLED)
|
|
|
|
#endif
|
|
|
|
|
2024-07-11 09:25:32 -03:00
|
|
|
#ifndef AP_SIM_GPIO_LED_1_ENABLED
|
|
|
|
#define AP_SIM_GPIO_LED_1_ENABLED AP_SIM_LED_N_ENABLED && 0
|
|
|
|
#endif
|
|
|
|
|
2024-07-10 21:26:42 -03:00
|
|
|
#ifndef AP_SIM_GPIO_LED_2_ENABLED
|
|
|
|
#define AP_SIM_GPIO_LED_2_ENABLED AP_SIM_LED_N_ENABLED && 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_SIM_GPIO_LED_3_ENABLED
|
|
|
|
#define AP_SIM_GPIO_LED_3_ENABLED AP_SIM_LED_N_ENABLED && 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_SIM_GPIO_LED_RGB_ENABLED
|
2024-07-11 09:25:32 -03:00
|
|
|
#define AP_SIM_GPIO_LED_RGB_ENABLED AP_SIM_LED_N_ENABLED && 0
|
2024-07-10 21:26:42 -03:00
|
|
|
#endif
|
|
|
|
|
2022-01-06 21:36:48 -04:00
|
|
|
#ifndef AP_SIM_LOWEHEISER_ENABLED
|
|
|
|
#define AP_SIM_LOWEHEISER_ENABLED AP_SIM_ENABLED && HAL_MAVLINK_BINDINGS_ENABLED
|
|
|
|
#endif
|
|
|
|
|
2023-05-12 02:53:31 -03:00
|
|
|
#ifndef AP_SIM_SHIP_ENABLED
|
|
|
|
#define AP_SIM_SHIP_ENABLED (CONFIG_HAL_BOARD == HAL_BOARD_SITL)
|
|
|
|
#endif
|
2023-09-03 23:00:13 -03:00
|
|
|
|
2024-07-12 03:18:16 -03:00
|
|
|
#ifndef AP_SIM_SLUNGPAYLOAD_ENABLED
|
|
|
|
#define AP_SIM_SLUNGPAYLOAD_ENABLED (CONFIG_HAL_BOARD == HAL_BOARD_SITL)
|
|
|
|
#endif
|
|
|
|
|
2024-10-02 05:29:21 -03:00
|
|
|
#ifndef AP_SIM_FLIGHTAXIS_ENABLED
|
|
|
|
#define AP_SIM_FLIGHTAXIS_ENABLED (CONFIG_HAL_BOARD == HAL_BOARD_SITL)
|
|
|
|
#endif
|
|
|
|
|
2023-09-03 23:00:13 -03:00
|
|
|
#ifndef AP_SIM_TSYS03_ENABLED
|
|
|
|
#define AP_SIM_TSYS03_ENABLED (CONFIG_HAL_BOARD == HAL_BOARD_SITL)
|
|
|
|
#endif
|
2023-10-20 01:56:40 -03:00
|
|
|
|
|
|
|
#ifndef AP_SIM_ADSB_SAGETECH_MXS_ENABLED
|
|
|
|
#define AP_SIM_ADSB_SAGETECH_MXS_ENABLED (CONFIG_HAL_BOARD == HAL_BOARD_SITL)
|
|
|
|
#endif
|
2023-11-13 23:06:05 -04:00
|
|
|
|
|
|
|
#ifndef AP_SIM_SERIALDEVICE_CORRUPTION_ENABLED
|
|
|
|
#define AP_SIM_SERIALDEVICE_CORRUPTION_ENABLED 0
|
|
|
|
#endif
|
2023-11-28 06:24:44 -04:00
|
|
|
|
|
|
|
#ifndef HAL_SIM_GPS_ENABLED
|
|
|
|
#define HAL_SIM_GPS_ENABLED AP_SIM_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_SIM_GPS_BACKEND_DEFAULT_ENABLED
|
|
|
|
#define AP_SIM_GPS_BACKEND_DEFAULT_ENABLED AP_SIM_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_SIM_GPS_FILE_ENABLED
|
|
|
|
// really need to use AP_FileSystem for this.
|
|
|
|
#define AP_SIM_GPS_FILE_ENABLED (CONFIG_HAL_BOARD == HAL_BOARD_SITL || CONFIG_HAL_BOARD == HAL_BOARD_LINUX)
|
|
|
|
#endif
|
|
|
|
|
2024-08-16 05:49:04 -03:00
|
|
|
#ifndef AP_SIM_GPS_SBF_ENABLED
|
|
|
|
#define AP_SIM_GPS_SBF_ENABLED AP_SIM_GPS_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
2023-11-28 16:19:24 -04:00
|
|
|
#ifndef AP_SIM_GPS_TRIMBLE_ENABLED
|
|
|
|
#define AP_SIM_GPS_TRIMBLE_ENABLED AP_SIM_GPS_BACKEND_DEFAULT_ENABLED
|
2023-11-28 06:24:44 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_SIM_GPS_MSP_ENABLED
|
|
|
|
#define AP_SIM_GPS_MSP_ENABLED AP_SIM_GPS_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_SIM_GPS_NMEA_ENABLED
|
|
|
|
#define AP_SIM_GPS_NMEA_ENABLED AP_SIM_GPS_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_SIM_GPS_NOVA_ENABLED
|
|
|
|
#define AP_SIM_GPS_NOVA_ENABLED AP_SIM_GPS_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_SIM_GPS_SBP2_ENABLED
|
|
|
|
#define AP_SIM_GPS_SBP2_ENABLED AP_SIM_GPS_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_SIM_GPS_SBP_ENABLED
|
|
|
|
#define AP_SIM_GPS_SBP_ENABLED AP_SIM_GPS_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_SIM_GPS_UBLOX_ENABLED
|
|
|
|
#define AP_SIM_GPS_UBLOX_ENABLED AP_SIM_GPS_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
2020-08-19 03:15:55 -03:00
|
|
|
|
|
|
|
|
|
|
|
// simulated compass support; currently only in SITL, not SimOnHW:
|
|
|
|
#ifndef AP_SIM_COMPASS_BACKEND_DEFAULT_ENABLED
|
|
|
|
#define AP_SIM_COMPASS_BACKEND_DEFAULT_ENABLED (CONFIG_HAL_BOARD == HAL_BOARD_SITL)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_SIM_COMPASS_QMC5883L_ENABLED
|
|
|
|
#define AP_SIM_COMPASS_QMC5883L_ENABLED AP_SIM_COMPASS_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
2024-04-26 05:47:28 -03:00
|
|
|
|
|
|
|
#ifndef AP_SIM_STRATOBLIMP_ENABLED
|
|
|
|
#define AP_SIM_STRATOBLIMP_ENABLED (CONFIG_HAL_BOARD == HAL_BOARD_SITL)
|
|
|
|
#endif
|
2024-04-28 00:21:41 -03:00
|
|
|
|
|
|
|
#ifndef AP_SIM_GLIDER_ENABLED
|
|
|
|
#define AP_SIM_GLIDER_ENABLED (CONFIG_HAL_BOARD == HAL_BOARD_SITL)
|
|
|
|
#endif
|
2024-07-17 03:46:42 -03:00
|
|
|
|
|
|
|
#ifndef AP_SIM_SOLOGIMBAL_ENABLED
|
2024-07-17 03:52:20 -03:00
|
|
|
#define AP_SIM_SOLOGIMBAL_ENABLED (CONFIG_HAL_BOARD == HAL_BOARD_SITL && HAL_MAVLINK_BINDINGS_ENABLED)
|
2024-07-17 03:46:42 -03:00
|
|
|
#endif
|
2024-07-17 03:52:20 -03:00
|
|
|
|
|
|
|
#ifndef AP_SIM_GIMBAL_ENABLED
|
|
|
|
#define AP_SIM_GIMBAL_ENABLED (AP_SIM_SOLOGIMBAL_ENABLED)
|
|
|
|
#endif
|
|
|
|
|