Skip to content

Fix conservative overcurrent mode never reducing charger limit#92

Open
attaxia wants to merge 3 commits into
dirkgroenen:mainfrom
attaxia:fix/conservative-overcurrent-mode
Open

Fix conservative overcurrent mode never reducing charger limit#92
attaxia wants to merge 3 commits into
dirkgroenen:mainfrom
attaxia:fix/conservative-overcurrent-mode

Conversation

@attaxia
Copy link
Copy Markdown
Contributor

@attaxia attaxia commented Jun 5, 2026

Conservative mode clamped phase_limit at 0 (max(0, phase_limit + avail)), returning a positive value that PowerAllocator read as surplus, so cuts never fired. Emit the real negative deficit immediately instead, matching the relative-availability contract used by optimised/default balancers.

attaxia and others added 3 commits May 13, 2026 15:08
Minor edit - updated the maintained icon for 2026 as there have been commits.
Conservative mode clamped phase_limit at 0 (max(0, phase_limit + avail)),
returning a positive value that PowerAllocator read as surplus, so cuts
never fired and the charger was never throttled during overcurrent. Emit
the real negative deficit immediately instead, matching the
relative-availability contract used by the optimised/default balancers.
Conservative stays distinct from optimised by cutting right away rather
than waiting for cumulative trip risk to cross the threshold.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant