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

Tesla: Tweak plausable SOC% limits #191

Merged
merged 4 commits into from
Feb 19, 2024
Merged

Tesla: Tweak plausable SOC% limits #191

merged 4 commits into from
Feb 19, 2024

Conversation

dalathegreat
Copy link
Owner

What

This PR fixes a bug where LFP Tesla packs would trigger the SOC% not plausable

Why

Due to the changes in PR #190 , the LFP pack would be just on the limit when it comes to autodetecting SOC% not plausable. LFP has a very flat voltage curve, so the check no longer makes sense for LFP

How

We fix this by lowering the SOC% check, and also raising the voltage requirement.

Copy link
Collaborator

@Newevg Newevg left a comment

Choose a reason for hiding this comment

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

Incorect MAX/MIN was preventing LFP 108pack from Charging:

//Once cell chemistry is determined, set maximum and minimum total pack voltage safety limits
if (LFP_Chemistry) {
max_voltage = 3880;
min_voltage = 2968;
} else { // NCM/A chemistry
max_voltage = 4030;
min_voltage = 3100;
}

@dalathegreat
Copy link
Owner Author

@Newevg Revised the limits in 8f932e1

@dalathegreat dalathegreat merged commit 4097733 into main Feb 19, 2024
36 checks passed
@dalathegreat dalathegreat deleted the bugfix/LFP-plausable branch February 19, 2024 13:14
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