File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 4
4
#if AP_DDS_ENABLED
5
5
#include < uxr/client/util/ping.h>
6
6
7
+ #if AP_DDS_NEEDS_GPS
7
8
#include < AP_GPS/AP_GPS.h>
9
+ #endif // AP_DDS_NEEDS_GPS
8
10
#include < AP_HAL/AP_HAL.h>
9
11
#include < RC_Channel/RC_Channel.h>
10
12
#include < AP_RTC/AP_RTC.h>
Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
3
+ #include <AP_GPS/AP_GPS_config.h>
3
4
#include <AP_HAL/AP_HAL_Boards.h>
4
5
#include <AP_Networking/AP_Networking_Config.h>
6
+ #include <AP_VisualOdom/AP_VisualOdom_config.h>
5
7
6
8
#ifndef AP_DDS_ENABLED
7
9
#define AP_DDS_ENABLED 1
39
41
#endif
40
42
41
43
#ifndef AP_DDS_NAVSATFIX_PUB_ENABLED
42
- #define AP_DDS_NAVSATFIX_PUB_ENABLED 1
44
+ #define AP_DDS_NAVSATFIX_PUB_ENABLED AP_GPS_ENABLED
43
45
#endif
44
46
45
47
#ifndef AP_DDS_STATIC_TF_PUB_ENABLED
46
- #define AP_DDS_STATIC_TF_PUB_ENABLED 1
48
+ #define AP_DDS_STATIC_TF_PUB_ENABLED AP_GPS_ENABLED
47
49
#endif
48
50
49
51
#ifndef AP_DDS_GPS_GLOBAL_ORIGIN_PUB_ENABLED
167
169
// Whether to include Transform support
168
170
#define AP_DDS_NEEDS_TRANSFORMS AP_DDS_DYNAMIC_TF_SUB_ENABLED || AP_DDS_STATIC_TF_PUB_ENABLED
169
171
172
+ // Whether DDS needs GPS
173
+ #define AP_DDS_NEEDS_GPS AP_DDS_NAVSATFIX_PUB_ENABLED || AP_DDS_STATIC_TF_PUB_ENABLED
174
+
170
175
#ifndef AP_DDS_DEFAULT_UDP_IP_ADDR
171
176
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
172
177
#define AP_DDS_DEFAULT_UDP_IP_ADDR "192.168.144.2"
You can’t perform that action at this time.
0 commit comments