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>
|
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
|
|
|
|
#define AP_CAMERA_MAVLINK_ENABLED AP_CAMERA_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
2023-04-04 03:36:54 -03:00
|
|
|
#ifndef AP_CAMERA_MAVLINKCAMV2_ENABLED
|
|
|
|
#define AP_CAMERA_MAVLINKCAMV2_ENABLED AP_CAMERA_BACKEND_DEFAULT_ENABLED && BOARD_FLASH_SIZE > 1024
|
|
|
|
#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
|
|
|
|
#define AP_CAMERA_RELAY_ENABLED AP_CAMERA_BACKEND_DEFAULT_ENABLED
|
|
|
|
#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
|