forked from Archive/PX4-Autopilot
16 lines
392 B
Plaintext
16 lines
392 B
Plaintext
#!nsh
|
|
#
|
|
# USB MAVLink start
|
|
#
|
|
|
|
echo "Starting MAVLink on this USB console"
|
|
|
|
mavlink start -r 10000 -d /dev/ttyACM0
|
|
# Enable a number of interesting streams we want via USB
|
|
mavlink stream -d /dev/ttyACM0 -s NAMED_VALUE_FLOAT -r 10
|
|
mavlink stream -d /dev/ttyACM0 -s OPTICAL_FLOW -r 10
|
|
mavlink stream -d /dev/ttyACM0 -s ATTITUDE_CONTROL -r 30
|
|
|
|
# Exit shell to make it available to MAVLink
|
|
exit
|