--- src/core/StelLocationMgr.cpp.orig
+++ src/core/StelLocationMgr.cpp
// emit queryError("GPSD query: No Fix.");
+#if GPSD_API_MAJOR_VERSION < 9
if (newdata->online==0.0) // no device?
+ if (newdata->online.tv_sec == 0 && newdata->online.tv_nsec == 0) // no device?
// This can happen when unplugging the GPS while running Stellarium,
// or running gpsd with no GPS receiver.
//qDebug() << "newdata->online=" << newdata->online;
qDebug() << "Solution from " << newdata->satellites_used << "out of " << newdata->satellites_visible << " visible Satellites.";
+#if GPSD_API_MAJOR_VERSION < 9
qDebug() << "GPSD data: Long" << newdata->fix.longitude << "Lat" << newdata->fix.latitude << "Alt" << newdata->fix.altitude;
+ qDebug() << "GPSD data: Long" << newdata->fix.longitude << "Lat" << newdata->fix.latitude << "Alt" << newdata->fix.altHAE;
qDebug() << "Dilution of Precision:";
qDebug() << " - xdop:" << dop.xdop << "ydop:" << dop.ydop;
qDebug() << " - pdop:" << dop.pdop << "hdop:" << dop.hdop;
+#if GPSD_API_MAJOR_VERSION < 9
loc.altitude=static_cast<int>(newdata->fix.altitude);
+ loc.altitude=static_cast<int>(newdata->fix.altHAE);
qDebug() << "GPSDfix " << fixmode << ": Location" << QString("lat %1, long %2, alt %3").arg(loc.latitude).arg(loc.longitude).arg(loc.altitude);