# Depth vs Ping data

**URL:** <https://discuss.bluerobotics.com/t/depth-vs-ping-data/13036>\
**Category:** Ping Sonar Devices\
**Created:** [October 11, 2022, 2:59pm UTC](https://discuss.bluerobotics.com/t/depth-vs-ping-data/13036 "2022-10-11T14:59:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [October 13, 2022, 7:26am UTC](https://discuss.bluerobotics.com/t/depth-vs-ping-data/13036/2 "2022-10-13T07:26:46Z")

</div>

Hi @Charles,

> [@Charles](#):
>
> When the ROV reach 15m and the sonar read about 2.8 from the bottom, the Ping reading suddenly shift reaching \>20m. Of course this is impossible since I was near the bottom. It’s clearly a gain or offset effect.

Most likely the altitude distance was too short for the sonar to detect with its configured scanning range and gain, in which case the next strongest response is likely after the ping has reflected up off the bottom, down off the surface, and back up off the bottom again:

\begin{align} \text{measurement} &= 2\cdot\text{altitude} + \text{depth}\\ \rightarrow \text{altitude}\_\text{corrected} &= \frac{\text{measurement} - \text{depth}}{2} \end{align}

The [ArduPilot ping library](https://github.com/ArduPilot/ardupilot/blob/master/libraries/AP_RangeFinder/AP_RangeFinder_BLPing.cpp#L39-L48) doesn’t seem to do any configuration of the settings, so the sonar will be operating in its default automatic mode.

I would expect the profile data to show usable signal at the range you were at, but its possible the distance estimator could be struggling there and start searching further away, especially if there are weak reflections from things like plants, fish, and particulate matter between the bottom and the sonar.

---

_[View the full topic](https://discuss.bluerobotics.com/t/depth-vs-ping-data/13036)._
