EV-51 review: T45 sweeps N8 on own age for retries and phase-change closing currents; docs name the decision words and C23
T45: race order, 5 s and 10 s cycles, silence onset swept 1 s at a time,
(a) a raise the charger ignores (re-sends) and (b) a 1 -> 3 phase change
(closing current): no non-zero current write at own age > 30 s. Red on
5bff894 and on the reviewer's R4 (nz_block from the snapshot, C23 on own
age), green on head. T26 also checks the DECISIONS entry names every
decision word and the C23 value rule.
DECISIONS and the car_sun_own / _car_step_debug docstrings: snapshot values
are used only while the step's own age says fresh (C23); the decision words
are listed. No code change.
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -384,8 +384,11 @@ class CarMixin:
|
||||
|
||||
def _car_step_debug(self, held, now, sun, a0, n_log) -> None:
|
||||
"""EV-51: one DEBUG line per Solar writer step: the time, the meter's
|
||||
age at the step, what was decided and what was written. Nothing at
|
||||
info and above; no secrets in it."""
|
||||
age at the step, what was decided and what was written. The decision
|
||||
is one word: steady, start, raise, lower, pause, hold (the
|
||||
late-readings hold), wait-unknown (the spare is unknown and the pause
|
||||
timer counts) or wait-held (a held charger read). Nothing at info and
|
||||
above; no secrets in it."""
|
||||
w = self.car_solar
|
||||
a1 = w.plan.a
|
||||
if a0 > 0.0 and a1 <= 0.0:
|
||||
@@ -421,7 +424,9 @@ class CarMixin:
|
||||
cycle saw one step earlier: the write block while the meter is silent
|
||||
(N8), the unknown/pause timing (held reads too) and the late-readings
|
||||
hold with its stale rule. The meter's VALUES (spare, target) stay the
|
||||
cycle's; arrival sources' `car_spare_w` keeps the cycle's age."""
|
||||
cycle's only while the step's own age says the meter is fresh; once it
|
||||
is past `meter_max_age_s` they are unknown (C23). Arrival sources'
|
||||
`car_spare_w` keeps the cycle's age."""
|
||||
own = copy.copy(snap)
|
||||
own.silent = self._car_meter_silent()
|
||||
own.unknown_s = self._car_meter_over_s()
|
||||
|
||||
Reference in New Issue
Block a user