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
9b75d0dc
Commit
9b75d0dc
authored
Oct 11, 2015
by
Lorenz Meier
Browse files
Vehicle: Initialize battery status correctly
parent
00f26652
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Vehicle/Vehicle.cc
View file @
9b75d0dc
...
...
@@ -77,7 +77,7 @@ Vehicle::Vehicle(LinkInterface* link, int vehicleId, MAV_AUTOPILOT firmwareType,
,
_latitude
(
DEFAULT_LAT
)
,
_longitude
(
DEFAULT_LON
)
,
_refreshTimer
(
new
QTimer
(
this
))
,
_batteryVoltage
(
0
.0
)
,
_batteryVoltage
(
-
1
.0
f
)
,
_batteryPercent
(
0.0
)
,
_batteryConsumed
(
-
1.0
)
,
_currentHeartbeatTimeout
(
0
)
...
...
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