rcS: automate tfmini start

disable mavlink on aero telemetry if tfmini enabled and start on mavlink companion device for others (needs SYS_COMPANION to be 0)
This commit is contained in:
ChristophTobler
2018-01-31 11:36:06 +01:00
committed by Lorenz Meier
parent 8a1b6d548f
commit acaf7cd267
2 changed files with 19 additions and 1 deletions
+7 -1
View File
@@ -554,7 +554,13 @@ then
if ver hwcmp AEROFC_V1
then
set MAVLINK_F "-r 1200 -d /dev/ttyS3"
# Only start mavlink if the Benewake TFMini isn't being used
if param greater SENS_EN_TFMINI 0
then
set MAVLINK_F none
else
set MAVLINK_F "-r 1200 -d /dev/ttyS3"
fi
fi
if ver hwcmp CRAZYFLIE