Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0c698ba

Browse files
committed
AV-X mavlink network and companion defaults
- start mavlink on network by default (port 14570) - start mavlink for TX2 companion by default
1 parent e43caef commit 0c698ba

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ROMFS/px4fmu_common/init.d/rc.mavlink

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ then
1717
mavlink start -r 20000 -b 921600 -d /dev/ttyS0
1818
fi
1919

20+
if ver hwcmp AV_X_V1
21+
then
22+
# AV-X: start MAVLink to companion (connected to TX2)
23+
mavlink start -d /dev/ttyS5 -r 80000 -b 921600 -m onboard
24+
25+
# AV-X: start MAVLink UDP port 14570
26+
mavlink start -x -u 14570
27+
fi
2028

2129
#
2230
# SYS_COMPANION transition support. Can be removed after the next release (currently at 1.8.0)

0 commit comments

Comments
 (0)