From bae413a332f87baf2f936cd395a93334484156ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Thu, 22 Jun 2023 11:00:31 +0200 Subject: [PATCH] v6x: start mavlink on TELEM2 for skynode Equivalent to v5x --- boards/px4/fmu-v5x/init/rc.board_mavlink | 3 +++ boards/px4/fmu-v6x/init/rc.board_mavlink | 13 +++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 boards/px4/fmu-v6x/init/rc.board_mavlink diff --git a/boards/px4/fmu-v5x/init/rc.board_mavlink b/boards/px4/fmu-v5x/init/rc.board_mavlink index dad84376ce..ae59f79dff 100644 --- a/boards/px4/fmu-v5x/init/rc.board_mavlink +++ b/boards/px4/fmu-v5x/init/rc.board_mavlink @@ -7,4 +7,7 @@ if ver hwtypecmp V5X009000 V5X009001 V5X00a000 V5X00a001 V5X008000 V5X008001 V5X then # Start MAVLink on the UART connected to the mission computer mavlink start -d /dev/ttyS4 -b 3000000 -r 290000 -m onboard_low_bandwidth -x -z + + # Ensure nothing else starts on TEL2 (ttyS4) + set PRT_TEL2_ 1 fi diff --git a/boards/px4/fmu-v6x/init/rc.board_mavlink b/boards/px4/fmu-v6x/init/rc.board_mavlink new file mode 100644 index 0000000000..6001553a76 --- /dev/null +++ b/boards/px4/fmu-v6x/init/rc.board_mavlink @@ -0,0 +1,13 @@ +#!/bin/sh +# +# PX4 FMUv6X specific board MAVLink startup script. +#------------------------------------------------------------------------------ + +# if skynode base board is detected start Mavlink on Telem2 +if ver hwtypecmp V6X009010 V6X010010 +then + mavlink start -d /dev/ttyS4 -b 3000000 -r 290000 -m onboard_low_bandwidth -x -z + + # Ensure nothing else starts on TEL2 (ttyS4) + set PRT_TEL2_ 1 +fi