6import QGroundControl.Controls
7import QGroundControl.FactControls
10 spacing: ScreenTools.defaultFontPixelHeight / 2
12 FactPanelController { id: controller }
15 heading: qsTr("Ground Control Comm Loss Failsafe")
16 Layout.fillWidth: true
18 LabelledFactComboBox {
19 label: qsTr("Vehicle Action")
20 fact: controller.getParameterFact(-1, "FS_GCS_ENABLE")
25 Layout.fillWidth: true
26 Layout.preferredWidth: ScreenTools.defaultFontPixelWidth * 20
27 label: qsTr("Loss Timeout")
28 fact: controller.getParameterFact(-1, "FS_GCS_TIMEOUT")
34 heading: qsTr("Failsafe Options")
35 Layout.fillWidth: true
39 model: fact ? fact.bitmaskStrings : []
41 property Fact fact: controller.getParameterFact(-1, "FS_OPTIONS")
44 Layout.fillWidth: true
46 checked: fact.value & fact.bitmaskValues[index]
48 property Fact fact: repeater.fact
54 fact.value |= fact.bitmaskValues[index]
56 fact.value &= ~fact.bitmaskValues[index]