Commit bffd454c authored by Lorenz Meier's avatar Lorenz Meier

Merge pull request #1703 from dogmaphobic/batteryWarning

Warning and explanation for voltage drop.
parents ce781d9b dafa093c
......@@ -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,22 @@ QGCView {
showUnits: true
}
}
QGCLabel {
width: batteryRectangle.width - 30
wrapMode: Text.WordWrap
text: "Batteries show less voltage at high throttle. Enter the difference in Volts between idle throttle and full " +
"throttle, divided by the number of battery cells. Leave at the default if unsure. " +
"<font color=\"yellow\">If this value is set too high, the battery might be deep discharged and damaged.</font>"
}
Row {
spacing: 10
QGCLabel {
text: "Compensated Minimum Voltage:"
}
QGCLabel {
text: ((battNumCells.value * battLowVolt.value) - (battNumCells.value * battVoltLoadDrop.value)).toFixed(1) + ' V'
}
}
}
}
} // 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