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 BMP390 to Navigator #27724

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

Williangalvani
Copy link
Contributor

I had to do these changes in order to get the BMP390 working on a new revision of the navigator.
needs testing on other platforms.

Changes are based on Adafruit's library

could it be an i2c issue? that would explain why no one else has seem the issue...

tridge
tridge previously requested changes Aug 26, 2024
@@ -107,6 +109,9 @@ bool AP_Baro_BMP388::init()
return false;
}

dev->write_register(BMP388_REG_CMD, BMP388_SOFT_RESET, true);
Copy link
Contributor

Choose a reason for hiding this comment

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

the true is wrong, this is not a checked register, this will reset your baro every 20 loops

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed this line, so now the PR only adds the new sensor to the navigator.
I tested it here and it worked fine on my board without the soft reset. If the issue comes up again, I'll open a new PR for it.

@Williangalvani Williangalvani dismissed tridge’s stale review September 2, 2024 14:36

I removed the offending code

@Williangalvani Williangalvani changed the title BMP390 driver update, add to Navigator add BMP390 to Navigator Sep 2, 2024
@Williangalvani Williangalvani merged commit 11e05b1 into ArduPilot:master Sep 2, 2024
93 checks passed
@Williangalvani Williangalvani deleted the bmp390_updates branch September 2, 2024 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants