mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-30 04:06:33 +08:00
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:
@@ -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
|
||||||
Reference in New Issue
Block a user