sumo icon indicating copy to clipboard operation
sumo copied to clipboard

E.consumption-E.charging

Open just-wynot opened this issue 3 years ago • 4 comments

How do I use traci to get the difference between the amount of energy my EV consumes at the charging station and the amount of energy it replenishes

**SUMO-version:**1.16

**operating system:**windows

just-wynot avatar Aug 01 '23 01:08 just-wynot

Can I get the value of energy recovery of electric vehicle through traci

just-wynot avatar Aug 01 '23 02:08 just-wynot

Please have a read in the docs. You can access the current state of the battery device calling the traci.vehicle.getParameter function with device.battery.<KEY> (where KEY is one those in the battery device definition table).

m-kro avatar Aug 01 '23 06:08 m-kro

请阅读文档。您可以访问调用函数的电池设备的当前状态(其中是电池设备定义表中的电池设备)。traci.vehicle.getParameter``device.battery.<KEY>

Function traci. Vehicle. GetElectricConsumption () is the vehicle's power loss value minus the energy recovery value minus the charging stations to obtain energy?

just-wynot avatar Aug 01 '23 07:08 just-wynot

Charging effects are not included in traci.vehicle.getElectricConsumption() but recovery is.

m-kro avatar Aug 01 '23 13:08 m-kro