From 05ec8c40c80812027167fbc6158e99d4b7166e23 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Fri, 29 Dec 2017 20:30:01 -0800 Subject: [PATCH] Add BAT_EMERGEN_THR --- src/AutoPilotPlugins/PX4/SafetyComponent.qml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/AutoPilotPlugins/PX4/SafetyComponent.qml b/src/AutoPilotPlugins/PX4/SafetyComponent.qml index 59e07288b..4b9e00dca 100644 --- a/src/AutoPilotPlugins/PX4/SafetyComponent.qml +++ b/src/AutoPilotPlugins/PX4/SafetyComponent.qml @@ -167,10 +167,10 @@ SetupPage { columns: 3 Image { - mipmap: true - fillMode: Image.PreserveAspectFit - source: qgcPal.globalTheme === qgcPal.Light ? "/qmlimages/LowBatteryLight.svg" : "/qmlimages/LowBattery.svg" - Layout.rowSpan: 3 + mipmap: true + fillMode: Image.PreserveAspectFit + source: qgcPal.globalTheme === qgcPal.Light ? "/qmlimages/LowBatteryLight.svg" : "/qmlimages/LowBattery.svg" + Layout.rowSpan: 4 Layout.maximumWidth: _imageWidth Layout.maximumHeight: _imageHeight width: _imageWidth @@ -204,6 +204,15 @@ SetupPage { fact: controller.getParameterFact(-1, "BAT_CRIT_THR") Layout.minimumWidth: _editFieldWidth } + + QGCLabel { + text: qsTr("Battery Emergency Level:") + Layout.fillWidth: true + } + FactTextField { + fact: controller.getParameterFact(-1, "BAT_EMERGEN_THR") + Layout.minimumWidth: _editFieldWidth + } } Item { width: 1; height: _margins; Layout.columnSpan: 3 } -- 2.22.0