-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
batt_smbus is broken #8834
Comments
Surprisingly it's not included in any configs. Would you like to post the errors to work through getting it working again? Once it's working we can add it to the larger build targets (px4fmu-v3, v4, etc). |
Yeah, here is the first one.
And the second one
I got it to compile by commenting out the debug calls, GETPEC function, and its calls. |
Ok, this looks pretty straightforward to recover. |
@AlexKlimaj do you want to open a pull request adding this to the board you care about and fixing the first few issues? From there I'll jump in and fix the remaining failures. |
I started working on it yesterday. It seems that the UORB battery messaging has changed since it was last used. I am also writing it for a TI BQ40Z50-R1/R2. |
Please give #8840 a try. I believe it will publish to the 2nd instance of battery_status (battery_status1), so we may need to add something to disable/ignore the default ADC battery status handling. |
I can try it today. I found yesterday that setting BAT_SOURCE to 1 will set the battery ADC's to be ignored. It's in sensors.cpp. |
Ah, right BAT_SOURCE. That's a bit of a hacky workaround, but we can properly expand the usage of that param to work correctly here. |
I've created #8854 |
Trying to compile batt_smbus in the latest master and there are numerous compile errors.
Can we bring this up to date and make it more generic by removing the 3dr solo information?
The text was updated successfully, but these errors were encountered: