Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
15a060d6
Commit
15a060d6
authored
Dec 15, 2015
by
Gus Grubba
Browse files
Merge pull request #2406 from dogmaphobic/battVoltage
Show battery voltage if percentage not available.
parents
e7b78f0f
002503a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ui/toolbar/MainToolBarIndicators.qml
View file @
15a060d6
...
...
@@ -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
"
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment