From b89d3de2e611265d9534385623cf5291baa0622d Mon Sep 17 00:00:00 2001 From: dogmaphobic Date: Sat, 4 Jul 2015 11:58:02 -0400 Subject: [PATCH] Warning and explanation for voltage drop. --- src/AutoPilotPlugins/PX4/PowerComponent.qml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/AutoPilotPlugins/PX4/PowerComponent.qml b/src/AutoPilotPlugins/PX4/PowerComponent.qml index 86e8d4b9d..f1c5516f8 100644 --- a/src/AutoPilotPlugins/PX4/PowerComponent.qml +++ b/src/AutoPilotPlugins/PX4/PowerComponent.qml @@ -310,8 +310,9 @@ QGCView { visible: showAdvanced.checked } Rectangle { + id: batteryRectangle width: parent.width - height: 40 + height: 140 color: palette.windowShade visible: showAdvanced.checked Column { @@ -329,6 +330,23 @@ QGCView { showUnits: true } } + QGCLabel { + width: batteryRectangle.width - 30 + wrapMode: Text.WordWrap + text: "All batteries have an internal resistance. This causes the voltage to drop when under load. " + + "This value tells the flight controller how much to compensate when computing the true battery minimum voltage. " + + "If this value is set too high, the flight controller will allow the battery to drop bellow its minimum safety " + + "voltage, which will cause damage to the battery." + } + Row { + spacing: 10 + QGCLabel { + text: "Compensated Minimum Voltage:" + } + QGCLabel { + text: ((battNumCells.value * battLowVolt.value) - (battNumCells.value * battVoltLoadDrop.value)).toFixed(1) + ' V' + } + } } } } // Column -- 2.22.0