Browse Source

Show battery voltage if percentage not available.

QGC4.4
dogmaphobic 10 years ago
parent
commit
002503a695
  1. 3
      src/ui/toolbar/MainToolBarIndicators.qml

3
src/ui/toolbar/MainToolBarIndicators.qml

@ -86,6 +86,9 @@ Row { @@ -86,6 +86,9 @@ Row {
if(activeVehicle.batteryPercent > 0.1) {
return activeVehicle.batteryPercent.toFixed(0) + "%"
}
if(activeVehicle.batteryVoltage > 0) {
return activeVehicle.batteryVoltage.toFixed(1) + "V"
}
}
return "N/A"
}

Loading…
Cancel
Save