7import QGroundControl.Controls
8import QGroundControl.FactControls
11 title: qsTr("RC To Param")
12 buttons: Dialog.Cancel | Dialog.Ok
14 property alias tuningFact: controller.tuningFact
16 onAccepted: QGroundControl.multiVehicleManager.activeVehicle.sendParamMapRC(tuningFact.name, scale.text, centerValue.text, tuningID.currentIndex, minValue.text, maxValue.text)
18 RCToParamDialogController {
23 spacing: ScreenTools.defaultDialogControlSpacing
26 Layout.preferredWidth: mainGrid.width
27 Layout.fillWidth: true
28 wrapMode: Text.WordWrap
29 text: qsTr("Bind an RC Channel to a parameter value. Tuning IDs can be mapped to an RC Channel from Radio Setup page.")
33 Layout.preferredWidth: mainGrid.width
34 Layout.fillWidth: true
35 text: qsTr("Waiting on parameter update from Vehicle.")
36 visible: !controller.ready
42 rowSpacing: ScreenTools.defaultDialogControlSpacing
43 columnSpacing: ScreenTools.defaultDialogControlSpacing
44 enabled: controller.ready
46 QGCLabel { text: qsTr("Parameter") }
47 QGCLabel { text: tuningFact.name }
49 QGCLabel { text: qsTr("Tuning ID") }
52 Layout.fillWidth: true
57 QGCLabel { text: qsTr("Scale") }
60 text: controller.scale.valueString
63 QGCLabel { text: qsTr("Center Value") }
66 text: controller.center.valueString
69 QGCLabel { text: qsTr("Min Value") }
72 text: controller.min.valueString
75 QGCLabel { text: qsTr("Max Value") }
78 text: controller.max.valueString
83 Layout.preferredWidth: mainGrid.width
84 Layout.fillWidth: true
85 wrapMode: Text.WordWrap
86 text: qsTr("Double check that all values are correct prior to confirming dialog.")