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_DDS/AP_DDS_config.h
Views: 1798
1
#pragma once
2
3
#include <AP_HAL/AP_HAL_Boards.h>
4
#include <AP_Networking/AP_Networking_Config.h>
5
6
#ifndef AP_DDS_ENABLED
7
#define AP_DDS_ENABLED 1
8
#endif
9
10
// UDP only on SITL for now
11
#ifndef AP_DDS_UDP_ENABLED
12
#define AP_DDS_UDP_ENABLED AP_DDS_ENABLED && AP_NETWORKING_ENABLED
13
#endif
14
15
#include <AP_VisualOdom/AP_VisualOdom_config.h>
16
#ifndef AP_DDS_VISUALODOM_ENABLED
17
#define AP_DDS_VISUALODOM_ENABLED HAL_VISUALODOM_ENABLED && AP_DDS_ENABLED
18
#endif
19
20
// Whether experimental interfaces are enabled.
21
#ifndef AP_DDS_EXPERIMENTAL_ENABLED
22
#define AP_DDS_EXPERIMENTAL_ENABLED 1
23
#endif
24
25
#ifndef AP_DDS_IMU_PUB_ENABLED
26
#define AP_DDS_IMU_PUB_ENABLED AP_DDS_EXPERIMENTAL_ENABLED
27
#endif
28
29
#ifndef AP_DDS_DELAY_IMU_TOPIC_MS
30
#define AP_DDS_DELAY_IMU_TOPIC_MS 5
31
#endif
32
33
#ifndef AP_DDS_TIME_PUB_ENABLED
34
#define AP_DDS_TIME_PUB_ENABLED 1
35
#endif
36
37
#ifndef AP_DDS_DELAY_TIME_TOPIC_MS
38
#define AP_DDS_DELAY_TIME_TOPIC_MS 10
39
#endif
40
41
#ifndef AP_DDS_NAVSATFIX_PUB_ENABLED
42
#define AP_DDS_NAVSATFIX_PUB_ENABLED 1
43
#endif
44
45
#ifndef AP_DDS_STATIC_TF_PUB_ENABLED
46
#define AP_DDS_STATIC_TF_PUB_ENABLED 1
47
#endif
48
49
#ifndef AP_DDS_GPS_GLOBAL_ORIGIN_PUB_ENABLED
50
#define AP_DDS_GPS_GLOBAL_ORIGIN_PUB_ENABLED 1
51
#endif
52
53
#ifndef AP_DDS_DELAY_GPS_GLOBAL_ORIGIN_TOPIC_MS
54
#define AP_DDS_DELAY_GPS_GLOBAL_ORIGIN_TOPIC_MS 1000
55
#endif
56
57
#ifndef AP_DDS_GEOPOSE_PUB_ENABLED
58
#define AP_DDS_GEOPOSE_PUB_ENABLED 1
59
#endif
60
61
#ifndef AP_DDS_DELAY_GEO_POSE_TOPIC_MS
62
#define AP_DDS_DELAY_GEO_POSE_TOPIC_MS 33
63
#endif
64
65
#ifndef AP_DDS_LOCAL_POSE_PUB_ENABLED
66
#define AP_DDS_LOCAL_POSE_PUB_ENABLED 1
67
#endif
68
69
#ifndef AP_DDS_DELAY_LOCAL_POSE_TOPIC_MS
70
#define AP_DDS_DELAY_LOCAL_POSE_TOPIC_MS 33
71
#endif
72
73
#ifndef AP_DDS_LOCAL_VEL_PUB_ENABLED
74
#define AP_DDS_LOCAL_VEL_PUB_ENABLED 1
75
#endif
76
77
#ifndef AP_DDS_DELAY_LOCAL_VELOCITY_TOPIC_MS
78
#define AP_DDS_DELAY_LOCAL_VELOCITY_TOPIC_MS 33
79
#endif
80
81
#ifndef AP_DDS_AIRSPEED_PUB_ENABLED
82
#define AP_DDS_AIRSPEED_PUB_ENABLED 1
83
#endif
84
85
#ifndef AP_DDS_DELAY_AIRSPEED_TOPIC_MS
86
#define AP_DDS_DELAY_AIRSPEED_TOPIC_MS 33
87
#endif
88
89
#ifndef AP_DDS_BATTERY_STATE_PUB_ENABLED
90
#define AP_DDS_BATTERY_STATE_PUB_ENABLED 1
91
#endif
92
93
#ifndef AP_DDS_DELAY_BATTERY_STATE_TOPIC_MS
94
#define AP_DDS_DELAY_BATTERY_STATE_TOPIC_MS 1000
95
#endif
96
97
#ifndef AP_DDS_DELAY_STATUS_TOPIC_MS
98
#define AP_DDS_DELAY_STATUS_TOPIC_MS 100
99
#endif
100
101
#ifndef AP_DDS_CLOCK_PUB_ENABLED
102
#define AP_DDS_CLOCK_PUB_ENABLED 1
103
#endif
104
105
#ifndef AP_DDS_DELAY_CLOCK_TOPIC_MS
106
#define AP_DDS_DELAY_CLOCK_TOPIC_MS 10
107
#endif
108
109
#ifndef AP_DDS_GOAL_PUB_ENABLED
110
#define AP_DDS_GOAL_PUB_ENABLED 1
111
#endif
112
113
#ifndef AP_DDS_DELAY_GOAL_TOPIC_MS
114
#define AP_DDS_DELAY_GOAL_TOPIC_MS 200
115
#endif
116
#ifndef AP_DDS_STATUS_PUB_ENABLED
117
#define AP_DDS_STATUS_PUB_ENABLED 1
118
#endif
119
120
#ifndef AP_DDS_JOY_SUB_ENABLED
121
#define AP_DDS_JOY_SUB_ENABLED 1
122
#endif
123
124
#ifndef AP_DDS_VEL_CTRL_ENABLED
125
#define AP_DDS_VEL_CTRL_ENABLED 1
126
#endif
127
128
#ifndef AP_DDS_GLOBAL_POS_CTRL_ENABLED
129
#define AP_DDS_GLOBAL_POS_CTRL_ENABLED 1
130
#endif
131
132
#ifndef AP_DDS_DYNAMIC_TF_SUB_ENABLED
133
#define AP_DDS_DYNAMIC_TF_SUB_ENABLED 1
134
#endif
135
136
#ifndef AP_DDS_ARM_SERVER_ENABLED
137
#define AP_DDS_ARM_SERVER_ENABLED 1
138
#endif
139
140
#ifndef AP_DDS_MODE_SWITCH_SERVER_ENABLED
141
#define AP_DDS_MODE_SWITCH_SERVER_ENABLED 1
142
#endif
143
144
#ifndef AP_DDS_VTOL_TAKEOFF_SERVER_ENABLED
145
#define AP_DDS_VTOL_TAKEOFF_SERVER_ENABLED 1
146
#endif
147
148
#ifndef AP_DDS_PARAMETER_SERVER_ENABLED
149
#define AP_DDS_PARAMETER_SERVER_ENABLED 1
150
#endif
151
152
#ifndef AP_DDS_ARM_CHECK_SERVER_ENABLED
153
#define AP_DDS_ARM_CHECK_SERVER_ENABLED 1
154
#endif
155
156
// Whether to include Twist support
157
#define AP_DDS_NEEDS_TWIST AP_DDS_VEL_CTRL_ENABLED || AP_DDS_LOCAL_VEL_PUB_ENABLED
158
159
// Whether to include Transform support
160
#define AP_DDS_NEEDS_TRANSFORMS AP_DDS_DYNAMIC_TF_SUB_ENABLED || AP_DDS_STATIC_TF_PUB_ENABLED
161
162
#ifndef AP_DDS_DEFAULT_UDP_IP_ADDR
163
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
164
#define AP_DDS_DEFAULT_UDP_IP_ADDR "192.168.144.2"
165
#else
166
#define AP_DDS_DEFAULT_UDP_IP_ADDR "127.0.0.1"
167
#endif
168
#endif
169
170
#ifndef AP_DDS_PARTICIPANT_NAME
171
#define AP_DDS_PARTICIPANT_NAME "ap"
172
#endif
173
174