You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 792ef29
Browse filesBrowse the repository at this point in the historyBrowse files
fix(loadpoint): the deadline reserve holds to the plan's limits, not the charger's raw table (#1860)
With no plan, withDeadlineReserve took its on-power from DeadlineNeed,
which held it to LimitPower(st, st.AllowedStepsW): the charger's whole
table. On a table with one-phase and three-phase levels, a car whose own
maximum is below the lowest three-phase level (a 3,680 W plug-in hybrid)
got a one-phase level, 3,680 W. Planned charging runs on three phases, so
the controller snapped with the three-phase minimum, 4,140 W, and sent
0 W. The car is marked one-phase only once it draws, so it never was.
The plan path gets PlanningLimits and orders 4,140 W.
DeadlineNeed now takes the limits. Controller.PlanningLimits is
PlanningLimits on the loadpoint's phase mode and the site fuse, read
under the controller's and the manager's own locks. The controller's
reserve check uses it, and main.go wires it into the new
mpc.Service.PlanningLimits; nil keeps the charger's table. A marked
one-phase car is reserved the third of a three-phase level it takes, so
a 2.3 kW car on a three-phase table is ordered 6,900 W, not the
charger's 11,040 W. A charger without a table still takes any power in
its range.
Tests fail on master 286ac14: DeadlineNeed on mixed and three-phase
tables, the reserve through SlotDirectiveAt, and the controller's order
on mixed tables (unset, auto, 3p). Of twelve new noplan field-matrix
rows, the seven on mixed tables go idle on master (order 0 W); the five
on three-phase tables pass on both. The known list stays empty.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A car whose own charger takes less than the charger's three-phase levels now charges toward its goal when no plan is available. On a step table with both one-phase and three-phase levels, the reserve FTW falls back to without a plan gave such a car a one-phase level, which no three-phase order has, and the charger was ordered 0 W. An example is a 3.7 kW plug-in hybrid on a charger whose table runs 1.4-3.7 kW on one phase and 4.1-11 kW on three. The reserve now holds to the same limits as the plan: such a car is ordered the lowest three-phase level, and once FTW sees it draw on one phase, three times the level it takes.
0 commit comments