AP_Baro: probe for MS5611 on I2C addr 0x76

This commit is contained in:
Randy Mackay 2018-09-06 10:54:43 +09:00 committed by Andrew Tridgell
parent 3d42abe816
commit 758331612f
2 changed files with 6 additions and 0 deletions

View File

@ -647,6 +647,8 @@ void AP_Baro::_probe_i2c_barometers(void)
FOREACH_I2C_EXTERNAL(i) {
ADD_BACKEND(AP_Baro_MS56XX::probe(*this,
std::move(hal.i2c_mgr->get_device(i, HAL_BARO_MS5611_I2C_ADDR))));
ADD_BACKEND(AP_Baro_MS56XX::probe(*this,
std::move(hal.i2c_mgr->get_device(i, HAL_BARO_MS5611_I2C_ADDR2))));
}
}
if (probe & PROBE_MS5607) {

View File

@ -10,6 +10,10 @@
#define HAL_BARO_MS5611_I2C_ADDR 0x77
#endif
#ifndef HAL_BARO_MS5611_I2C_ADDR2
#define HAL_BARO_MS5611_I2C_ADDR2 0x76
#endif
#ifndef HAL_BARO_MS5607_I2C_ADDR
#define HAL_BARO_MS5607_I2C_ADDR 0x77
#endif