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

Coda min voltage, current precision, formatting #4

Merged
merged 2 commits into from Dec 15, 2020

Conversation

mdrobnak
Copy link

The existing coded will work as long as the voltage is above 200. At 200 there is a scaling error. However there will be some precision issues with the current control.

Example - 15A should be 1500 lets say, which would be 0x05DC. What will go on the bus is 0x0505 as the lower byte is not being used.

This PR adds a few comments, fixes the issues above, and fixes the spacing to be in line.

It was unclear to be (but seems likely) that the if (mescycl == 2) line is probably part of the Chevy Volt case. So right now that's being sent in all scenarios I think. But that is not addressed in this PR.

Thanks again for the great product, I hope this PR makes this fix even easier for you. :-)

-Matt

@Tom-evnut Tom-evnut merged commit d21847a into Tom-evnut:master Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants