EV-05 round 8: Off respects the owed-only rule; grade out only a car Solar runs
Review of fa11dc3:
- Solar to Off writes no 0 A when Solar never had the charger (shadow or a
stopped control since the start) or its not-writing 0 A is already taken
(N10, Expected 11), as the shutdown does since round 7.
- car_solar_can_cut() also needs a car Solar runs: plan.a > 0, its own phase
change, or its own 0 A inside EV-15's OWN_PAUSE_MAX_S.
Tests: the four p_off shapes (and Manual); p_paused at 1000 s and 890 s and
an own pause older than 85 s, each against an Off twin; the near-end rule
with slow batteries that keep headroom (review p_ne2).
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -127,6 +127,17 @@ inputs (`car_sun_inputs`) and runs the writer in the same background task.
|
||||
included. A shutdown while Solar is writing still sends its 0 A before the
|
||||
inverters (T26).
|
||||
|
||||
## Round 8 (review of fa11dc3)
|
||||
|
||||
- **Off follows the same owed-only rule as the shutdown**: no 0 A when Solar
|
||||
never had the charger (shadow or a stopped control since the start), or
|
||||
when its not-writing 0 A is already taken. Manual writes only as Manual
|
||||
does (nothing in shadow).
|
||||
- **Solar grades out only a car it runs**: `car_solar_can_cut()` also needs
|
||||
`plan.a > 0`, a phase change of its own, or its own 0 A still inside EV-15's
|
||||
`OWN_PAUSE_MAX_S`. A car another writer starts while Solar waits at 0 A for
|
||||
sun 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