forked from Archive/PX4-Autopilot
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:
parent
8873d2d696
commit
456227f39e
|
@ -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
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
include(configs/nuttx_aerofc-v1_default)
|
||||
|
||||
|
||||
list(APPEND config_module_list
|
||||
modules/micrortps_bridge
|
||||
drivers/protocol_splitter
|
||||
)
|
Loading…
Reference in New Issue