From 8f8ae5bacb430cb41938dd22d4a88dc4a75e9b14 Mon Sep 17 00:00:00 2001 From: James Cotton Date: Mon, 23 Jul 2012 10:01:32 -0500 Subject: [PATCH] For revolution we MUST initialize teh GPS objects all the time or attitude will fail --- flight/Modules/GPS/GPS.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/flight/Modules/GPS/GPS.c b/flight/Modules/GPS/GPS.c index c3d871318..de2dda5a9 100644 --- a/flight/Modules/GPS/GPS.c +++ b/flight/Modules/GPS/GPS.c @@ -138,6 +138,16 @@ int32_t GPSInitialize(void) gpsEnabled = false; #endif +#if defined(REVOLUTION) + // These objects MUST be initialized for Revolution + // because the rest of the system expects to just + // attach to their queues + GPSPositionInitialize(); + GPSVelocityInitialize(); + GPSTimeInitialize(); + HomeLocationInitialize(); +#endif + if (gpsPort && gpsEnabled) { GPSPositionInitialize(); GPSVelocityInitialize();