aboutsummaryrefslogtreecommitdiff
path: root/src/Altimeter.qml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Altimeter.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Altimeter.qml b/src/Altimeter.qml
index ae71493..3ee11ac 100644
--- a/src/Altimeter.qml
+++ b/src/Altimeter.qml
@@ -44,13 +44,13 @@ Item {
id: pressureText
anchors.centerIn: parent
horizontalAlignment: Text.AlignHCenter
- text: Math.round(pressureSensor.reading.pressure/12 + altimeterOffset.value)
+ text: Math.round(-pressureSensor.reading.pressure/12 + altimeterOffset.value)
font.pixelSize: parent.height / 4
}
ConfigurationValue {
id: altimeterOffset
key: "/org/asteroidos/sensors/altimeter-offset"
- defaultValue: -8443
+ defaultValue: 8443
}
Label {
anchors.horizontalCenter: parent.horizontalCenter