Repository navigation
Commit f62569d
fix(output): a HoldChrg row reports the limit it holds at (#4445)
Now that HoldChrg is decided from charge_limit_best, quoting the
predicted end-of-window SoC in its reason could contradict the row, for
example 'already at or above the 70% target' on a row at 55% when PV is
predicted to carry the SoC past a 50% limit. Show the limit instead,
which matches main whenever the prediction equals the limit (the usual
hold case). Chrg rows keep showing the predicted SoC.
Tests cover the hold level and the PV-overshoot case (prediction above
the limit), which now shows HoldChrg at the limit, not Chrg.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent e814aa5 commit f62569d
2 files changed
Lines changed: 26 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1423 | 1423 | | |
1424 | 1424 | | |
1425 | 1425 | | |
1426 | | - | |
1427 | | - | |
1428 | | - | |
1429 | | - | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
1430 | 1431 | | |
1431 | 1432 | | |
1432 | 1433 | | |
| |||
1440 | 1441 | | |
1441 | 1442 | | |
1442 | 1443 | | |
| 1444 | + | |
1443 | 1445 | | |
1444 | 1446 | | |
1445 | 1447 | | |
| |||
1459 | 1461 | | |
1460 | 1462 | | |
1461 | 1463 | | |
1462 | | - | |
| 1464 | + | |
1463 | 1465 | | |
1464 | 1466 | | |
1465 | 1467 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
| 453 | + | |
| 454 | + | |
454 | 455 | | |
455 | 456 | | |
456 | 457 | | |
457 | 458 | | |
458 | 459 | | |
459 | 460 | | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
460 | 478 | | |
461 | 479 | | |
462 | 480 | | |
| |||
0 commit comments