Add RTPS cmake config for AeroFC

Adding a seperate cmake config to support RTPS messaging on AeroFC. This will
include compiling protocol_splitter and micrortps_client, and starting both
of them at boot time.
This commit is contained in:
Avinash Reddy Palleti 2017-11-21 14:14:13 +05:30 committed by Beat Küng
parent 8873d2d696
commit 456227f39e
2 changed files with 19 additions and 1 deletions

View File

@ -597,7 +597,18 @@ then
fi
if param compare SYS_COMPANION 921600
then
mavlink start -d ${MAVLINK_COMPANION_DEVICE} -b 921600 -m onboard -r 80000 -x -f
if ver hwcmp AEROFC_V1
then
if protocol_splitter start ${MAVLINK_COMPANION_DEVICE}
then
mavlink start -d /dev/mavlink -b 921600 -m onboard -r 5000 -x
micrortps_client start -d /dev/rtps -b 0 -l -1 -s 2000
else
mavlink start -d ${MAVLINK_COMPANION_DEVICE} -b 921600 -m onboard -r 80000 -x -f
fi
else
mavlink start -d ${MAVLINK_COMPANION_DEVICE} -b 921600 -m onboard -r 80000 -x -f
fi
fi
if param compare SYS_COMPANION 57600
then

View File

@ -0,0 +1,7 @@
include(configs/nuttx_aerofc-v1_default)
list(APPEND config_module_list
modules/micrortps_bridge
drivers/protocol_splitter
)