From 10df6729f3f4f3d3e5537f613fd23c140dee0b75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Date: Tue, 6 Feb 2018 17:55:03 -0800 Subject: [PATCH] ROMFS: aerofc: Do not start MAVLink in telemetry if LeddarOne is in use --- ROMFS/px4fmu_common/init.d/rcS | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS index 0c1539df9b..ac222ac945 100644 --- a/ROMFS/px4fmu_common/init.d/rcS +++ b/ROMFS/px4fmu_common/init.d/rcS @@ -554,12 +554,16 @@ then if ver hwcmp AEROFC_V1 then - # Only start mavlink if the Benewake TFMini isn't being used + set MAVLINK_F "-r 1200 -d /dev/ttyS3" + + # Only start mavlink if the Benewake TFMini or LeddarOne 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 + if param greater SENS_EN_LEDDAR1 0 + then + set MAVLINK_F none fi fi