Skip to content
Permalink
Browse files

Add new field for geoid-ellipsoid diff

  • Loading branch information
m-kuhn authored and nyalldawson committed Jan 12, 2021
1 parent 1656ef2 commit 74d053242eaecc029e2855e02f73aef3196c8c88
@@ -64,6 +64,8 @@ Encapsulates information relating to a GPS position fix.

double elevation;

double elevation_diff;

double speed;


@@ -908,6 +908,7 @@ void QgsGpsInformationWidget::displayGPSInformation( const QgsGpsInformation &in
mTxtLatitude->setText( QString::number( info.latitude, 'f', 8 ) );
mTxtLongitude->setText( QString::number( info.longitude, 'f', 8 ) );
mTxtAltitude->setText( tr( "%1 m" ).arg( info.elevation, 0, 'f', 3 ) );
mTxtAltitudeDiff->setText( tr( "%1 m" ).arg( info.elevation_diff, 0, 'f', 3 ) );

if ( mDateTimeFormat.isEmpty() )
{
@@ -128,6 +128,12 @@ class CORE_EXPORT QgsGpsInformation
*/
double elevation = 0;

/**
* Geoidal separation (Diff. between WGS-84 earth ellipsoid and
* mean sea level. -=geoid is below WGS-84 ellipsoid)
*/
double elevation_diff = 0;

/**
* Ground speed, in km/h.
*/
@@ -188,6 +188,7 @@ void QgsNmeaConnection::processGgaSentence( const char *data, int len )
mLastGPSInformation.longitude = nmea_ndeg2degree( longitude );
mLastGPSInformation.latitude = nmea_ndeg2degree( latitude );
mLastGPSInformation.elevation = result.elv;
mLastGPSInformation.elevation_diff = result.diff;
mLastGPSInformation.quality = result.sig;
mLastGPSInformation.satellitesUsed = result.satinuse;
}

0 comments on commit 74d0532

Please sign in to comment.
You can’t perform that action at this time.