EV-20 rig round 2: a short charger read gap keeps the last reading; ha_signed pause timed from the meter age
A charger reading missing for less than stale_input_s keeps the last trusted reading in CarTracker (shared by Solar, Manual and the peak guard): no decision or write in that cycle, no stuck arm or clear. At stale_input_s the safe path is unchanged. This also stops the false PEAK_GUARD_FLOOR_LIMITED after one gap (EV-18 T10(b) updated). On ha_signed Solar's unknown-sun pause comes at meter age meter_max_age_s + ev_pause_min, checked every cycle. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
This commit is contained in:
@@ -144,3 +144,18 @@ one small set of facts and derives every path from them:
|
||||
`meter_max_age_s` is the bound (a silent meter: 0 A at
|
||||
`meter_max_age_s` + `ev_pause_min`).
|
||||
|
||||
## Rig round 2 (rig FAIL on 09b6af9), PM rulings
|
||||
|
||||
- **A short charger read gap** (chargers.py `CarTracker.observe`, shared by
|
||||
Solar, Manual and the peak guard): a reading missing for less than
|
||||
`stale_input_s` keeps the last trusted reading (`held`); nothing is decided
|
||||
or written in that cycle (`ctl_car.car_step` returns), and it neither arms
|
||||
nor clears the stuck check. At `stale_input_s` the missing reading is taken
|
||||
as before (the safe path: the charger is gone, 0 A first on its return).
|
||||
This also ends the false PEAK_GUARD_FLOOR_LIMITED after one gap (EV-18
|
||||
T10(b) changed accordingly).
|
||||
- **Silent meter on `ha_signed`:** Solar's unknown-sun pause is timed from the
|
||||
meter's age: unknown since the age passed `meter_max_age_s`, so 0 A when the
|
||||
age reaches `meter_max_age_s` + `ev_pause_min` (330 s), checked every
|
||||
control cycle (bound 330 s + one cycle). Arrival sources are unchanged.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user