ROMFS: Start GPS driver before Commander so that preflight check can be run

This commit is contained in:
Johan Jansen
2015-05-14 19:18:05 +02:00
parent 6b285a73bb
commit c0a9e08a30
+13 -13
View File
@@ -301,6 +301,18 @@ then
# Sensors System (start before Commander so Preflight checks are properly run)
#
sh /etc/init.d/rc.sensors
if [ $GPS == yes ]
then
if [ $GPS_FAKE == yes ]
then
echo "[i] Faking GPS"
gps start -f
else
gps start
fi
fi
unset GPS_FAKE
# Needs to be this early for in-air-restarts
commander start
@@ -472,22 +484,10 @@ then
sh /etc/init.d/rc.uavcan
#
# Logging, GPS
# Logging
#
sh /etc/init.d/rc.logging
if [ $GPS == yes ]
then
if [ $GPS_FAKE == yes ]
then
echo "[i] Faking GPS"
gps start -f
else
gps start
fi
fi
unset GPS_FAKE
#
# Start up ARDrone Motor interface
#