rc.mavlink:NXPhlite Mavlink on ttyS4 and ttyACM only

NXPhlite does not have a companion link. So start
    Mavlink on ttyS4 and ttyACM only.
This commit is contained in:
David Sidrane
2018-08-20 16:00:30 -07:00
parent 2c282d0e0e
commit 46b563fe3a
+5 -1
View File
@@ -19,7 +19,8 @@ fi
if ver hwcmp NXPHLITE_V3 if ver hwcmp NXPHLITE_V3
then then
set MAVLINK_COMPANION_DEVICE /dev/ttyS4 set MAVLINK_COMPANION_DEVICE none
set MAVLINK_F "-r 1200 -d /dev/ttyS4"
fi fi
if ver hwcmp OMNIBUS_F4SD if ver hwcmp OMNIBUS_F4SD
@@ -82,6 +83,8 @@ fi
# #
# XXX We need a better way for runtime eval of shell variables, # XXX We need a better way for runtime eval of shell variables,
# but this works for now # but this works for now
if [ "x${MAVLINK_COMPANION_DEVICE}" != xnone ]
then
if param compare SYS_COMPANION 10 if param compare SYS_COMPANION 10
then then
frsky_telemetry start -d ${MAVLINK_COMPANION_DEVICE} frsky_telemetry start -d ${MAVLINK_COMPANION_DEVICE}
@@ -211,3 +214,4 @@ if param compare SYS_COMPANION 1500000
then then
mavlink start -d ${MAVLINK_COMPANION_DEVICE} -b 1500000 -m onboard -r 140000 -x -f mavlink start -d ${MAVLINK_COMPANION_DEVICE} -b 1500000 -m onboard -r 140000 -x -f
fi fi
fi