Commit c90f9a89 authored by Don Gagne's avatar Don Gagne

parent 978279c6
...@@ -112,13 +112,13 @@ Rectangle { ...@@ -112,13 +112,13 @@ Rectangle {
readonly property string helpText: qsTr("Relative to home altitude") readonly property string helpText: qsTr("Relative to home altitude")
} }
QGCRadioButton { QGCRadioButton {
text: qsTr("Abs") text: qsTr("AMSL")
exclusiveGroup: altRadios exclusiveGroup: altRadios
checked: missionItem.altitudeMode === altModeValue checked: missionItem.altitudeMode === altModeValue
visible: QGroundControl.corePlugin.options.showMissionAbsoluteAltitude || missionItem.altitudeMode === altModeValue visible: QGroundControl.corePlugin.options.showMissionAbsoluteAltitude || missionItem.altitudeMode === altModeValue
readonly property int altModeValue: _altModeAbsolute readonly property int altModeValue: _altModeAbsolute
readonly property string helpText: qsTr("Absolute WGS84") readonly property string helpText: qsTr("Above Mean Sea Level")
} }
QGCRadioButton { QGCRadioButton {
text: qsTr("AGL") text: qsTr("AGL")
...@@ -126,7 +126,7 @@ Rectangle { ...@@ -126,7 +126,7 @@ Rectangle {
checked: missionItem.altitudeMode === altModeValue checked: missionItem.altitudeMode === altModeValue
readonly property int altModeValue: _altModeAboveTerrain readonly property int altModeValue: _altModeAboveTerrain
property string helpText: qsTr("Calculated from terrain data\nAbs Alt ") + missionItem.amslAltAboveTerrain.valueString + " " + missionItem.amslAltAboveTerrain.units property string helpText: qsTr("Calculated from terrain data\nAMSL Alt ") + missionItem.amslAltAboveTerrain.valueString + " " + missionItem.amslAltAboveTerrain.units
} }
QGCRadioButton { QGCRadioButton {
text: qsTr("TerrF") text: qsTr("TerrF")
......
...@@ -64,14 +64,14 @@ ...@@ -64,14 +64,14 @@
}, },
{ {
"name": "altitudeRelative", "name": "altitudeRelative",
"shortDescription": "Altitude-rel", "shortDescription": "Alt (Rel)",
"type": "double", "type": "double",
"decimalPlaces": 1, "decimalPlaces": 1,
"units": "m" "units": "m"
}, },
{ {
"name": "altitudeAMSL", "name": "altitudeAMSL",
"shortDescription": "Altitude", "shortDescription": "Alt (AMSL)",
"type": "double", "type": "double",
"decimalPlaces": 1, "decimalPlaces": 1,
"units": "m" "units": "m"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment