diff options
author | Aseda Aboagye <aaboagye@google.com> | 2020-10-29 15:25:05 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-03 03:40:07 +0000 |
commit | 85f55eeb4c8680086241d6b33dc10ee91efaddff (patch) | |
tree | ab0eb3614ad9d4a0f82d508e13ed80a4069c0475 /board | |
parent | 5884a3b37e47b3b9a926963330b5f34e5cde3445 (diff) | |
download | chrome-ec-85f55eeb4c8680086241d6b33dc10ee91efaddff.tar.gz |
OCPC: Average and filter resistance calculations
It's been seen that the resistance calculations can vary quite a bit
during the charging cycle. In order to reduce this variance, this CL
has the OCPC module take the running mean and use that at the combined
resistance value. Additionally, values that are outside of a 6
standard deviation window are discarded.
BUG=b:170974274
BRANCH=None
TEST=Build and flash waddledee, enable OCPC debug logging and plot
combined resistance over time as DUT charges in suspend. Verify that
combined resistance does not vary significantly.
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Change-Id: I2ccb9ccbc0b98455e78249d47f8692828f1a15e9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2508853
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board')
0 files changed, 0 insertions, 0 deletions