Skip to content

Update barometer to support I2C#180

Merged
JcZou merged 6 commits intoFirmament-Autopilot:masterfrom
Pan-Chenliang:barometer
Mar 15, 2026
Merged

Update barometer to support I2C#180
JcZou merged 6 commits intoFirmament-Autopilot:masterfrom
Pan-Chenliang:barometer

Conversation

@Pan-Chenliang
Copy link
Copy Markdown
Contributor

ms5611支持SPI和I2C两种协议,在一些载板上使用的是I2C。

因此修改了ms5611驱动,使其可以兼容SPI和I2C工作,另外修改了barometer.c,仿照mag的形式,将设备区分注册为SPI或者I2C device。另外几种传感器(spl06、bmp581)的baro_device 同步做了微小改动。

ms5611的i2c驱动经过了硬件测试。

Copy link
Copy Markdown
Contributor

@JcZou JcZou left a comment

Choose a reason for hiding this comment

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

FYI

Copy link
Copy Markdown
Contributor Author

@Pan-Chenliang Pan-Chenliang left a comment

Choose a reason for hiding this comment

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

关于drv_ms5611_init 参数的问题,我希望尽可能还是不动当前的定义,自动识别使用spi还是i2c

@Pan-Chenliang
Copy link
Copy Markdown
Contributor Author

@JcZou 第三个问题已经修改完成,前两个请见回复

@JcZou JcZou merged commit 7b80af0 into Firmament-Autopilot:master Mar 15, 2026
2 checks passed
@Pan-Chenliang Pan-Chenliang deleted the barometer branch March 15, 2026 10:09
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