iNavFlight / inav

INAV: Navigation-enabled flight control software
https://inavflight.github.io
GNU General Public License v3.0
3.08k stars 1.46k forks source link

The default I2C address for baro sensor DPS310 in inav/src/main/target /common_hardware.c is wrong (should be 0x77 and not 0x76) ) #9958

Open Thomasa66 opened 4 months ago

Thomasa66 commented 4 months ago

Regarding to the Infineon datasheet for the baro sensor DPS310 the default I2C address is 0x77 .

https://www.infineon.com/dgdl/Infineon-DPS310-DataSheet-v01_02-EN.pdf?fileId=5546d462576f34750157750826c42242 Described on page 12

In INAV 7.1 : inav/src/main/target/common_hardware.c the default I2C address for the DPS310 is set to 0x77 . (Thats wrong )

DPS310_Bug

Hope that get fixed as soon as possible, or as alternative make it possible to switch/ set every sensor between default and substitute I2C address.

arturojs89 commented 4 weeks ago

Hi @Thomasa66 I have two barometer DSP310 and bmp280(internal), as soon as I connect the dsp310 the barometer doesn't works.

I assume is the issue you mentioned in the dsp310's datasheet it mentioned the I2C address is 0x77.

Have you found a way to set manually the baro address?

ShadowWalker8642 commented 2 weeks ago

its true i have board where i2c address for dps310 is 0x77 i had change it here temporarily but it worked after changing to 0x77

putting "#define DPS310_I2C_BUS 0x77" in target.h should works