2022-06-02 05:28:26 -03:00
|
|
|
#pragma once
|
|
|
|
|
2023-03-16 06:49:38 -03:00
|
|
|
#include <AP_HAL/AP_HAL_Boards.h>
|
2023-03-06 18:15:58 -04:00
|
|
|
#include <AP_Mount/AP_Mount_config.h>
|
2023-06-06 05:05:06 -03:00
|
|
|
#include <AP_Relay/AP_Relay_config.h>
|
2023-09-02 02:21:34 -03:00
|
|
|
#include <GCS_MAVLink/GCS_config.h>
|
2022-06-02 05:28:26 -03:00
|
|
|
|
|
|
|
#ifndef AP_CAMERA_ENABLED
|
|
|
|
#define AP_CAMERA_ENABLED 1
|
|
|
|
#endif
|
2023-03-06 18:15:58 -04:00
|
|
|
|
|
|
|
#ifndef AP_CAMERA_BACKEND_DEFAULT_ENABLED
|
|
|
|
#define AP_CAMERA_BACKEND_DEFAULT_ENABLED AP_CAMERA_ENABLED
|
|
|
|
#endif
|
|
|
|
|
2023-03-06 19:04:30 -04:00
|
|
|
#ifndef AP_CAMERA_MAVLINK_ENABLED
|
2023-09-02 02:21:34 -03:00
|
|
|
#define AP_CAMERA_MAVLINK_ENABLED AP_CAMERA_BACKEND_DEFAULT_ENABLED && HAL_GCS_ENABLED
|
2023-03-06 19:04:30 -04:00
|
|
|
#endif
|
|
|
|
|
2023-04-04 03:36:54 -03:00
|
|
|
#ifndef AP_CAMERA_MAVLINKCAMV2_ENABLED
|
2024-03-07 03:52:56 -04:00
|
|
|
#define AP_CAMERA_MAVLINKCAMV2_ENABLED AP_CAMERA_BACKEND_DEFAULT_ENABLED && HAL_GCS_ENABLED && BOARD_FLASH_SIZE > 1024
|
2023-04-04 03:36:54 -03:00
|
|
|
#endif
|
|
|
|
|
2023-03-06 18:15:58 -04:00
|
|
|
#ifndef AP_CAMERA_MOUNT_ENABLED
|
|
|
|
#define AP_CAMERA_MOUNT_ENABLED AP_CAMERA_BACKEND_DEFAULT_ENABLED && HAL_MOUNT_ENABLED
|
|
|
|
#endif
|
2023-03-06 19:04:39 -04:00
|
|
|
|
2023-03-06 19:04:43 -04:00
|
|
|
#ifndef AP_CAMERA_RELAY_ENABLED
|
2023-06-06 05:05:06 -03:00
|
|
|
#define AP_CAMERA_RELAY_ENABLED AP_CAMERA_BACKEND_DEFAULT_ENABLED && AP_RELAY_ENABLED
|
2023-03-06 19:04:43 -04:00
|
|
|
#endif
|
|
|
|
|
2023-03-06 19:04:45 -04:00
|
|
|
#ifndef AP_CAMERA_SERVO_ENABLED
|
|
|
|
#define AP_CAMERA_SERVO_ENABLED AP_CAMERA_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
2023-03-06 19:04:39 -04:00
|
|
|
#ifndef AP_CAMERA_SOLOGIMBAL_ENABLED
|
|
|
|
#define AP_CAMERA_SOLOGIMBAL_ENABLED AP_CAMERA_BACKEND_DEFAULT_ENABLED && HAL_SOLO_GIMBAL_ENABLED
|
|
|
|
#endif
|
2023-04-07 23:35:51 -03:00
|
|
|
|
|
|
|
#ifndef AP_CAMERA_SCRIPTING_ENABLED
|
|
|
|
#define AP_CAMERA_SCRIPTING_ENABLED AP_CAMERA_BACKEND_DEFAULT_ENABLED && AP_SCRIPTING_ENABLED
|
|
|
|
#endif
|
2024-02-08 04:29:29 -04:00
|
|
|
|
|
|
|
#ifndef AP_CAMERA_SEND_FOV_STATUS_ENABLED
|
|
|
|
#define AP_CAMERA_SEND_FOV_STATUS_ENABLED AP_MOUNT_POI_TO_LATLONALT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// set camera source is supported on cameras that may have more than one lens which is curently only cameras within gimbals/mounts
|
|
|
|
#ifndef AP_CAMERA_SET_CAMERA_SOURCE_ENABLED
|
|
|
|
#define AP_CAMERA_SET_CAMERA_SOURCE_ENABLED HAL_MOUNT_SET_CAMERA_SOURCE_ENABLED
|
|
|
|
#endif
|
2024-08-07 02:45:33 -03:00
|
|
|
|
2024-08-24 00:26:35 -03:00
|
|
|
// send thermal range is supported on a few thermal cameras but all are within mounts
|
|
|
|
#ifndef AP_CAMERA_SEND_THERMAL_RANGE_ENABLED
|
|
|
|
#define AP_CAMERA_SEND_THERMAL_RANGE_ENABLED AP_MOUNT_SEND_THERMAL_RANGE_ENABLED
|
|
|
|
#endif
|
|
|
|
|
2024-08-07 02:45:33 -03:00
|
|
|
#ifndef HAL_RUNCAM_ENABLED
|
|
|
|
#define HAL_RUNCAM_ENABLED 1
|
|
|
|
#endif
|
2024-08-08 03:02:42 -03:00
|
|
|
|
|
|
|
#ifndef AP_CAMERA_INFO_FROM_SCRIPT_ENABLED
|
|
|
|
#define AP_CAMERA_INFO_FROM_SCRIPT_ENABLED AP_CAMERA_SCRIPTING_ENABLED
|
|
|
|
#endif
|
2024-04-25 13:58:56 -03:00
|
|
|
|
|
|
|
#ifndef AP_CAMERA_RUNCAM_ENABLED
|
|
|
|
#define AP_CAMERA_RUNCAM_ENABLED AP_CAMERA_BACKEND_DEFAULT_ENABLED && HAL_RUNCAM_ENABLED
|
|
|
|
#endif
|