Browse Source

Use correct terminology for Altitude values

QGC4.4
Don Gagne 7 years ago
parent
commit
c90f9a89b9
  1. 6
      src/PlanView/SimpleItemEditor.qml
  2. 4
      src/Vehicle/VehicleFact.json

6
src/PlanView/SimpleItemEditor.qml

@ -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 {
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")

4
src/Vehicle/VehicleFact.json

@ -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"

Loading…
Cancel
Save