# Ping 360 basic example

**URL:** <https://discuss.bluerobotics.com/t/ping-360-basic-example/6586>\
**Category:** Sensors\
**Created:** [December 21, 2019, 3:51pm UTC](https://discuss.bluerobotics.com/t/ping-360-basic-example/6586 "2019-12-21T15:51:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johnv](https://avatars.discourse-cdn.com/v4/letter/j/e47774/32.png) [@Johnv](https://discuss.bluerobotics.com/u/Johnv)\
**Post date:** [December 21, 2019, 3:51pm UTC](https://discuss.bluerobotics.com/t/ping-360-basic-example/6586/1 "2019-12-21T15:51:49Z")

</div>

Hi All,  
Are there any simple, but complete C++ QT example programs for the ping 360, for instance to simply command the device to a certain angle, make a measurement, give the confidence. similar to the arduino example provided for the 1d.

I’ve trawled through the documentation, and the repos on git, but can’t find anything.

thanks  
John

---

<div class="post-metadata">

**Author:** ![Stormix](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/stormix/32/4815_2.png) [@Stormix](https://discuss.bluerobotics.com/u/Stormix)\
**Post date:** [December 21, 2019, 9:46pm UTC](https://discuss.bluerobotics.com/t/ping-360-basic-example/6586/2 "2019-12-21T21:46:30Z")

</div>

Hello there,  
I think the C++ lib is still a [work in progress](https://github.com/bluerobotics/ping-cpp/pull/9), the main issue is with the PingDevice class that handles the communication with the sonar. You can however use the [Python one](https://pypi.org/project/bluerobotics-ping/) as it’s pretty straight forward and easy to use.

---

<div class="post-metadata">

**Author:** ![patrickelectric](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/patrickelectric/32/2162_2.png) [@patrickelectric](https://discuss.bluerobotics.com/u/patrickelectric)\
**Post date:** [December 22, 2019, 12:39pm UTC](https://discuss.bluerobotics.com/t/ping-360-basic-example/6586/3 "2019-12-22T12:39:45Z")

</div>

Hi,

Please check [Ping-Viewer source code here](https://github.com/bluerobotics/ping-viewer), you can check the [ping360.cpp](https://github.com/bluerobotics/ping-viewer/blob/master/src/sensor/ping360.cpp) for more information about how to deal with Ping360 sensor.

Besides that, as said, we also have the [C++ library](https://github.com/bluerobotics/ping-cpp/tree/deployment) that provides the protocol abstraction for Ping-Viewer. We are still working to provide the best library possible for the users and for the different use cases, but right now is totally possible to use the libraries to communicate with the sensor, since it’s already being done in Ping-Viewer.
