aboutsummaryrefslogblamecommitdiff
path: root/ROMFS/px4fmu_common/init.d/rc.usb
blob: 2aeea5cbe75e9aec553a867e850cba36176f4b86 (plain) (tree)
1
2
3
4
5
6
7
8




                   
                                           
 
                                      


                                                         
                                                         
 

                                            
#!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_CONTROLS -r 30

# Exit shell to make it available to MAVLink
exit