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

Upgrade to AP 4.5.x causes external I2C baro BMP280 not detected while onboard SPI BMP280 works. #27315

Open
RBirdie001 opened this issue Jun 16, 2024 · 5 comments

Comments

@RBirdie001
Copy link

Bug report

Issue details

Plane with FC Omnibus F4 upgraded from Arduplane 4.4.4 to 4.5.3.
Beside onboard SPI BMP280 baro I have external I2C baro also BMP280.
With previous versions including the 4.4.4 external baro worked but after upgrading to 4.5.2 (4.5.3) it’s not detected anymore.
My settings: BARO_EXT_BUS = -1 and BARO_PROBE_EXT = 2.
For the test I reverted back to 4.4.4 without touching the configuration and ext. baro started working again.
Both baros are the same type so hardware driver should be there already.
Tried to discuss here but solution not found:
https://discuss.ardupilot.org/t/external-baro-bmp280-stopped-working-after-upgrading-from-ap4-4-4-to-4-5-3/119075

Version
Arduplane 4.5.2 and 4.5.3

[Platform]
[ ] All
[ ] AntennaTracker
[ ] Copter
[ X] Plane
[ ] Rover
[ ] Submarine

Airframe type
V-tail plane - Mini Talon

Hardware type
Omnibus F4V3

Logs
Please provide a link to any relevant logs that show the issue

@peterbarker
Copy link
Contributor

This board became minimized due to size constraints (we like the firmware to be able to fit on the boards!), and as part of that probing for external barometers was removed.

It's probably a legitimate target for removal; external i2c baros on fpv/osd boards with only 1MB for flash are going to be a rarity, I'm afraid.

I've created this PR to add an option to our custom build server to get the feature back: #27516

In the meantime you can build your own firmware, or I could potentially knock you something up.

@peterbarker
Copy link
Contributor

... incidentally, thanks for the detailed report.

@RBirdie001
Copy link
Author

Thanks, it would be great to get this feature back! I'm using external baro mainly as an external thermometer.
I had the idea to use custom build server to get the ext. baro support back, but in this case when both baros are the same type it's not possible. I don't have enough knowledge to build a custom firmware completely myself from the scratch.

@RBirdie001
Copy link
Author

RBirdie001 commented Jul 12, 2024

I noticed, that after merging pr #27516 is now on the custom build server is available option EXTERNALAHRS Barometric Sensor which I hope should enable searching for external baros. I ticked it (left the rest default) and created a custom build https://custom.ardupilot.org/builds/plane:omnibusf4:f24dd1d75fc894c032342c9ef4076e9dfa7aff86:efebab605db38bab8e7989ea453129c3/
Uploaded to my plane, but external baro is still not detected.
Do I understand something wrong or it doesn't work?

@peterbarker
Copy link
Contributor

Sorry for the slow response.

That's not the right option - this is the one you're after:

image

... obviously you also need to enable the external baro you want to detect!

Please let us know how you get on...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants