Commit b89d3de2 authored by dogmaphobic's avatar dogmaphobic

Warning and explanation for voltage drop.

parent 97d9118c
...@@ -310,8 +310,9 @@ QGCView { ...@@ -310,8 +310,9 @@ QGCView {
visible: showAdvanced.checked visible: showAdvanced.checked
} }
Rectangle { Rectangle {
id: batteryRectangle
width: parent.width width: parent.width
height: 40 height: 140
color: palette.windowShade color: palette.windowShade
visible: showAdvanced.checked visible: showAdvanced.checked
Column { Column {
...@@ -329,6 +330,23 @@ QGCView { ...@@ -329,6 +330,23 @@ QGCView {
showUnits: true 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. " +
"<font color=\"yellow\">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.</font>"
}
Row {
spacing: 10
QGCLabel {
text: "Compensated Minimum Voltage:"
}
QGCLabel {
text: ((battNumCells.value * battLowVolt.value) - (battNumCells.value * battVoltLoadDrop.value)).toFixed(1) + ' V'
}
}
} }
} }
} // Column } // Column
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment