Set startup script to do mavlinks.

This commit is contained in:
Helen Oleynikova 2014-04-10 09:08:47 +02:00
parent e99291d825
commit 7b85c45555
1 changed files with 10 additions and 2 deletions

View File

@ -410,7 +410,7 @@ then
if [ $TTYS1_BUSY == yes ]
then
# Start MAVLink on ttyS0, because FMU ttyS1 pins configured as something else
set MAVLINK_FLAGS "-r 1000 -d /dev/ttyS0 -b 115200"
set MAVLINK_FLAGS "-r 1000 -d /dev/ttyS0 -b 57600"
# Exit from nsh to free port for mavlink
set EXIT_ON_END yes
@ -421,8 +421,16 @@ then
fi
fi
# Main mavlink
mavlink start $MAVLINK_FLAGS
# Optical Flow
mavlink start -d /dev/ttyS3 -m custom -b 115200
# Android board
#mavlink start -d /dev/ttyS2 -m custom -b 115200
#mavlink stream -d /dev/ttyS2 -s LOCAL_POSITION_NED -r 5
#mavlink stream -d /dev/ttyS2 -s ATTITUDE -r 50
#mavlink stream -d /dev/ttyS2 -s VICON_POSITION_ESTIMATE -r 50
#
# Start the datamanager
#