Battery: move member initialization values to class declaration

This commit is contained in:
Matthias Grob
2018-02-22 11:57:33 +01:00
committed by Lorenz Meier
parent 3917eb2d00
commit 83ac74367c
2 changed files with 7 additions and 14 deletions
-7
View File
@@ -53,13 +53,6 @@ Battery::Battery() :
_low_thr(this, "LOW_THR"),
_crit_thr(this, "CRIT_THR"),
_emergency_thr(this, "EMERGEN_THR"),
_voltage_filtered_v(-1.f),
_current_filtered_a(-1.f),
_discharged_mah(0.f),
_discharged_mah_loop(0.f),
_remaining_voltage(1.f),
_remaining(2.f),
_scale(1.f),
_warning(battery_status_s::BATTERY_WARNING_NONE),
_last_timestamp(0)
{