2023-08-09 02:21:40 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AP_HAL/AP_HAL_Boards.h>
|
2023-11-12 18:10:17 -04:00
|
|
|
#include <AP_Networking/AP_Networking_Config.h>
|
2023-08-09 02:21:40 -03:00
|
|
|
|
2023-08-06 01:39:21 -03:00
|
|
|
#ifndef AP_DDS_ENABLED
|
|
|
|
#define AP_DDS_ENABLED 1
|
|
|
|
#endif
|
|
|
|
|
2023-08-09 02:21:40 -03:00
|
|
|
// UDP only on SITL for now
|
|
|
|
#ifndef AP_DDS_UDP_ENABLED
|
2023-11-12 21:59:59 -04:00
|
|
|
#define AP_DDS_UDP_ENABLED AP_DDS_ENABLED && AP_NETWORKING_ENABLED
|
2023-08-06 01:39:21 -03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <AP_VisualOdom/AP_VisualOdom_config.h>
|
|
|
|
#ifndef AP_DDS_VISUALODOM_ENABLED
|
|
|
|
#define AP_DDS_VISUALODOM_ENABLED HAL_VISUALODOM_ENABLED && AP_DDS_ENABLED
|
2023-08-09 02:21:40 -03:00
|
|
|
#endif
|
2023-11-12 21:59:59 -04:00
|
|
|
|
|
|
|
#ifndef AP_DDS_DEFAULT_UDP_IP_ADDR
|
|
|
|
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
|
2023-11-15 15:17:38 -04:00
|
|
|
#define AP_DDS_DEFAULT_UDP_IP_ADDR "192.168.13.2"
|
2023-11-12 21:59:59 -04:00
|
|
|
#else
|
2023-11-15 15:17:38 -04:00
|
|
|
#define AP_DDS_DEFAULT_UDP_IP_ADDR "127.0.0.1"
|
2023-11-12 21:59:59 -04:00
|
|
|
#endif
|
|
|
|
#endif
|