cbatticon icon indicating copy to clipboard operation
cbatticon copied to clipboard

Add some filtering to power/current measurements

Open jlindgren90 opened this issue 3 years ago • 1 comments

This adds some filtering to the "current_now" or "power_now" readings, which keeps the remaining time estimate from jumping around quite so much.

MAX_SAMPLES = 60 gives 5 minutes of filtering at the default 5-second interval.

jlindgren90 avatar Oct 17 '20 19:10 jlindgren90

@valr Friendly ping - would you be able to review this improvement? I've been using it for quite some time now with no issues.

jlindgren90 avatar Apr 30 '22 15:04 jlindgren90