2013-03-21 06:14:34 -03:00
|
|
|
#!nsh
|
|
|
|
#
|
|
|
|
# USB MAVLink start
|
|
|
|
#
|
|
|
|
|
2014-03-11 16:04:23 -03:00
|
|
|
mavlink start -r 10000 -d /dev/ttyACM0
|
2014-03-21 06:44:31 -03:00
|
|
|
# Enable a number of interesting streams we want via USB
|
|
|
|
mavlink stream -d /dev/ttyACM0 -s NAMED_VALUE_FLOAT -r 10
|
2014-05-15 03:17:31 -03:00
|
|
|
usleep 1000
|
2014-03-21 06:44:31 -03:00
|
|
|
mavlink stream -d /dev/ttyACM0 -s OPTICAL_FLOW -r 10
|
2014-05-15 03:17:31 -03:00
|
|
|
usleep 1000
|
2014-03-24 06:13:56 -03:00
|
|
|
mavlink stream -d /dev/ttyACM0 -s VFR_HUD -r 20
|
2014-05-15 03:17:31 -03:00
|
|
|
usleep 1000
|
2014-03-24 06:13:56 -03:00
|
|
|
mavlink stream -d /dev/ttyACM0 -s ATTITUDE -r 20
|
2014-05-15 03:17:31 -03:00
|
|
|
usleep 1000
|
2014-03-21 12:48:53 -03:00
|
|
|
mavlink stream -d /dev/ttyACM0 -s ATTITUDE_CONTROLS -r 30
|
2014-05-15 03:17:31 -03:00
|
|
|
usleep 1000
|
2014-05-14 17:13:33 -03:00
|
|
|
mavlink stream -d /dev/ttyACM0 -s SERVO_OUTPUT_RAW_0 -r 20
|
2014-05-15 03:17:31 -03:00
|
|
|
usleep 1000
|
2013-07-18 08:16:34 -03:00
|
|
|
|
2013-03-21 06:14:34 -03:00
|
|
|
# Exit shell to make it available to MAVLink
|
2014-03-23 10:34:15 -03:00
|
|
|
exit
|