mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 14:57:35 +08:00
6d78054f50
- no longer start sercon or mavlink usb by default - on USB connection (VBUS) monitor serial USB at low rate and start Mavlink if there's a HEARTBEAT or nshterm on 3 consecutive carriage returns - the mavlink USB instance is automatically stopped and serdis executed if USB is disconnected - skipping Mavlink USB (and sercon) saves a considerable amount of memory on older boards
11 lines
281 B
Bash
11 lines
281 B
Bash
#!/bin/sh
|
|
#
|
|
# Board specific MAVLink startup script.
|
|
#------------------------------------------------------------------------------
|
|
|
|
# Start ADS-B receiver mavlink connection if console not present
|
|
if [ ! -e /dev/console ]
|
|
then
|
|
mavlink start -d /dev/ttyS4 -b 57600 -m minimal
|
|
fi
|