mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 16:08:53 +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.
15 lines
469 B
Bash
15 lines
469 B
Bash
#!/bin/sh
|
|
#
|
|
# av_x1-v1 specific board MAVLink startup script.
|
|
#------------------------------------------------------------------------------
|
|
|
|
# AV-X: start MAVLink to companion (connected to TX2)
|
|
mavlink start -d /dev/ttyS5 -b 500000 -m osd
|
|
mavlink stream -d /dev/ttyS5 -s HIGHRES_IMU -r 250
|
|
mavlink stream -d /dev/ttyS5 -s CAMERA_TRIGGER -r 100
|
|
mavlink stream -d /dev/ttyS5 -s LOCAL_POSITION_NED -r 50
|
|
|
|
|
|
# AV-X: start MAVLink UDP port 14570
|
|
mavlink start -x -u 14570
|