QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
PX4BatteryIndicator.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Layouts
3
4import QGroundControl
5import QGroundControl.Controls
6import QGroundControl.FactControls
7
8SettingsGroupLayout {
9 Layout.fillWidth: true
10 heading: qsTr("Low Battery Failsafe")
11
12 FactPanelController { id: controller }
13
14 LabelledFactComboBox {
15 label: qsTr("Vehicle Action")
16 fact: controller.getParameterFact(-1, "COM_LOW_BAT_ACT")
17 indexModel: false
18 }
19
20 FactSlider {
21 Layout.fillWidth: true
22 label: qsTr("Warning Level")
23 fact: controller.getParameterFact(-1, "BAT_LOW_THR")
24 majorTickStepSize: 5
25 }
26
27 FactSlider {
28 Layout.fillWidth: true
29 label: qsTr("Critical Level")
30 fact: controller.getParameterFact(-1, "BAT_CRIT_THR")
31 majorTickStepSize: 5
32 }
33
34 FactSlider {
35 Layout.fillWidth: true
36 label: qsTr("Emergency Level")
37 fact: controller.getParameterFact(-1, "BAT_EMERGEN_THR")
38 majorTickStepSize: 5
39 }
40}