-
Notifications
You must be signed in to change notification settings - Fork 185
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
Feature: Add configurable limit to charge/discharge on BYD Modbus #290
Conversation
Converting to draft, I want to investigate more on how to increase performance |
Ready for review, this is now extremely sped up! :) |
Looks good to me given the PR scope. I agree with Caboom on the need/suggestions for initialization refactoring; I had the same impulses. Glad to see reduced reliance upon memcpy. For the future: configurable limit for charge/discharge being expanded elsewhere. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! There's always small stuff to tweak but iterations are king
What
This PR does two things:
Why
To be able to tune peak power from the webui on Fronius inverters
How
Using the std::min function to see which is smaller, User set limit OR battery value? We use the smallest one! This PR also removes all memcopy handling, and simplifies the register writing significantly