5import QGroundControl.Controls
6import QGroundControl.FactControls
9 FactPanelController { id: controller }
11 property Fact batt1Monitor: controller.getParameterFact(-1, "BATT_MONITOR")
12 property string disabledString: qsTr("- disabled")
15 Layout.fillWidth: true
16 heading: qsTr("Low Voltage Failsafe")
17 visible: batt1Monitor.rawValue !== 0
19 LabelledFactComboBox {
20 label: qsTr("Vehicle Action")
21 fact: controller.getParameterFact(-1, "BATT_FS_LOW_ACT")
26 Layout.fillWidth: true
27 label: qsTr("Voltage Trigger") + (value == 0 ? disabledString : "")
28 fact: controller.getParameterFact(-1, "BATT_LOW_VOLT")
35 Layout.fillWidth: true
36 label: qsTr("mAh Trigger") + (value == 0 ? disabledString : "")
37 fact: controller.getParameterFact(-1, "BATT_LOW_MAH")
40 majorTickStepSize: 1000
45 Layout.fillWidth: true
46 heading: qsTr("Critical Voltage Failsafe")
47 visible: batt1Monitor.rawValue !== 0
49 LabelledFactComboBox {
50 label: qsTr("Vehicle Action")
51 fact: controller.getParameterFact(-1, "BATT_FS_CRT_ACT")
56 Layout.fillWidth: true
57 label: qsTr("Voltage Trigger") + (value == 0 ? disabledString : "")
58 fact: controller.getParameterFact(-1, "BATT_CRT_VOLT")
65 Layout.fillWidth: true
66 label: qsTr("mAh Trigger") + (value == 0 ? disabledString : "")
67 fact: controller.getParameterFact(-1, "BATT_CRT_MAH")
70 majorTickStepSize: 1000