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

Add I2C retries in INA226 to prevent publishing 0's on a single read … #19423

Merged
merged 1 commit into from
Apr 9, 2022

Conversation

AlexKlimaj
Copy link
Member

This PR adds retries to the I2C read function in the INA226 driver. Retries were added here to prevent a full bus level reset.

If either voltage or current read fails, the driver publishes 0's.

See below log screenshots for the behavior this fixes. All of these are on different vehicles.

image
image
image
image
image
image
image

@AlexKlimaj AlexKlimaj requested a review from dagar March 30, 2022 16:52
@dagar dagar merged commit 017f860 into PX4:master Apr 9, 2022
@AlexKlimaj AlexKlimaj deleted the pr-ina226-retry branch September 20, 2022 23:12
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