mirror of
https://github.com/oe7drt/YSFClients.git
synced 2026-04-17 04:03:57 +00:00
altMSL appeared in API 9.
This commit is contained in:
parent
983058fde1
commit
1ce3d6d186
1 changed files with 4 additions and 0 deletions
|
|
@ -306,7 +306,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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue