mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-07-24 15:27:41 +08:00
The AirBrainH743 breaks out a single I2C bus (I2C1) that also carries the onboard DPS310 baro and IIS2MDC mag. Because the bus was marked internal, the external-compass autostart (which scans external buses with -X) never probed it, so an external GPS/compass on that bus was never bound. Mark I2C1 external so the external-mag autostart scans it, and add a px4_i2c_device_external() override (guarded by BOARD_OVERRIDE_I2C_DEVICE_EXTERNAL) that keeps the onboard baro and mag classified as internal. This mirrors the approach used on fmu-v6c. The onboard baro/mag are now started explicitly by bus and address (-X -b 1) since -I no longer matches the external bus. Also enable the i2cdetect command, which is handy for probing the shared external bus on this board. Signed-off-by: Julian Oes <julian@oes.ch>