Hotfix for USB: Starting MAVLink only on USB if connected. Needs rewrite of MAVLink and delay / retries for correct approach

This commit is contained in:
Lorenz Meier
2013-09-03 08:17:22 +02:00
parent 791e22f442
commit 2457013bbb
2 changed files with 4 additions and 5 deletions
+4 -4
View File
@@ -63,9 +63,8 @@ then
if sercon
then
echo "USB connected"
else
# second attempt
sercon &
sleep 3
mavlink start -d /dev/ttyACM0 -b 230400
fi
#
@@ -105,7 +104,7 @@ then
fi
# Try to get an USB console
nshterm /dev/ttyACM0 &
#nshterm /dev/ttyACM0 &
#
# Upgrade PX4IO firmware
@@ -219,5 +218,6 @@ then
gps start
fi
# End of autostart
fi