Skip to content

Commit

Permalink
public charging can be type fast
Browse files Browse the repository at this point in the history
  • Loading branch information
mosc5 committed Jan 31, 2024
1 parent e435fab commit 58006c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion simbev/car.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,12 +551,14 @@ def charge_public(self, trip, station_capacity, max_parking_time, use_case):
use_case : str
Charging use case
"""
charge_type = "slow"
if station_capacity > trip.simbev.fast_charge_threshold:
use_case = "urban_fast"
charge_type = "fast"
self.charge(
trip,
station_capacity,
"slow",
charge_type,
use_case,
step_size=self.region.region_type.step_size,
max_charging_time=max_parking_time,
Expand Down

0 comments on commit 58006c3

Please sign in to comment.