Skip to content

Commit

Permalink
Fixed compiling with GPSD 3.19 (API 8.0; fix #733)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-w committed Aug 4, 2019
1 parent cdb46cf commit ce26d74
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/core/StelLocationMgr.cpp
Expand Up @@ -163,7 +163,15 @@ void LibGPSLookupHelper::query()
qDebug() << " - xdop:" << dop.xdop << "ydop:" << dop.ydop;
qDebug() << " - pdop:" << dop.pdop << "hdop:" << dop.hdop;
qDebug() << " - vdop:" << dop.vdop << "tdop:" << dop.tdop << "gdop:" << dop.gdop;
// GPSD API 8.0:
// * Remove epe from gps_data_t, it duplicates gps_fix_t eph
// * Added sep (estimated spherical error, 3D)
// Details: https://github.com/Stellarium/stellarium/issues/733
#if GPSD_API_MAJOR_VERSION >= 8
qDebug() << "Spherical Position Error (sep):" << newdata->sep;
#else
qDebug() << "Spherical Position Error (epe):" << newdata->epe;
#endif
}
loc.longitude=newdata->fix.longitude;
loc.latitude=newdata->fix.latitude;
Expand Down

0 comments on commit ce26d74

Please sign in to comment.