mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-11 23:31:36 +08:00
Co-authored-by: Julian Oes <julian@oes.ch> Co-authored-by: Daniel Agar <daniel@agar.ca>
20 lines
585 B
Bash
20 lines
585 B
Bash
#!/bin/sh
|
|
#
|
|
# board specific MAVLink startup script.
|
|
#------------------------------------------------------------------------------
|
|
|
|
set GIMBAL_TTY /dev/ttyS3
|
|
set MAV_RATE 40000
|
|
set BAUDRATE 500000
|
|
|
|
mavlink start -r ${MAV_RATE} -d ${GIMBAL_TTY} -b ${BAUDRATE}
|
|
mavlink stream -d ${GIMBAL_TTY} -s SYSTEM_TIME -r 0.5
|
|
mavlink stream -d ${GIMBAL_TTY} -s AUTOPILOT_STATE_FOR_GIMBAL_DEVICE -r 20
|
|
mavlink stream -d ${GIMBAL_TTY} -s GIMBAL_DEVICE_SET_ATTITUDE -r 20
|
|
|
|
# optical flow
|
|
mavlink start -d /dev/ttyS2 -m custom -b 500000
|
|
|
|
# Start MAVLink on the USB port
|
|
mavlink start -d /dev/ttyACM0
|