# Help Understanding Interfaces

**URL:** <https://discuss.bluerobotics.com/t/help-understanding-interfaces/5600>\
**Category:** Sensors\
**Created:** [July 22, 2019, 2:41pm UTC](https://discuss.bluerobotics.com/t/help-understanding-interfaces/5600 "2019-07-22T14:41:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TrevorSaldana](https://avatars.discourse-cdn.com/v4/letter/t/a9adbd/32.png) [@TrevorSaldana](https://discuss.bluerobotics.com/u/TrevorSaldana)\
**Post date:** [July 22, 2019, 2:41pm UTC](https://discuss.bluerobotics.com/t/help-understanding-interfaces/5600/1 "2019-07-22T14:41:27Z")

</div>

BlueRobotics ROV2 underwater robot. It uses QGround Control on a laptop with an XBox controller for manual flight mode. It is made a Pixhawk fight controller and a raspberry pi, so it can be reprogrammed with Python. Our plan is to give it some basic autonomous travel coding.

The problem we are having is understanding exactly how to give it the autonomous commands. All of the research we have done says to use mavlink, pymavlink and mavproxy with QGround Control. We are having some trouble understanding what role all of these play in the program, and how exactly to upload the code. [UC Browser](https://www.ucbrowser.vip/)[SHAREit](https://shareit.onl/)

Are all of these needed? Which one actually handles the Python Script? Any help or advice would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![williangalvani](https://avatars.discourse-cdn.com/v4/letter/w/6f9a4e/32.png) [@williangalvani](https://discuss.bluerobotics.com/u/williangalvani)\
**Post date:** [July 22, 2019, 3:16pm UTC](https://discuss.bluerobotics.com/t/help-understanding-interfaces/5600/2 "2019-07-22T15:16:02Z")

</div>

Hello,

The Python script can run on both the raspberry Pi or the topside computer alongside QGC.

The Pixhawk is the flight controller, it handles the ROV itself.  
The Raspberry PI handles communication with topside, video, some extra sensors, and has a web interface help manage all this.

The Mavlink commands are “bridged” to the topside by the Raspberry Pi, that is why you can talk to it from both places.

Depending on what you are planning to do, you can choose to run it at the companion(slightly lower latency) or at the topside (more processing power).

> [@TrevorSaldana](#):
>
> The problem we are having is understanding exactly how to give it the autonomous commands. All of the research we have done says to use mavlink, pymavlink and mavproxy with QGround Control. We are having some trouble understanding what role all of these play in the program, and how exactly to upload the code.

Mavproxy is already installed in the Raspberry Pi. It bridges the communication with QGC (like a man-in-the-middle) and possibly other devices. Pymavlink is a Python implementation of mavlink.

> [@TrevorSaldana](#):
>
> Are all of these needed? Which one actually handles the Python Script? Any help or advice would be greatly appreciated.

All you need to install at your PC is pymavlink. The communication will be done via UDP.  
See [the MANUAL\_CONTROL example](https://www.ardusub.com/developers/pymavlink.html#send-manual-control).

Best regards,

---

<div class="post-metadata">

**Author:** ![kg9316](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/kg9316/32/4155_2.png) [@kg9316](https://discuss.bluerobotics.com/u/kg9316)\
**Post date:** [July 26, 2019, 8:59am UTC](https://discuss.bluerobotics.com/t/help-understanding-interfaces/5600/3 "2019-07-26T08:59:34Z")

</div>

Wouldn’t it be better to use guided mode for this ?
