mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-13 15:07:34 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user