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:
parent
7522bd07ba
commit
8f8ae5bacb
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user