1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

Revert "Removed Revolution specific code"

This reverts commit d4a401ce3000e18538dcae43d8cf5ad006a003d4.
This commit is contained in:
Stacey Sheldon 2012-08-25 14:57:16 -04:00
parent 431863b0c2
commit e7bf1db165

View File

@ -138,6 +138,17 @@ int32_t GPSInitialize(void)
gpsEnabled = false;
#endif
#if defined(REVOLUTION)
// Revolution expects these objects to always be defined. Not doing so will fail some
// queue connections in navigation
GPSPositionInitialize();
GPSVelocityInitialize();
GPSTimeInitialize();
GPSSatellitesInitialize();
HomeLocationInitialize();
updateSettings();
#else
if (gpsPort && gpsEnabled) {
GPSPositionInitialize();
GPSVelocityInitialize();
@ -150,6 +161,7 @@ int32_t GPSInitialize(void)
#endif
updateSettings();
}
#endif
if (gpsPort && gpsEnabled) {
GPSSettingsInitialize();