1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-02 10:24:11 +01:00

For revolution we MUST initialize teh GPS objects all the time or attitude will

fail
This commit is contained in:
James Cotton 2012-07-23 10:01:32 -05:00
parent 7522bd07ba
commit 8f8ae5bacb

View File

@ -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();