Browse Source

Merge pull request #1703 from dogmaphobic/batteryWarning

Warning and explanation for voltage drop.
QGC4.4
Lorenz Meier 10 years ago
parent
commit
bffd454c09
  1. 19
      src/AutoPilotPlugins/PX4/PowerComponent.qml

19
src/AutoPilotPlugins/PX4/PowerComponent.qml

@ -310,8 +310,9 @@ QGCView { @@ -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 { @@ -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

Loading…
Cancel
Save