2023-03-05 18:42:54 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AP_HAL/AP_HAL_Boards.h>
|
2023-09-20 23:36:58 -03:00
|
|
|
#include <AP_Terrain/AP_Terrain.h>
|
2023-03-05 18:42:54 -04:00
|
|
|
|
|
|
|
#ifndef HAL_MOUNT_ENABLED
|
2023-05-31 22:21:45 -03:00
|
|
|
#define HAL_MOUNT_ENABLED 1
|
2023-03-05 18:42:54 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#define AP_MOUNT_BACKEND_DEFAULT_ENABLED HAL_MOUNT_ENABLED
|
|
|
|
|
|
|
|
#ifndef HAL_MOUNT_ALEXMOS_ENABLED
|
|
|
|
#define HAL_MOUNT_ALEXMOS_ENABLED AP_MOUNT_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAL_MOUNT_GREMSY_ENABLED
|
2024-03-07 03:52:58 -04:00
|
|
|
#define HAL_MOUNT_GREMSY_ENABLED AP_MOUNT_BACKEND_DEFAULT_ENABLED && HAL_GCS_ENABLED && BOARD_FLASH_SIZE > 1024
|
2023-03-05 18:42:54 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAL_MOUNT_SCRIPTING_ENABLED
|
|
|
|
#define HAL_MOUNT_SCRIPTING_ENABLED AP_MOUNT_BACKEND_DEFAULT_ENABLED && AP_SCRIPTING_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAL_MOUNT_SERVO_ENABLED
|
|
|
|
#define HAL_MOUNT_SERVO_ENABLED AP_MOUNT_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAL_MOUNT_SIYI_ENABLED
|
|
|
|
#define HAL_MOUNT_SIYI_ENABLED AP_MOUNT_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// solo gimbal is enabled explicitly in hwdefs on some Cubes:
|
|
|
|
#ifndef HAL_SOLO_GIMBAL_ENABLED
|
|
|
|
#define HAL_SOLO_GIMBAL_ENABLED 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAL_MOUNT_STORM32MAVLINK_ENABLED
|
2023-09-02 02:21:35 -03:00
|
|
|
#define HAL_MOUNT_STORM32MAVLINK_ENABLED AP_MOUNT_BACKEND_DEFAULT_ENABLED && HAL_GCS_ENABLED
|
2023-03-05 18:42:54 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAL_MOUNT_STORM32SERIAL_ENABLED
|
|
|
|
#define HAL_MOUNT_STORM32SERIAL_ENABLED AP_MOUNT_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
2023-02-21 02:04:28 -04:00
|
|
|
|
2023-06-20 02:44:43 -03:00
|
|
|
#ifndef HAL_MOUNT_XACTI_ENABLED
|
2023-07-18 02:22:45 -03:00
|
|
|
#define HAL_MOUNT_XACTI_ENABLED AP_MOUNT_BACKEND_DEFAULT_ENABLED && HAL_ENABLE_DRONECAN_DRIVERS && BOARD_FLASH_SIZE > 1024
|
2023-02-21 02:04:28 -04:00
|
|
|
#endif
|
2023-07-05 02:35:39 -03:00
|
|
|
|
|
|
|
#ifndef HAL_MOUNT_VIEWPRO_ENABLED
|
2023-07-18 02:22:45 -03:00
|
|
|
#define HAL_MOUNT_VIEWPRO_ENABLED AP_MOUNT_BACKEND_DEFAULT_ENABLED && BOARD_FLASH_SIZE > 1024
|
2023-07-05 02:35:39 -03:00
|
|
|
#endif
|
2023-09-20 23:36:58 -03:00
|
|
|
|
|
|
|
#ifndef AP_MOUNT_POI_TO_LATLONALT_ENABLED
|
|
|
|
#define AP_MOUNT_POI_TO_LATLONALT_ENABLED HAL_MOUNT_ENABLED && AP_TERRAIN_AVAILABLE && BOARD_FLASH_SIZE > 1024
|
|
|
|
#endif
|