EV-05 round 2: the peak cut waits 15 s while a battery can give
Owner 2026-11-18 (dev finding 1, brief v4 Expected 8): while a battery is above its cut-out, the car's peak cut waits until the guard has wanted power for 15 s in a row (CUT_WAIT_S), so a cloud edge the batteries catch does not pause the car. It cuts at once with no battery able, or with 120 s or less of the 15-minute period left (CUT_NEAR_END_S: waiting 15 s then costs at most 8/7 of the cut, taken off the car at once). Tests: T21/T22 cut at 15 s and not sooner, the period lands under the aim; T21b a house step and a cloud edge the batteries catch: no cut, no pause; T24 (c) late in the period: the cut at once, under the aim; T12's cut row with the batteries at their cut-out. The harness's battery level model was 1000x too fast (round 1); fixed. The 10-hour day: 0 cut pauses in both priorities. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -25,6 +25,17 @@ inputs (`car_sun_inputs`) and runs the writer in the same background task.
|
||||
(`wanted_w > 0`), and by `min(excess, wanted)`. Batteries that only stop
|
||||
charging in a cloud's first seconds are not "asked", so a cloud does not cut
|
||||
the car. A partial cut caps the car for the rest of that 15-minute period.
|
||||
- **The cut waits 15 s while a battery can still give** (owner 2026-11-18,
|
||||
round 2): `ctl_car.CUT_WAIT_S`, counted from the first cycle in a row in
|
||||
which the guard wants power. A battery "can give" when it is above its own
|
||||
cut-out level, not refusing to give and not under a safety stop
|
||||
(`_car_batt_able`). It cuts at once with nothing able, or with 120 s or less
|
||||
of the period left (`CUT_NEAR_END_S`): waiting 15 s with R s left raises what
|
||||
must come off afterwards by R / (R - 15), at most 8/7 at 120 s, and the cut
|
||||
then takes it off the car at once. test_ev05.py T21 (a step beyond the
|
||||
batteries, cut at 15 s) and T24 (c) (a late step, cut at once) show the period
|
||||
landing under the aim; the 10-hour day of test_ev05_long.py has no cut
|
||||
pause at the shipped `slew_w` 0.
|
||||
- **The 4.0 to 4.14 kW band on 3 phases.** 3 phases need 4.14 kW at 6 A, the
|
||||
switch back to 1 phase is under 4.0 kW. Inside that band the car holds 6 A on
|
||||
3 phases with no pause count (the hysteresis the design chose). Under 4.0 kW
|
||||
|
||||
Reference in New Issue
Block a user