Set the mavlink port settings back to ttyS1 by default.

This commit is contained in:
Helen Oleynikova 2014-03-05 10:56:58 +01:00
parent 1d9d24f605
commit 9ffa5a665a
1 changed files with 2 additions and 4 deletions

View File

@ -387,7 +387,7 @@ then
mavlink start -b 230400 -d /dev/ttyACM0
usleep 5000
else
if [ $TTYS1_BUSY == yes ]
if [ $TTYS1_BUSY == yes -o $ARDRONE == yes]
then
# Start MAVLink on ttyS0, because FMU ttyS1 pins configured as something else
mavlink start -d /dev/ttyS0
@ -397,10 +397,8 @@ then
set EXIT_ON_END yes
else
# Start MAVLink on default port: ttyS1
mavlink start -d /dev/ttyS0
mavlink start
usleep 5000
set EXIT_ON_END yes
fi
fi