Simplified USB startup script

This commit is contained in:
Lorenz Meier
2013-07-18 16:17:47 +02:00
parent da54659b5e
commit 7106565e94
+22 -18
View File
@@ -15,29 +15,33 @@ then
fi fi
mavlink start -b 230400 -d /dev/ttyACM0 mavlink start -b 230400 -d /dev/ttyACM0
# Start the commander if [ $MODE == autostart ]
commander start
# Start sensors
sh /etc/init.d/rc.sensors
# Start one of the estimators
if attitude_estimator_ekf status
then then
echo "multicopter att filter running"
else # Start the commander
if att_pos_estimator_ekf status commander start
# Start sensors
sh /etc/init.d/rc.sensors
# Start one of the estimators
if attitude_estimator_ekf status
then then
echo "fixedwing att filter running" echo "multicopter att filter running"
else else
attitude_estimator_ekf start if att_pos_estimator_ekf status
then
echo "fixedwing att filter running"
else
attitude_estimator_ekf start
fi
fi fi
fi
# Start GPS # Start GPS
if gps start if gps start
then then
echo "GPS started" echo "GPS started"
fi
fi fi
echo "MAVLink started, exiting shell.." echo "MAVLink started, exiting shell.."