Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/qml/gps/MMGpsDataDrawer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ MMComponents.MMDrawer {
if ( !PositionKit.hasPosition || Number.isNaN( PositionKit.altitude ) ) {
return qsTr( "N/A" )
}
__inputUtils.formatNumber( PositionKit.altitude, 2 ) + " m"
__inputUtils.formatNumber( PositionKit.altitude - AppSettings.gpsAntennaHeight, 2 ) + " m"
}

alignmentRight: Positioner.index % 2 === 1
Expand Down
2 changes: 1 addition & 1 deletion app/variablesmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ QgsExpressionContextScope *VariablesManager::positionScope()
addPositionVariable( scope, QStringLiteral( "coordinate" ), QVariant::fromValue<QgsGeometry>( point ) );
addPositionVariable( scope, QStringLiteral( "longitude" ), position.longitude );
addPositionVariable( scope, QStringLiteral( "latitude" ), position.latitude );
addPositionVariable( scope, QStringLiteral( "altitude" ), position.elevation );
addPositionVariable( scope, QStringLiteral( "altitude" ), position.elevation - mPositionKit->antennaHeight() );
addPositionVariable( scope, QStringLiteral( "geoid_separation" ), position.elevation_diff );
addPositionVariable( scope, QStringLiteral( "horizontal_accuracy" ), getGeoPositionAttribute( position.hacc ) );
addPositionVariable( scope, QStringLiteral( "vertical_accuracy" ), getGeoPositionAttribute( position.vacc ) );
Expand Down