Commit af9784c4 authored by Don Gagne's avatar Don Gagne

parent c0ea93e9
...@@ -41,6 +41,7 @@ Rectangle { ...@@ -41,6 +41,7 @@ Rectangle {
property string _setToVehicleHeadingStr: qsTr("Set to vehicle heading") property string _setToVehicleHeadingStr: qsTr("Set to vehicle heading")
property string _setToVehicleLocationStr: qsTr("Set to vehicle location") property string _setToVehicleLocationStr: qsTr("Set to vehicle location")
property bool _showCameraSection: !_missionVehicle.apmFirmware property bool _showCameraSection: !_missionVehicle.apmFirmware
property int _altitudeMode: missionItem.altitudesAreRelative ? QGroundControl.AltitudeModeRelative : QGroundControl.AltitudeModeAbsolute
ExclusiveGroup { id: distanceGlideGroup } ExclusiveGroup { id: distanceGlideGroup }
...@@ -66,11 +67,25 @@ Rectangle { ...@@ -66,11 +67,25 @@ Rectangle {
Item { width: 1; height: _spacer } Item { width: 1; height: _spacer }
FactTextFieldGrid { GridLayout {
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
factList: [ missionItem.loiterAltitude, missionItem.loiterRadius ] columns: 2
factLabels: [ qsTr("Altitude"), qsTr("Radius") ]
QGCLabel { text: qsTr("Altitude") }
AltitudeFactTextField {
Layout.fillWidth: true
fact: missionItem.loiterAltitude
altitudeMode: _altitudeMode
}
QGCLabel { text: qsTr("Radius") }
FactTextField {
Layout.fillWidth: true
fact: missionItem.loiterRadius
}
} }
Item { width: 1; height: _spacer } Item { width: 1; height: _spacer }
...@@ -115,9 +130,10 @@ Rectangle { ...@@ -115,9 +130,10 @@ Rectangle {
QGCLabel { text: qsTr("Altitude") } QGCLabel { text: qsTr("Altitude") }
FactTextField { AltitudeFactTextField {
Layout.fillWidth: true Layout.fillWidth: true
fact: missionItem.landingAltitude fact: missionItem.landingAltitude
altitudeMode: _altitudeMode
} }
QGCRadioButton { QGCRadioButton {
......
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