Skip to content

Commit

Permalink
battery summary in tripinfo ref #15800
Browse files Browse the repository at this point in the history
Signed-off-by: m-kro <m.barthauer@t-online.de>
  • Loading branch information
m-kro committed Nov 28, 2024
1 parent 146b380 commit 5a0c5af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/microsim/devices/MSDevice_Battery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,9 @@ MSDevice_Battery::generateOutput(OutputDevice* tripinfoOut) const {
if (tripinfoOut != nullptr) {
tripinfoOut->openTag("battery");
tripinfoOut->writeAttr("depleted", toString(myDepletedCount));
tripinfoOut->writeAttr("actualBatteryCapacity", toString(myActualBatteryCapacity));
tripinfoOut->writeAttr("totalEnergyConsumed", toString(myTotalConsumption));
tripinfoOut->writeAttr("totalEnergyRegenerated", toString(myTotalRegenerated));
tripinfoOut->closeTag();
}
}
Expand Down

0 comments on commit 5a0c5af

Please sign in to comment.