Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement: Centralize active_power_w writing #615

Merged
merged 2 commits into from
Nov 13, 2024

Conversation

dalathegreat
Copy link
Owner

What

This PR implements centralized writing of the active power (W) value

Why

To make it simpler to maintain and add new battery protocols

How

Instead of having each battery implementation doing the same calculation to get W from Volt&Amp, we perform this in the update_calculated_values() function

Copy link
Collaborator

@amarofarinha amarofarinha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! LGTM!

@dalathegreat dalathegreat merged commit 8d4451b into main Nov 13, 2024
62 checks passed
@dalathegreat dalathegreat deleted the improvement/simplify-cap-remaining branch November 13, 2024 21:08
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.

2 participants