6import QGroundControl.Controls
7import QGroundControl.FactControls
11 visible: tabBar.currentIndex === 2
13 property var missionItem
16 Layout.preferredWidth: childrenRect.width
17 Layout.preferredHeight: childrenRect.height
21 var updateFunction = function(altMode){ missionItem.cameraCalc.distanceMode = altMode }
22 removeModes.push(QGroundControl.AltitudeModeMixed)
23 if (!missionItem.masterController.controllerVehicle.supports.terrainFrame) {
24 removeModes.push(QGroundControl.AltitudeModeTerrainFrame)
26 if (!QGroundControl.corePlugin.options.showMissionAbsoluteAltitude || !_missionItem.cameraCalc.isManualCamera) {
27 removeModes.push(QGroundControl.AltitudeModeAbsolute)
29 altModeDialogFactory.open({ rgRemoveModes: removeModes, updateAltModeFn: updateFunction })
32 QGCPopupDialogFactory {
33 id: altModeDialogFactory
35 dialogComponent: altModeDialogComponent
38 Component { id: altModeDialogComponent; AltModeDialog { } }
41 spacing: ScreenTools.defaultFontPixelWidth / 2
43 QGCLabel { text: QGroundControl.altitudeModeShortDescription(missionItem.cameraCalc.distanceMode) }
45 height: ScreenTools.defaultFontPixelHeight / 2
47 source: "/res/DropArrow.svg"
54 Layout.fillWidth: true
55 columnSpacing: _margin
58 enabled: missionItem.cameraCalc.distanceMode === QGroundControl.AltitudeModeCalcAboveTerrain
60 QGCLabel { text: qsTr("Tolerance") }
62 fact: missionItem.terrainAdjustTolerance
63 Layout.fillWidth: true
66 QGCLabel { text: qsTr("Max Climb Rate") }
68 fact: missionItem.terrainAdjustMaxClimbRate
69 Layout.fillWidth: true
72 QGCLabel { text: qsTr("Max Descent Rate") }
74 fact: missionItem.terrainAdjustMaxDescentRate
75 Layout.fillWidth: true