Skip to content
Snippets Groups Projects
Commit acaf7cd2 authored by ChristophTobler's avatar ChristophTobler Committed by Lorenz Meier
Browse files

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)
parent 8a1b6d54
No related branches found
No related tags found
No related merge requests found
......@@ -400,6 +400,18 @@ then
then
# start the driver on serial 4/5
tfmini start -d /dev/ttyS6
else
if ver hwcmp AEROFC_V1
then
# start the driver on telemetry
tfmini start -d /dev/ttyS3
else
if param compare SYS_COMPANION 0
then
# start on default mavlink companion device
tfmini start -d /dev/ttyS2
fi
fi
fi
fi
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment