mirror of https://github.com/ArduPilot/ardupilot
fix for SIM GPS
This commit is contained in:
parent
db99b664df
commit
b29f4456c4
|
@ -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
|
||||
// ---------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue