Skip to content

Conversation

@trebula
Copy link

@trebula trebula commented Apr 17, 2023

Uses the existing wattHoursUsed variable to continually update the estimate of SOC.
At startup, analyze the initial SOC using the getBatteryPercent function. Once this period ends, it uses the initial SOC estimation and subtracts the wattHoursUsed to determine the new SOC. Will likely overestimate the battery percent since the actual battery capacity will probably be lower than the nominal capacity due to heat loss, but doesn't rely as much on voltage (which may be inaccurate due to the flat curve of Li-on batteries)

@trebula trebula mentioned this pull request Apr 17, 2023
@zjwhitehead zjwhitehead self-requested a review April 17, 2023 22:20
@zjwhitehead zjwhitehead changed the base branch from master to version/6 May 21, 2025 15:09
@zjwhitehead
Copy link
Member

Closing this due to the latest SP140 hardware supporting BMS based SOC data directly for maximum accuracy

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.

3 participants