Home        Store        Learn        Blog

How to send constant throttle to ardusub via pymavlink? Keeps disconnecting on SITL with my way

Hey there! I’m working on some functions to allow for movement of the sub. I’m testing everything with software in the loop right now. For sending constant input of throttle I’m just using a loop to keep sending manual control throttle to the sub after waiting for a heartbeat each time, but for some reason in QGroundControl it loses vehicle connection after a few iterations of the loop until the loop stops then it regains connection. Is there a better way of sending constant throttle? Thanks!


Please share a minimum example that replicates your issue.
Also, I would recommend to use two different ports, one for your script and the other for QGC if you are not doing it already.

1 Like