Merge pull request #2175 from Zefz/preflight_gps_check

Preflight: GPS check
This commit is contained in:
Lorenz Meier
2015-05-19 10:10:46 +02:00
7 changed files with 119 additions and 39 deletions

View File

@@ -302,6 +302,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
@@ -479,22 +491,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
#