From bc506514c91b63ac967b4c0be3f6dd963bb4e3d3 Mon Sep 17 00:00:00 2001 From: Jason Short Date: Tue, 8 Nov 2011 14:10:09 -0800 Subject: [PATCH] fix for SIM GPS --- ArduCopter/system.pde | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ArduCopter/system.pde b/ArduCopter/system.pde index ad738089c9..3edcd92a55 100644 --- a/ArduCopter/system.pde +++ b/ArduCopter/system.pde @@ -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 // ---------------------------------------------