AP_DDS: Add AP_DDS_config.h for feature defines

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
This commit is contained in:
Ryan Friedman 2023-08-08 23:21:40 -06:00 committed by Peter Barker
parent 27f9a54a54
commit e14afa6f2b
2 changed files with 9 additions and 3 deletions

View File

@ -23,14 +23,12 @@
#include "fcntl.h"
#include <AP_Param/AP_Param.h>
#include "AP_DDS_config.h"
#define DDS_MTU 512
#define DDS_STREAM_HISTORY 8
#define DDS_BUFFER_SIZE DDS_MTU * DDS_STREAM_HISTORY
// UDP only on SITL for now
#define AP_DDS_UDP_ENABLED (CONFIG_HAL_BOARD == HAL_BOARD_SITL)
#if AP_DDS_UDP_ENABLED
#include <AP_HAL/utility/Socket.h>
#endif

View File

@ -0,0 +1,8 @@
#pragma once
#include <AP_HAL/AP_HAL_Boards.h>
// UDP only on SITL for now
#ifndef AP_DDS_UDP_ENABLED
#define AP_DDS_UDP_ENABLED (CONFIG_HAL_BOARD == HAL_BOARD_SITL)
#endif