1
0
mirror of https://github.com/ShaYmez/NXDNClients.git synced 2025-04-14 07:18:46 -04:00

altMSL appeared in API 9.

This commit is contained in:
Daniel Caujolle-Bert 2020-06-24 12:04:51 +02:00
parent bbf9b20021
commit 905469207a
No known key found for this signature in database
GPG Key ID: A7B7A4BEAA82789B

View File

@ -249,7 +249,11 @@ void CAPRSWriter::sendIdFrameMobile()
float rawLatitude = float(m_gpsdData.fix.latitude);
float rawLongitude = float(m_gpsdData.fix.longitude);
#if GPSD_API_MAJOR_VERSION >= 9
float rawAltitude = float(m_gpsdData.fix.altMSL);
#else
float rawAltitude = float(m_gpsdData.fix.altitude);
#endif
float rawVelocity = float(m_gpsdData.fix.speed);
float rawBearing = float(m_gpsdData.fix.track);