Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add new field for geoid-ellipsoid diff
- Loading branch information
|
@@ -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; |
|
|
} |
|
|
Oops, something went wrong.