aboutsummaryrefslogblamecommitdiff
path: root/ROMFS/px4fmu_common/init.d/rc.usb
blob: 2af790fc4309a44fb94153fad698ab3441238c2e (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_CONTROL -r 30

# Exit shell to make it available to MAVLink
exit