CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AP_Camera/AP_Camera_config.h
Views: 1798
1
#pragma once
2
3
#include <AP_HAL/AP_HAL_Boards.h>
4
#include <AP_Mount/AP_Mount_config.h>
5
#include <AP_Relay/AP_Relay_config.h>
6
#include <GCS_MAVLink/GCS_config.h>
7
8
#ifndef AP_CAMERA_ENABLED
9
#define AP_CAMERA_ENABLED 1
10
#endif
11
12
#ifndef AP_CAMERA_BACKEND_DEFAULT_ENABLED
13
#define AP_CAMERA_BACKEND_DEFAULT_ENABLED AP_CAMERA_ENABLED
14
#endif
15
16
#ifndef AP_CAMERA_MAVLINK_ENABLED
17
#define AP_CAMERA_MAVLINK_ENABLED AP_CAMERA_BACKEND_DEFAULT_ENABLED && HAL_GCS_ENABLED
18
#endif
19
20
#ifndef AP_CAMERA_MAVLINKCAMV2_ENABLED
21
#define AP_CAMERA_MAVLINKCAMV2_ENABLED AP_CAMERA_BACKEND_DEFAULT_ENABLED && HAL_GCS_ENABLED && BOARD_FLASH_SIZE > 1024
22
#endif
23
24
#ifndef AP_CAMERA_MOUNT_ENABLED
25
#define AP_CAMERA_MOUNT_ENABLED AP_CAMERA_BACKEND_DEFAULT_ENABLED && HAL_MOUNT_ENABLED
26
#endif
27
28
#ifndef AP_CAMERA_RELAY_ENABLED
29
#define AP_CAMERA_RELAY_ENABLED AP_CAMERA_BACKEND_DEFAULT_ENABLED && AP_RELAY_ENABLED
30
#endif
31
32
#ifndef AP_CAMERA_SERVO_ENABLED
33
#define AP_CAMERA_SERVO_ENABLED AP_CAMERA_BACKEND_DEFAULT_ENABLED
34
#endif
35
36
#ifndef AP_CAMERA_SOLOGIMBAL_ENABLED
37
#define AP_CAMERA_SOLOGIMBAL_ENABLED AP_CAMERA_BACKEND_DEFAULT_ENABLED && HAL_SOLO_GIMBAL_ENABLED
38
#endif
39
40
#ifndef AP_CAMERA_SCRIPTING_ENABLED
41
#define AP_CAMERA_SCRIPTING_ENABLED AP_CAMERA_BACKEND_DEFAULT_ENABLED && AP_SCRIPTING_ENABLED
42
#endif
43
44
#ifndef AP_CAMERA_SEND_FOV_STATUS_ENABLED
45
#define AP_CAMERA_SEND_FOV_STATUS_ENABLED AP_MOUNT_POI_TO_LATLONALT_ENABLED
46
#endif
47
48
// set camera source is supported on cameras that may have more than one lens which is curently only cameras within gimbals/mounts
49
#ifndef AP_CAMERA_SET_CAMERA_SOURCE_ENABLED
50
#define AP_CAMERA_SET_CAMERA_SOURCE_ENABLED HAL_MOUNT_SET_CAMERA_SOURCE_ENABLED
51
#endif
52
53
// send thermal range is supported on a few thermal cameras but all are within mounts
54
#ifndef AP_CAMERA_SEND_THERMAL_RANGE_ENABLED
55
#define AP_CAMERA_SEND_THERMAL_RANGE_ENABLED AP_MOUNT_SEND_THERMAL_RANGE_ENABLED
56
#endif
57
58
#ifndef HAL_RUNCAM_ENABLED
59
#define HAL_RUNCAM_ENABLED 1
60
#endif
61
62
#ifndef AP_CAMERA_INFO_FROM_SCRIPT_ENABLED
63
#define AP_CAMERA_INFO_FROM_SCRIPT_ENABLED AP_CAMERA_SCRIPTING_ENABLED
64
#endif
65
66
#ifndef AP_CAMERA_RUNCAM_ENABLED
67
#define AP_CAMERA_RUNCAM_ENABLED AP_CAMERA_BACKEND_DEFAULT_ENABLED && HAL_RUNCAM_ENABLED
68
#endif
69
70