E.consumption-E.charging
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
Can I get the value of energy recovery of electric vehicle through traci
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).
请阅读文档。您可以访问调用函数的电池设备的当前状态(其中是电池设备定义表中的电池设备)。
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?
Charging effects are not included in traci.vehicle.getElectricConsumption() but recovery is.