-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
Referenced Current values to MAX_BATTERY_CHARGE_CURRENT & MAX_BATTERY_DISCHARGE_CURRENT #389
Conversation
Hi @vincegod |
I have removed the ant bms changes now, sorry I never intended to changed this file. |
@vincegod @Louisvdw However, I now have some difficulties with the configuration of the attributes that were changed in this MR. I do see the following possibilities to resolve this: What do you think? |
Would it also be possible to configure |
The problem with seperate settings for each of the different CCCM types are that it makes it difficult for the average user to change their max current limits. To make it easier should be the goal. On the other side we want to be flexable so that users can adjust to their setup. We can do something like @mr-manuel suggest where a default apply with ratios like in this PR, but then you can override that in the settings. However I can already see that people would then not know which values are applied. For the GUI Settings I planned to have values in the settings, but when you apply a new (dis)charge limit it would adjust all the values according to a ratio like in this PR which the user can then adjust again. So the ratio only comes into play in the GUI when the "master charge limits" are changed. Not sure if we can do something similar here? |
I will implement it like follows: The Current limits in the configuration will always be relative to max_(dis)charge_current - e.g.:
So one can configure everything in a fine grained manner, but for most cases it's sufficient to only set charge/discharge limits |
Hi,
I've changed a lot of the fixed Current values to be referenced MAX_BATTERY_CHARGE_CURRENT & MAX_BATTERY_DISCHARGE_CURRENT by multiplying by 0.1, 0.2, 0.4, 0.5 etc.
I've also tweaked the temperature limit steps a little.
I'm using a JBD and will be adding a second battery late this month.
Thanks for a great driver
Vince
PS. I'm new to Python, GitHub and such so hopefully I've not broke anything :)