mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-03 11:24:10 +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;
|
gpsEnabled = false;
|
||||||
#endif
|
#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) {
|
if (gpsPort && gpsEnabled) {
|
||||||
GPSPositionInitialize();
|
GPSPositionInitialize();
|
||||||
GPSVelocityInitialize();
|
GPSVelocityInitialize();
|
||||||
|
Loading…
Reference in New Issue
Block a user