Commit f71f41d
committed
Preserve sub-integer precision at trip end and BMW SOC fallback
Continuity check: also keep prediction when BMW is within rounding
(abs < 0.5), not just when BMW >= prediction. Prevents jump from
54.7% to 54% at trip end.
BMW SOC fallback: if existing last_magic_soc is within rounding of
BMW integer, keep the sub-integer value instead of overwriting.
Prevents jump after continuity window expires.1 parent 4d862e8 commit f71f41d
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
605 | 605 | | |
606 | 606 | | |
607 | 607 | | |
608 | | - | |
609 | | - | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
610 | 611 | | |
611 | 612 | | |
612 | 613 | | |
613 | 614 | | |
614 | 615 | | |
615 | 616 | | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
616 | 621 | | |
617 | 622 | | |
618 | 623 | | |
| |||
0 commit comments