mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
This changes the default mavlink message set from onboard to onboard_low_bandwidth, which drastically reduces the bandwidth required to get a usable connection.
14 lines
397 B
Bash
14 lines
397 B
Bash
#!/bin/sh
|
|
#
|
|
# PX4 FMUv5X specific board MAVLink startup script.
|
|
#------------------------------------------------------------------------------
|
|
|
|
if ver hwtypecmp V5Xa0 V5X91 V5Xa1
|
|
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
|
|
else
|
|
# Start MAVLink on the USB port
|
|
mavlink start -d /dev/ttyACM0
|
|
fi
|