mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-13 23:51:37 +08:00
-moved rc.mavlink to the boards optional rc additions (now it's called rc.board_mavlink) to handle board specific mavlink needs (mavlink over usb, ethernet, additional streams, etc.) -mavlink module will be responsible to usb defaults, therefore less args are needed to be passed to mavlink module if one wants to use mavlink over usb. -the way to check if connection is usb is by it's designated variable and not by config mode.
14 lines
384 B
Bash
14 lines
384 B
Bash
#!/bin/sh
|
|
#
|
|
# PX4 FMUv4 specific board MAVLink startup script.
|
|
#------------------------------------------------------------------------------
|
|
|
|
# Start MAVLink on the USB port
|
|
mavlink start -d /dev/ttyACM0
|
|
|
|
# Pixracer: start MAVLink on Wifi (ESP8266 port). Except for the TealOne airframe.
|
|
if ! param compare SYS_AUTOSTART 4250
|
|
then
|
|
mavlink start -r 20000 -b 921600 -d /dev/ttyS0
|
|
fi
|