assign timestamp

This commit is contained in:
Mark Whitehorn 2016-04-19 11:41:18 -06:00 committed by Lorenz Meier
parent 91133021d6
commit f097e118df

View File

@ -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);