# Running QGroundControl in parallel with Python script

**URL:** <https://discuss.bluerobotics.com/t/running-qgroundcontrol-in-parallel-with-python-script/12975>\
**Category:** Blue Robotics Software\
**Tags:** pymavlink\
**Created:** [September 27, 2022, 10:31pm UTC](https://discuss.bluerobotics.com/t/running-qgroundcontrol-in-parallel-with-python-script/12975 "2022-09-27T22:31:25Z")\
**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:** [September 29, 2022, 5:08am UTC](https://discuss.bluerobotics.com/t/running-qgroundcontrol-in-parallel-with-python-script/12975/2 "2022-09-29T05:08:05Z")

</div>

Hi @autery,

I just loaded up my old Companion SD card to try this, and it worked immediately.

My steps were

1. Go to [http://192.168.2.2:2770/mavproxy](http://192.168.2.2:2770/mavproxy)
2. Add `--out udpbcast:192.168.2.255:14551`
  - I put it just under the existing line for port 14550
  - I also tried port 14770 and `udpout:192.168.2.1:14551`, both of which worked fine as well

3. Press ‘Restart MAVProxy’ button
  - The page flashed briefly - the buttons did not go grey

4. Refreshed the web page to make sure it wasn’t just stuck on the old one
5. Confirmed that the connection was working on my topside computer

```python
from pymavlink import mavutil
port = 14551
m = mavutil.mavlink_connection('udpin:0.0.0.0:{}'.format(port))
m.wait_heartbeat()
print('connection success!')

```

6. Rebooted the Raspberry Pi (via the “Reboot” button in the top right corner) and confirmed my MAVProxy update was still there

Which Companion version are you on? I was testing on 0.0.31 (the last version), and my parameters after pressing “Restore Default Options” were

```nohighlight
--master=/dev/autopilot,115200
--load-module='GPSInput,DepthOutput'
--source-system=200
--cmd="set heartbeat 0"
--cmd="param forceload /home/pi/companion/params/serial0.param"
--logfile=/tmp/telemetry.tlog
--out udpin:localhost:9000
--out udpin:0.0.0.0:14660
--out udpbcast:192.168.2.255:14550
--mav20
--streamrate 10
--default-modules=output,param

```

* * *

As a side note, you may wish to try out [BlueOS](https://discuss.bluerobotics.com/t/blueos-official-release/12024). The same functionality is available via the [Endpoints page](https://docs.bluerobotics.com/ardusub-zola/software/onboard/BlueOS-1.0/advanced-usage/#endpoints) (when in [Pirate Mode](https://docs.bluerobotics.com/ardusub-zola/software/onboard/BlueOS-1.0/advanced-usage/#pirate-mode)) 🙂

---

_[View the full topic](https://discuss.bluerobotics.com/t/running-qgroundcontrol-in-parallel-with-python-script/12975)._
