mirror of https://github.com/ArduPilot/ardupilot
27 lines
642 B
C
27 lines
642 B
C
#pragma once
|
|
|
|
#include <AP_HAL/AP_HAL_Boards.h>
|
|
#include <AP_Networking/AP_Networking_Config.h>
|
|
|
|
#ifndef AP_DDS_ENABLED
|
|
#define AP_DDS_ENABLED 1
|
|
#endif
|
|
|
|
// UDP only on SITL for now
|
|
#ifndef AP_DDS_UDP_ENABLED
|
|
#define AP_DDS_UDP_ENABLED AP_DDS_ENABLED && AP_NETWORKING_ENABLED
|
|
#endif
|
|
|
|
#include <AP_VisualOdom/AP_VisualOdom_config.h>
|
|
#ifndef AP_DDS_VISUALODOM_ENABLED
|
|
#define AP_DDS_VISUALODOM_ENABLED HAL_VISUALODOM_ENABLED && AP_DDS_ENABLED
|
|
#endif
|
|
|
|
#ifndef AP_DDS_DEFAULT_UDP_IP_ADDR
|
|
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
|
|
#define AP_DDS_DEFAULT_UDP_IP_ADDR "192.168.13.2"
|
|
#else
|
|
#define AP_DDS_DEFAULT_UDP_IP_ADDR "127.0.0.1"
|
|
#endif
|
|
#endif
|