diff --git a/src/modules/systemlib/battery.cpp b/src/modules/systemlib/battery.cpp index 0f1a6bbddb533f5fc0a78ab8a9b2556d97a23bb7..f3dafe0276645854b07609c6ca6d7ae7aca53a49 100644 --- a/src/modules/systemlib/battery.cpp +++ b/src/modules/systemlib/battery.cpp @@ -79,6 +79,7 @@ void Battery::updateBatteryStatus(hrt_abstime timestamp, float voltage_v, float current_a, float throttle_normalized, battery_status_s *battery_status) { + battery_status->timestamp = timestamp; filterVoltage(voltage_v); sumDischarged(timestamp, current_a); estimateRemaining(voltage_v, throttle_normalized);