mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 21:43:33 +08:00
Initialize MAVLink on v5X variants
This will ensure that the different baseboard configurations are properly accounted for depending on HW variants.
This commit is contained in:
@@ -3,5 +3,11 @@
|
|||||||
# PX4 FMUv5X specific board MAVLink startup script.
|
# 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 -x -z
|
||||||
|
else
|
||||||
# Start MAVLink on the USB port
|
# Start MAVLink on the USB port
|
||||||
mavlink start -d /dev/ttyACM0
|
mavlink start -d /dev/ttyACM0
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user