diff --git a/src/AutoPilotPlugins/PX4/PowerComponent.qml b/src/AutoPilotPlugins/PX4/PowerComponent.qml index 86e8d4b9db4dd82fbf57b35e7079d3a5598d383c..f1c5516f8721270c8447ea1e804de4fd660f403b 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