EV-05 round 9: one test of control; another writer's phases are a hold
SolarWriter.in_control is the single test of "Solar has the charger": writing, read-back current and phases are Solar's own, no hold, no write refused, given up or owed. Alarm grading, banking, the own-pause grace and the cut use it. A phase change Solar did not make is another writer: nothing written over it, hold after 30 s, no select back after 10 min. While Solar's own switch waits, a lower current is written at once, and the arithmetic uses the phases the car draws on. A car another writer starts inside the own-pause grace is no longer graded out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
e348a808ff
commit
c9a95f3c10
@@ -138,6 +138,23 @@ inputs (`car_sun_inputs`) and runs the writer in the same background task.
|
||||
`OWN_PAUSE_MAX_S`. A car another writer starts while Solar waits at 0 A for
|
||||
sun gets the alarms as in Off.
|
||||
|
||||
## Round 9 (review of e348a80)
|
||||
|
||||
- **One test of control**: `SolarWriter.in_control`. Solar writes, the
|
||||
read-back current AND phases are what it set (`own_rb`), there is no hold,
|
||||
and no write of its own is refused, given up or owed. The alarm grading,
|
||||
the banking, EV-15's own-pause grace and the cut all use it.
|
||||
- **A phase change Solar did not make is another writer**, like a current
|
||||
change: nothing is written over it, and after `WRITER_S` the hold
|
||||
(CHARGER_OTHER). Solar no longer selects its own phases back after the
|
||||
10 minutes. A select the charger did not confirm counts both phases as
|
||||
Solar's until the read-back shows one.
|
||||
- **While Solar's own phase switch waits** (`PHASE_GAP_S`), a lower current
|
||||
(the cut, the hold's 6 A) is written at once. The arithmetic uses the
|
||||
phases the car draws on.
|
||||
- **The own-pause grace ends when the read-back is not Solar's 0 A**: a car
|
||||
another writer starts inside it gets the alarms as in Off.
|
||||
|
||||
## Solar kWh
|
||||
|
||||
Per cycle in Solar: `min(car power, max(0, spare - room))` Batteries first,
|
||||
|
||||
Reference in New Issue
Block a user