Skip to content

Improve kchal_get_bat_pct() estimation #15

@rorosaurus

Description

@rorosaurus

Improve kchal_get_bat_pct() state of charge estimation.

Right now we assume a linear relationship between voltage and state of charge.
LiPo batteries follow somewhat predictable curve, based on the rate of discharge.
image
We should compare the recorded rough average rate of discharge, to determine the C rating for average use, then update the kchal_get_bat_pct() to approximate this curve.

Absolutely accuracy is not the goal, just something roughly within 5% should be good enough, I think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions