fix for SIM GPS

This commit is contained in:
Jason Short 2011-11-08 14:10:09 -08:00
parent db99b664df
commit b29f4456c4
1 changed files with 4 additions and 0 deletions

View File

@ -253,6 +253,7 @@ static void init_ardupilot()
GPS_enabled = false;
#if HIL_MODE == HIL_MODE_DISABLED
// Read in the GPS
for (byte counter = 0; ; counter++) {
g_gps->update();
@ -266,6 +267,9 @@ static void init_ardupilot()
break;
}
}
#else
GPS_enabled = true;
#endif
// lengthen the idle timeout for gps Auto_detect
// ---------------------------------------------