From 04fb087b4184c94e87ab712f8afd462898b2706c Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Mon, 25 Apr 2016 09:39:57 +0200 Subject: [PATCH] Add critical battery setting for PX4 --- src/AutoPilotPlugins/PX4/SafetyComponent.qml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/AutoPilotPlugins/PX4/SafetyComponent.qml b/src/AutoPilotPlugins/PX4/SafetyComponent.qml index eb47642..c519dff 100644 --- a/src/AutoPilotPlugins/PX4/SafetyComponent.qml +++ b/src/AutoPilotPlugins/PX4/SafetyComponent.qml @@ -117,7 +117,7 @@ QGCView { QGCLabel { anchors.baseline: batLowLevelField.baseline width: _middleRowWidth - text: qsTr("Battery Low Level:") + text: qsTr("Battery Warn Level:") } FactTextField { id: batLowLevelField @@ -126,6 +126,19 @@ QGCView { width: _editFieldWidth } } + Row { + QGCLabel { + anchors.baseline: batLowLevelField.baseline + width: _middleRowWidth + text: qsTr("Battery Failsafe Level:") + } + FactTextField { + id: batCritLevelField + fact: controller.getParameterFact(-1, "BAT_CRIT_THR") + showUnits: true + width: _editFieldWidth + } + } } } }