-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add support for bm5v2 #3126
base: master
Are you sure you want to change the base?
Add support for bm5v2 #3126
Conversation
This looks really good, thanks! Some minor style changes, then good to merge.
|
Thanks for the feedback. I've made the requested changes. |
Perfect. Line 84 needs to be inside the braces :) |
Oh and the two voltages likely should have a format of |
Sorry, havn't noticed this before:
|
Thanks for catching that. My C skills are pretty rusty :-) |
Your comment about the signed temperature value prodded me test my assumptions. (We haven't had any temperatures quite below zero C yet). So, I pulled the sensor out, and put it in the freezer. Turns out the temperature is stored as sign-magnitude in byte 6 of the data packet. I fixed the temperature handling, and added one more sample signal to the tests repository covering the sensor at -1_C, with a cranking error triggered. (pulled the EFI fuse to simulate a failed start attempt). |
Add support for BM5 v2.0 12V Battery Monitor