# Depth estimate suddenly changing (while positioning system enabled)

**URL:** <https://discuss.bluerobotics.com/t/depth-estimate-suddenly-changing-while-positioning-system-enabled/22810>\
**Category:** ArduSub\
**Created:** [April 12, 2026, 8:12pm UTC](https://discuss.bluerobotics.com/t/depth-estimate-suddenly-changing-while-positioning-system-enabled/22810 "2026-04-12T20:12:27Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mac1](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@Mac1](https://discuss.bluerobotics.com/u/Mac1)\
**Post date:** [April 12, 2026, 8:12pm UTC](https://discuss.bluerobotics.com/t/depth-estimate-suddenly-changing-while-positioning-system-enabled/22810/1 "2026-04-12T20:12:27Z")

</div>

I am experiencing issues with the depth readings in cockpit, as it suddenly change—for example, showing 80 m and then jumping to 160 m,before returning to normal or not returning to normal. (it would appear sometimes to recalibrate on the seabed, and doubles the depth it is actually working in)

I initially thought the issue might have been due to system overload from saving video through BlueOS or cockpit, so I cleaned all stored files off both BlueOs and Cockpit, but that did not resolve the issue.

I also suspected a faulty depth sensor, so I replaced it with a new one. The following dive appeared normal, but on the second dive the same issue occurred again and as I deployed the ROV, the depth readings became erratic (e.g. 3 m, then 40 m, then 4 m, etc.).

I have tried recalibrating the sensor after retreiving the ROV to the surface, which resolved the issue for part of the next dive, but then the readings would become unstable again, showing 38 m and then jumping to 1,300–1,400 m (or similar high values or nothing near the depth I was working in).

Basically the depth reading became so unstable I had to abort the ROV survey.

I had been working with the ROV/Cockpit/BlueOS for 3 days prior to this depth reading issue, then for some reason it went faulty without me doing any change to any of the settings.

Has anyone else had similar experiences? and if yes, were you able to resolve it ?

thanks

---

<div class="post-metadata">

**Author:** ![tony-white](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/tony-white/32/18385_2.png) [@tony-white](https://discuss.bluerobotics.com/u/tony-white)\
**Post date:** [April 12, 2026, 11:42pm UTC](https://discuss.bluerobotics.com/t/depth-estimate-suddenly-changing-while-positioning-system-enabled/22810/2 "2026-04-12T23:42:18Z")

</div>

Hi @Mac1 -

Please share a vehicle .bin log from the log browser page in BlueOS that shows this issue. Are you using a Blue ROV2 ? Have you extended or modified the wires going to the sensor in any way? You may try re-routing the sensor cable in the enclosure to keep it farther away from the power bus bars and ESCa if possible.

If you continue to have issues, as always the [help center](https://bluerobotics.com/help-center/) is the correct place to tryout issues with a product that may require replacement.

---

<div class="post-metadata">

**Author:** ![Mac1](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@Mac1](https://discuss.bluerobotics.com/u/Mac1)\
**Post date:** [April 13, 2026, 1:55pm UTC](https://discuss.bluerobotics.com/t/depth-estimate-suddenly-changing-while-positioning-system-enabled/22810/3 "2026-04-13T13:55:05Z")

</div>

[00000014.BIN](https://discuss.bluerobotics.com/uploads/short-url/dXaLEVppnqUuVAM04cbNFMyFLQw.BIN) (11.2 MB)

[00000015.BIN](https://discuss.bluerobotics.com/uploads/short-url/nrPoHhAKbDkf5HGdm5T7BDHUSHE.BIN) (2.6 MB)

Hello Tony,

Please find the Bin logs for the day I was operating the ROV and having depth sensor readings issues, I hope that these are the correct logs as the time does not seem to fully correspond to the time with when the ROV was having the issues issues .

---

<div class="post-metadata">

**Author:** ![Mac1](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@Mac1](https://discuss.bluerobotics.com/u/Mac1)\
**Post date:** [April 13, 2026, 2:03pm UTC](https://discuss.bluerobotics.com/t/depth-estimate-suddenly-changing-while-positioning-system-enabled/22810/4 "2026-04-13T14:03:39Z")

</div>

Screen recordings of depth reading issues

---

<div class="post-metadata">

**Author:** ![Mac1](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@Mac1](https://discuss.bluerobotics.com/u/Mac1)\
**Post date:** [April 13, 2026, 2:11pm UTC](https://discuss.bluerobotics.com/t/depth-estimate-suddenly-changing-while-positioning-system-enabled/22810/5 "2026-04-13T14:11:18Z")

</div>

> [@tony-white](#):
>
> Are you using a Blue ROV2 = yes , it is almost new ( Ex demo bought 2 weeks ago From SAS ROV France)
> 
> Have you extended or modified the wires going to the sensor in any way? = No
> 
> You may try re-routing the sensor cable in the enclosure to keep it farther away from the power bus bars and ESCa if possible= I replaced the original depth sensor with a new one while out at sea , but the issue remained the same ( old sensor and new sensor, both giving false readings, plus the new sensor was routed in a different area of the enclosure, not on purpose just by chance)
> 
> I operated the ROV for 3 days prior to this issue occurring with out any problems of false readings ( 15-20 dives in total over the 3 days, at depths down to 95 metres)

Nothing that I know off changed from my operating side

thanks

murdo

---

<div class="post-metadata">

**Author:** ![Mac1](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@Mac1](https://discuss.bluerobotics.com/u/Mac1)\
**Post date:** [April 16, 2026, 9:51pm UTC](https://discuss.bluerobotics.com/t/depth-estimate-suddenly-changing-while-positioning-system-enabled/22810/6 "2026-04-16T21:51:30Z")

</div>

Hello Tony

Have you had a chance to look at my Bin logs ? If yes have you seen anything unusual?

As I have an upcoming survey next week and would like to have your input on the issue with the bar sensor.

Thanks appreciate

Murdo

---

<div class="post-metadata">

**Author:** ![sietse](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/sietse/32/16062_2.png) [@sietse](https://discuss.bluerobotics.com/u/sietse)\
**Post date:** [May 5, 2026, 1:05pm UTC](https://discuss.bluerobotics.com/t/depth-estimate-suddenly-changing-while-positioning-system-enabled/22810/7 "2026-05-05T13:05:56Z")

</div>

Hey @Mac1,

I came across this topic and I seem to experience the same issues sometimes with Cockpit V1.17.  
Looking at your two log files you provided, is it true that you’ve actually been to a depth around 14m and 19m? Atleast that’s from what I read from your log files.

The reason I’m asking is because my own log files are displaying the right depths etc throughut the dives, but cockpit is just not displaying them right. So it’s not a hardware issue, or an Ardupilot Firmware related issue, but really just an issue with how Cockpit V1.17 is handling that Depth Data to display.

@tony-white Could you verify that the log file depths are all working properly, but it’s just Cockpit V1.17 having issues with handling the depth data?

---

<div class="post-metadata">

**Author:** ![EliotBR](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/eliotbr/32/6937_2.png) [@EliotBR](https://discuss.bluerobotics.com/u/EliotBR)\
**Post date:** [May 5, 2026, 4:55pm UTC](https://discuss.bluerobotics.com/t/depth-estimate-suddenly-changing-while-positioning-system-enabled/22810/8 "2026-05-05T16:55:00Z")

</div>

> [@Mac1](#):
>
> Screen recordings of depth reading issues

You’re using a [relative altitude indicator](https://blueos.cloud/cockpit/docs/latest/usage/advanced/#altitude-indicator-mini-widget) here, rather than a [depth indicator](https://blueos.cloud/cockpit/docs/latest/usage/advanced/#depth-mini-widget). Is there a particular reason for that?

They use different sources of information, and the relative altitude indicator is generally not intended for use underwater.

> [@Mac1](#):
>
> Have you had a chance to look at my Bin logs ? If yes have you seen anything unusual?

There seems to be quite limited data in both of them, but especially in the first one. In both though it seems the vehicle is losing its depth and altitude estimates for extended periods, so it’s possible there’s some problem with your sensors (or perhaps that you were turning things off throughout the testing period - it’s possible the logs continue where they left off if it wasn’t overly long since the last one ended).

> [@sietse](#):
>
> my own log files are displaying the right depths etc throughut the dives, but cockpit is just not displaying them right.

1. What kind of log files are you looking at? Can you share one?
2. What widget(s) are you using to display the depth?
3. Which values is Cockpit displaying?

> [@sietse](#):
>
> Could you verify that the log file depths are all working properly, but it’s just Cockpit V1.17 having issues with handling the depth data?

This is not a problem we’re aware of, and it definitely seems like something we would have noticed during testing if it was a consistent issue. Please share more information about your setup and how you’re testing so we can advise on potential issues or try to replicate and fix the behaviour you’re seeing.

---

<div class="post-metadata">

**Author:** ![sietse](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/sietse/32/16062_2.png) [@sietse](https://discuss.bluerobotics.com/u/sietse)\
**Post date:** [May 5, 2026, 6:51pm UTC](https://discuss.bluerobotics.com/t/depth-estimate-suddenly-changing-while-positioning-system-enabled/22810/9 "2026-05-05T18:51:29Z")

</div>

Hey @EliotBR !

> [@EliotBR](#):
>
> 1. What kind of log files are you looking at? Can you share one?
> 2. What widget(s) are you using to display the depth?
> 3. Which values is Cockpit displaying?

I’ll share one of my .bin files tomorrow! But also looking at @Mac1 his log files, I see that his Barometer values are not having any weird jumps in there.

I’ve been using the stock depth indicator mini widget in the bottom bar in Cockpit, so not a generic indicator with a attached data lake variable or something. Allthough I found out that when a weird depth is displayed at the depth indicator, VFR\_HUD\_ALT is tweaking as well and is exactly the same weird value the depth indicator is displaying (from what I can see in the Data-Lake). Although when I’m looking into the log file (.bin) of that exact moment, the barometer values seems to be accurate, giving me the absolute depth ratings.

For example, I’ve been testing in a freshwater tank which is about 120cm deep. First few minutes, nothing crazy happened, but all of a sudden the depth indicator bumps to, for example, -8.3m depth. It would not jump weirdly or whatever, but it seems that there appears a random offset all of a sudden.

Can I assume that the VFR\_HUD\_ALT is the correct variable that the actual Depth indicator and the HUD Depth widgets are using?

I’m currently not at my ROV setup, but I possibly have a screen recording of it happening somewhere with a corresponding log file!

---

<div class="post-metadata">

**Author:** ![EliotBR](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/eliotbr/32/6937_2.png) [@EliotBR](https://discuss.bluerobotics.com/u/EliotBR)\
**Post date:** [May 5, 2026, 8:46pm UTC](https://discuss.bluerobotics.com/t/depth-estimate-suddenly-changing-while-positioning-system-enabled/22810/10 "2026-05-05T20:46:42Z")

</div>

> [@sietse](#):
>
> … when I’m looking into the log file (.bin) of that exact moment, the barometer values seems to be accurate, giving me the absolute depth ratings.

Do you have some kind of positioning system, outside of just the barometer?

> [@sietse](#):
>
> Can I assume that the VFR\_HUD\_ALT is the correct variable that the actual Depth indicator and the HUD Depth widgets are using?

They technically [use](https://github.com/bluerobotics/cockpit/blob/6201661a8e28893371c475b66342534bdc346cea/src/libs/vehicle/mavlink/vehicle.ts#L356) the [`AHRS2`](https://mavlink.io/en/messages/ardupilotmega.html#AHRS2) message’s `.alt` field, but depending on your firmware version [`VFR_HUD`](https://mavlink.io/en/messages/common.html#VFR_HUD) (if it is being sent by the autopilot) should include the same data in its `.alt` field.

Note that the relative altitude indicator uses [`GLOBAL_POSITION_INT`](https://mavlink.io/en/messages/common.html#GLOBAL_POSITION_INT)`.relative_alt`.

---

<div class="post-metadata">

**Author:** ![rafael.lehmkuhl](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/rafael.lehmkuhl/32/6630_2.png) [@rafael.lehmkuhl](https://discuss.bluerobotics.com/u/rafael.lehmkuhl)\
**Post date:** [May 5, 2026, 11:38pm UTC](https://discuss.bluerobotics.com/t/depth-estimate-suddenly-changing-while-positioning-system-enabled/22810/11 "2026-05-05T23:38:52Z")

</div>

@sietse please download [this](https://drive.google.com/file/d/1h95LoW3GVTy188YttT6NOtVKRWaydDF7/view?usp=sharing) temporary release and open it. Go to `/menu/settings/dev` and click the “Start” button to generate a MAVLink dump. 10 seconds are enough. Download the file and send here so we can check it. This way we can understand what Cockpit is receiving and why the values being shown are not correct.

PS: that link is for the Windows version. If you’re on Linux or macOS, please find your version [here](https://github.com/bluerobotics/cockpit/actions/runs/25339915489?pr=2655).

---

<div class="post-metadata">

**Author:** ![sietse](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/sietse/32/16062_2.png) [@sietse](https://discuss.bluerobotics.com/u/sietse)\
**Post date:** [May 6, 2026, 7:13am UTC](https://discuss.bluerobotics.com/t/depth-estimate-suddenly-changing-while-positioning-system-enabled/22810/12 "2026-05-06T07:13:28Z")

</div>

Hey @EliotBR and @rafael.lehmkuhl,

> [@EliotBR](#):
>
> Do you have some kind of positioning system, outside of just the barometer?

I do have a GPS and a DVL attached, but the EKF3\_SRC\_POSZ parameters are all set to Baro.

> [@EliotBR](#):
>
> They technically [use](https://github.com/bluerobotics/cockpit/blob/6201661a8e28893371c475b66342534bdc346cea/src/libs/vehicle/mavlink/vehicle.ts#L356) the [`AHRS2`](https://mavlink.io/en/messages/ardupilotmega.html#AHRS2) message’s `.alt` field, but depending on your firmware version [`VFR_HUD`](https://mavlink.io/en/messages/common.html#VFR_HUD) (if it is being sent by the autopilot) should include the same data in its `.alt` field.

Check! Yeah I displayed the VFR\_HUD\_ALT one day when I was having the issues, and that VFR\_HUD\_ALT gave me the exact same values as the Depth Indicator Widget and the HUD Depth widget, so that makes sense. Allthough the Barometer (1) values were always absolute and correct values in my .bin files at that time. So that’s why I’m sceptical about the way how Cockpit actually reads / handles the data.

> [@rafael.lehmkuhl](#):
>
> This way we can understand what Cockpit is receiving and why the values being shown are not correct.

[cockpit-mavlink-dump-2026-05-06T06-55-56-825Z.json](https://discuss.bluerobotics.com/uploads/short-url/qsRwsFMxvTLV7FCvsR7Q1GSl7Zn.json) (425.1 KB)  
Cockpit gave me a .jsonl file. The forum doesn’t allow .jsonl files, so I editted the extension to be just .json so I could upload it here. Hope it doesn’t mess things up for you! I hope you could find something in the Mavlink Dump file!

EDIT:  
Doing further investigation on my logfiles, I came across the following:  
I’ve been displaying the Baro[1].alt, and this one seems to be always correct. No weird jumps, nothing.  
Although AHR2.Alt is having some weird jumps here and there. Some of those random offset jumps are displayed here in the following photo’s.

 ![Schermafbeelding 2026-05-06 092535](https://us1.discourse-cdn.com/flex019/uploads/bluerobotics/original/3X/1/5/15d86f5f3b90eefe42cea48c7a614faefa3bacda.png)

 ![Schermafbeelding 2026-05-06 092129](https://us1.discourse-cdn.com/flex019/uploads/bluerobotics/original/3X/4/c/4c96683724326325bc37e4dea29a52a59ff3955a.png)

 ![Schermafbeelding 2026-05-06 091941](https://us1.discourse-cdn.com/flex019/uploads/bluerobotics/original/3X/7/7/772cd752feba3cbc36ab443bb491330f12185c36.png)

 ![Schermafbeelding 2026-05-06 091751](https://us1.discourse-cdn.com/flex019/uploads/bluerobotics/original/3X/8/1/81ee601a11f9283c7f9f03a19113852e1c6d734f.png)

EDIT 2:  
I just did another test. Cockpit kept displaying 0m for the whole dive. In this following log, you can see Baro[1].alt is doing the right thing again. AHR2.alt is shifting a couple of times.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/bluerobotics/original/3X/7/6/769415967b1e59c19fa1982ca12157aa6f404588.png)

---

<div class="post-metadata">

**Author:** ![rafael.lehmkuhl](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/rafael.lehmkuhl/32/6630_2.png) [@rafael.lehmkuhl](https://discuss.bluerobotics.com/u/rafael.lehmkuhl)\
**Post date:** [May 6, 2026, 5:18pm UTC](https://discuss.bluerobotics.com/t/depth-estimate-suddenly-changing-while-positioning-system-enabled/22810/13 "2026-05-06T17:18:41Z")

</div>

@sietse from the JSONL log you sent, all your AHRS2.Altitude are 0:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/bluerobotics/original/3X/3/b/3b39689ea41090e16cf64227e583671a86f839fc.jpeg)

---

<div class="post-metadata">

**Author:** ![rafael.lehmkuhl](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/rafael.lehmkuhl/32/6630_2.png) [@rafael.lehmkuhl](https://discuss.bluerobotics.com/u/rafael.lehmkuhl)\
**Post date:** [May 6, 2026, 6:11pm UTC](https://discuss.bluerobotics.com/t/depth-estimate-suddenly-changing-while-positioning-system-enabled/22810/14 "2026-05-06T18:11:57Z")

</div>

@sietse my friend @williangalvani, which is the ArduSub maintainer, has asked you to update your vehicle firmware to the latest stable (4.5.7). He said there were fixes around the altitude values between 4.5.3 and 4.5.7 that can be the solution here.

---

<div class="post-metadata">

**Author:** ![sietse](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/sietse/32/16062_2.png) [@sietse](https://discuss.bluerobotics.com/u/sietse)\
**Post date:** [May 7, 2026, 7:12am UTC](https://discuss.bluerobotics.com/t/depth-estimate-suddenly-changing-while-positioning-system-enabled/22810/15 "2026-05-07T07:12:37Z")

</div>

Hey @rafael.lehmkuhl ,

> [@rafael.lehmkuhl](#):
>
> @sietse from the JSONL log you sent, all your AHRS2.Altitude are 0

I’m so sorry for the JSONL log. I had it running while the ROV was surfaced (read: on the table).  
I’m gonna make a new Mavlink Dump JSONL in a few hours!

> [@rafael.lehmkuhl](#):
>
> He said there were fixes around the altitude values between 4.5.3 and 4.5.7 that can be the solution here.

We’re actually running ArduSub 4.5.7! Recently I got a client with the exact same issue going on, and he confirmed he was running 4.5.7 aswell.

---

<div class="post-metadata">

**Author:** ![EliotBR](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/eliotbr/32/6937_2.png) [@EliotBR](https://discuss.bluerobotics.com/u/EliotBR)\
**Post date:** [May 7, 2026, 8:06am UTC](https://discuss.bluerobotics.com/t/depth-estimate-suddenly-changing-while-positioning-system-enabled/22810/16 "2026-05-07T08:06:22Z")

</div>

> [@sietse](#):
>
> The forum doesn’t allow .jsonl files

I’ve fixed this now - thanks for mentioning it 🙂

---

<div class="post-metadata">

**Author:** ![sietse](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/sietse/32/16062_2.png) [@sietse](https://discuss.bluerobotics.com/u/sietse)\
**Post date:** [May 7, 2026, 3:30pm UTC](https://discuss.bluerobotics.com/t/depth-estimate-suddenly-changing-while-positioning-system-enabled/22810/17 "2026-05-07T15:30:44Z")

</div>

Hey @rafael.lehmkuhl !

I just made 3 Cockpit Mavlink Dumps! Hope this will help us out.

[cockpit-mavlink-dump-2026-05-07T15-04-18-601Z.jsonl](https://discuss.bluerobotics.com/uploads/short-url/1p5DIANm8cV0njYRJ202u343VMg.jsonl) (550.7 KB)

[cockpit-mavlink-dump-2026-05-07T15-03-17-493Z.jsonl](https://discuss.bluerobotics.com/uploads/short-url/3W01870320uLc1HvZwX4WSsxCNZ.jsonl) (428.0 KB)

[cockpit-mavlink-dump-2026-05-07T14-59-23-178Z.jsonl](https://discuss.bluerobotics.com/uploads/short-url/uLWsGmwFFyRfeexSYntYKhVGvyc.jsonl) (846.7 KB)

The .bin logfiles of the dive, stated that there indeed has been proper depth readings by BARO[1].alt. Down below one of the log files is showed. It had the right absolute values in there etc. AHR2.Alt seems to start off properly but will shift by 4 ish meters like showing below:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/bluerobotics/original/3X/3/2/32010ad359979821ada0e228049c51e1d274b456.png)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![amarburg](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@amarburg](https://discuss.bluerobotics.com/u/amarburg)\
**Post date:** [May 7, 2026, 8:02pm UTC](https://discuss.bluerobotics.com/t/depth-estimate-suddenly-changing-while-positioning-system-enabled/22810/18 "2026-05-07T20:02:30Z")

</div>

I’m hoping this is an easy problem. (BlueOS 1.4.3 fwiw).

We have a BlueROV with an older Red pressure sensor. I _believe_ the sensor gives a good absolute pressure reading all the time (e.g., it’s not swinging wildly or dropping out).

On ROV startup, the “calibrated at” value is reasonable and the calculated depth also makes sense:

 ![Screenshot 2026-05-07 at 12.51.35 PM](https://us1.discourse-cdn.com/flex019/uploads/bluerobotics/original/3X/d/1/d15c3cf52da465081ddda71390d4f9a5bc53048a.jpeg)

~10 minutes (approx) after startup the calibration changes without our intervention:

 ![Screenshot 2026-05-07 at 12.51.59 PM](https://us1.discourse-cdn.com/flex019/uploads/bluerobotics/original/3X/b/a/baba496cc687f9b46fdec62d39ed7cd7bd8d8b63.jpeg)

We can click “calibrate” and it will momentarily show a new value, but the depth is still not correct and soon after the configure screen will show the 979hPa value. The `BARO2_GND_ PRESS` parameter never changes when we “calibrate” and I cannot change it through the parameter editor.

With some further checking we discovered the system continued to calculate a correct “depth” of -40m which does vary correctly as the ROV moves.

May be related to the relative vintage of the pressure sensor?

---

<div class="post-metadata">

**Author:** ![EliotBR](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/eliotbr/32/6937_2.png) [@EliotBR](https://discuss.bluerobotics.com/u/EliotBR)\
**Post date:** [May 7, 2026, 10:54pm UTC](https://discuss.bluerobotics.com/t/depth-estimate-suddenly-changing-while-positioning-system-enabled/22810/19 "2026-05-07T22:54:00Z")

</div>

Hi @amarburg,

I’ve moved your post here, because it may be on the same topic.

It’s worth noting that

> [@Bar100 Depth Sensor Error](https://discuss.bluerobotics.com/t/bar100-depth-sensor-error/12400/30):
>
> [ArduSub automatically re-calibrates its barometer offset whenever it is lower pressure than the previous calibration](https://github.com/ArduPilot/ardupilot/blob/master/ArduSub/sensors.cpp#L10), under the assumption that it is out of the water / at the surface.

Could you provide a DataFlash (.bin) log from the autopilot (e.g. fetched from the “Log Browser” page), so we can try to determine whether the sensor is giving noisy readings that are causing the jumps, or something else is afoot?

Others in this thread seem to be having issues with the autopilot’s depth estimate jumping away from the estimate of the barometer, but from your description yours may be more confined to the handling/driver of the sensor itself.

---

<div class="post-metadata">

**Author:** ![amarburg](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@amarburg](https://discuss.bluerobotics.com/u/amarburg)\
**Post date:** [May 8, 2026, 3:27am UTC](https://discuss.bluerobotics.com/t/depth-estimate-suddenly-changing-while-positioning-system-enabled/22810/20 "2026-05-08T03:27:21Z")

</div>

@EliotBR ahha. I had discounted a faulty sensor or I2C comms error because I couldn’t see how that would change the calibration, but that now makes sense.

I’ve attached a sample BIN – the ROV was stationary in the bench, so minimal EMI – and it **does** have spurious pressure values for the `baro[1].press`

 ![Screenshot 2026-05-07 at 8.22.23 PM](https://us1.discourse-cdn.com/flex019/uploads/bluerobotics/original/3X/8/9/89b498c2bc303a6140d7dd2093afa360ce59c965.jpeg)

I can try some of the mitigations. Just from the nature of the outliers, any guesses on whether its a failing sensor or an I2C error. Are these consistent with a rare single bit error in the I2C stream?

[00000011.BIN](https://discuss.bluerobotics.com/uploads/short-url/4yDW5caWqwHRGMOabn9AeBs30f.BIN) (3.2 MB)

[Next page](https://discuss.bluerobotics.com/t/depth-estimate-suddenly-changing-while-positioning-system-enabled/22810.md?page=2)
