AP_DDS: Add AP_DDS_config.h for feature defines
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
This commit is contained in:
parent
27f9a54a54
commit
e14afa6f2b
@ -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
|
||||
|
8
libraries/AP_DDS/AP_DDS_config.h
Normal file
8
libraries/AP_DDS/AP_DDS_config.h
Normal 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
|
Loading…
Reference in New Issue
Block a user