MS5837 depth sensor not used for depth control on Pixhawk 6C

I have connected an MS5837 depth sensor to the I²C port of a Pixhawk 6C running ArduSub 4.5.5. However, the sensor’s readings are assigned to SCALED_PRESSURE1, while the internal barometer values are assigned to SCALED_PRESSURE2. As a result, the MS5837 data does not seem to be used for vehicle control.
When I attempt to calibrate the barometer, it shows the message “Depth sensor is not connected.”
What settings should I change to make the MS5837 depth sensor usable for depth control? For reference, below is the list of BARO-related parameters.

Try to set
BARO_EXT_BUS = -1 (all I2C Busses)
BARO_PROBE_EXT = 32767 (to allow all kind of Baros)
Which pixhawk 6C you have (Serial number as there are some differnces on I2C buses)
Which brand of MS5837 you have?
How you connected the MS5837 to the Pixhawk 6C pin by pin
Is something else connected to the same I2C bus?

1 Like

I followed your advice and changed the parameters as you suggested.
Now, when I press on the pressure part of the MS5837 depth sensor, the depth meter in QGC changes accordingly.
Although the MS5837 is still registered as Scaled Pressure 1, it seems to be working properly now.
Thank you very much for your helpful advice!