Skip to content

Commit

Permalink
fix 3p1p mit Minimalem Dauerstrom
Browse files Browse the repository at this point in the history
  • Loading branch information
LKuemmel committed Oct 16, 2024
1 parent c4229ba commit 38ae3ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/control/ev.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def check_min_max_current(self,
return required_current, msg

CURRENT_OUT_OF_NOMINAL_DIFFERENCE = (", da das Fahrzeug nicht mit der vorgegebenen Stromstärke +/- der erlaubten "
+ "Stromabweichung aus dem Fahrzeug-Profil lädt.")
+ "Stromabweichung aus dem Fahrzeug-Profil/Minimalen Dauerstrom lädt.")
ENOUGH_POWER = ", da ausreichend Überschuss für mehrphasiges Laden zur Verfügung steht."
NOT_ENOUGH_POWER = ", da nicht ausreichend Überschuss für mehrphasiges Laden zur Verfügung steht."

Expand All @@ -432,7 +432,8 @@ def _check_phase_switch_conditions(self,
max_current_cp: int,
limit: LimitingValue) -> Tuple[bool, Optional[str]]:
# Manche EV laden mit 6.1A bei 6A Soll-Strom
min_current = control_parameter.min_current + self.ev_template.data.nominal_difference
min_current = (max(control_parameter.min_current, control_parameter.required_current) +
self.ev_template.data.nominal_difference)
max_current = (min(self.ev_template.data.max_current_single_phase, max_current_cp)
- self.ev_template.data.nominal_difference)
phases_in_use = control_parameter.phases
Expand Down

0 comments on commit 38ae3ff

Please sign in to comment.