mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
Start shell only if SD card not present
This commit is contained in:
@@ -60,9 +60,6 @@ unset FRC
|
|||||||
|
|
||||||
if [ $MODE == autostart ]
|
if [ $MODE == autostart ]
|
||||||
then
|
then
|
||||||
# Try to get an USB console
|
|
||||||
# REBOOTWORK this needs to start after the flight control loop
|
|
||||||
nshterm /dev/ttyACM0 &
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start the ORB (first app to start)
|
# Start the ORB (first app to start)
|
||||||
@@ -844,6 +841,15 @@ then
|
|||||||
px4flow start &
|
px4flow start &
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Start USB shell if no microSD present, MAVLink else
|
||||||
|
if [ $LOG_FILE == /dev/null ]
|
||||||
|
then
|
||||||
|
# Try to get an USB console
|
||||||
|
nshterm /dev/ttyACM0 &
|
||||||
|
else
|
||||||
|
mavlink start -r 800000 -d /dev/ttyACM0 -m config -x
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $EXIT_ON_END == yes ]
|
if [ $EXIT_ON_END == yes ]
|
||||||
then
|
then
|
||||||
echo "Exit from nsh"
|
echo "Exit from nsh"
|
||||||
|
|||||||
Reference in New Issue
Block a user