MAVLink: Always enable forwarding for companion link

This commit is contained in:
Lorenz Meier
2017-07-27 10:15:53 +02:00
committed by Sander Smeets
parent c44322ca15
commit 9124617315
+6 -6
View File
@@ -643,7 +643,7 @@ then
# Exit from nsh to free port for mavlink # Exit from nsh to free port for mavlink
set EXIT_ON_END yes set EXIT_ON_END yes
else else
set MAVLINK_F "-r 1200" set MAVLINK_F "-r 1200 -f"
# Avoid using ttyS1 for MAVLink on FMUv4 # Avoid using ttyS1 for MAVLink on FMUv4
if ver hwcmp PX4FMU_V4 if ver hwcmp PX4FMU_V4
then then
@@ -691,15 +691,15 @@ then
fi fi
if param compare SYS_COMPANION 921600 if param compare SYS_COMPANION 921600
then then
mavlink start -d ${MAVLINK_COMPANION_DEVICE} -b 921600 -m onboard -r 80000 -x mavlink start -d ${MAVLINK_COMPANION_DEVICE} -b 921600 -m onboard -r 80000 -x -f
fi fi
if param compare SYS_COMPANION 57600 if param compare SYS_COMPANION 57600
then then
mavlink start -d ${MAVLINK_COMPANION_DEVICE} -b 57600 -m onboard -r 5000 -x mavlink start -d ${MAVLINK_COMPANION_DEVICE} -b 57600 -m onboard -r 5000 -x -f
fi fi
if param compare SYS_COMPANION 460800 if param compare SYS_COMPANION 460800
then then
mavlink start -d ${MAVLINK_COMPANION_DEVICE} -b 460800 -m onboard -r 5000 -x mavlink start -d ${MAVLINK_COMPANION_DEVICE} -b 460800 -m onboard -r 5000 -x -f
fi fi
if param compare SYS_COMPANION 157600 if param compare SYS_COMPANION 157600
then then
@@ -707,7 +707,7 @@ then
fi fi
if param compare SYS_COMPANION 257600 if param compare SYS_COMPANION 257600
then then
mavlink start -d ${MAVLINK_COMPANION_DEVICE} -b 57600 -m magic -r 5000 -x mavlink start -d ${MAVLINK_COMPANION_DEVICE} -b 57600 -m magic -r 5000 -x -f
fi fi
if param compare SYS_COMPANION 319200 if param compare SYS_COMPANION 319200
then then
@@ -736,7 +736,7 @@ then
fi fi
if param compare SYS_COMPANION 1500000 if param compare SYS_COMPANION 1500000
then then
mavlink start -d ${MAVLINK_COMPANION_DEVICE} -b 1500000 -m onboard -r 10000 -x mavlink start -d ${MAVLINK_COMPANION_DEVICE} -b 1500000 -m onboard -r 10000 -x -f
fi fi
fi fi