mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
Migrate hardware specific mavlink stream cases to rc.mavlink.
This commit is contained in:
@@ -38,7 +38,31 @@
|
||||
# USART6 /dev/ttyS2 GPS
|
||||
#
|
||||
|
||||
###############################################################################
|
||||
# Begin Setup for board specific configurations. #
|
||||
###############################################################################
|
||||
|
||||
if ver hwcmp AEROFC_V1
|
||||
then
|
||||
# don't start mavlink ttyACM0 on aerofc_v1
|
||||
else
|
||||
# Start MAVLink
|
||||
mavlink start -r 800000 -d /dev/ttyACM0 -m config -x
|
||||
fi
|
||||
|
||||
if ver hwcmp NXPHLITE_V3
|
||||
then
|
||||
set MAVLINK_COMPANION_DEVICE /dev/ttyS4
|
||||
fi
|
||||
|
||||
if ver hwcmp OMNIBUS_F4SD
|
||||
then
|
||||
set MAVLINK_COMPANION_DEVICE /dev/ttyS1
|
||||
fi
|
||||
|
||||
###############################################################################
|
||||
# End Setup for board specific configurations. #
|
||||
###############################################################################
|
||||
|
||||
if [ $MAVLINK_F == default ]
|
||||
then
|
||||
|
||||
@@ -206,12 +206,6 @@ then
|
||||
if ver hwcmp NXPHLITE_V3
|
||||
then
|
||||
param set SYS_FMU_TASK 1
|
||||
set MAVLINK_COMPANION_DEVICE /dev/ttyS4
|
||||
fi
|
||||
|
||||
if ver hwcmp OMNIBUS_F4SD
|
||||
then
|
||||
set MAVLINK_COMPANION_DEVICE /dev/ttyS1
|
||||
fi
|
||||
|
||||
#
|
||||
@@ -555,14 +549,6 @@ then
|
||||
px4flow start &
|
||||
fi
|
||||
|
||||
if ver hwcmp AEROFC_V1
|
||||
then
|
||||
# don't start mavlink ttyACM0 on aerofc_v1
|
||||
else
|
||||
# Start MAVLink
|
||||
mavlink start -r 800000 -d /dev/ttyACM0 -m config -x
|
||||
fi
|
||||
|
||||
#
|
||||
# Fixed wing setup
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user