mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-16 08:00:35 +08:00
ms5611: prevent starting as ms5607 type on ms5611 hardware
- an ms5611 using the ms5607 calculations will return impossibly high barometric pressure (~2000 mbar)
This commit is contained in:
@@ -107,6 +107,11 @@ MS5611::init()
|
||||
/* This is likely not this device, abort */
|
||||
ret = -EINVAL;
|
||||
break;
|
||||
|
||||
} else if (brp.pressure > 1500.0f) {
|
||||
/* This is likely not this device, abort */
|
||||
ret = -EINVAL;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user