# Control thruser by python

**URL:** <https://discuss.bluerobotics.com/t/control-thruser-by-python/10886>\
**Category:** Blue Robotics Software\
**Tags:** ardusub, pymavlink\
**Created:** [October 25, 2021, 2:46am UTC](https://discuss.bluerobotics.com/t/control-thruser-by-python/10886 "2021-10-25T02:46:44Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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 26, 2021, 11:46am UTC](https://discuss.bluerobotics.com/t/control-thruser-by-python/10886/4 "2021-10-26T11:46:35Z")

</div>

Hi @Richard1,

Someone else had a similar issue, so I commented there:

> [@When Python runs the "send RC" script, the result is incorrect](https://discuss.bluerobotics.com/t/when-python-runs-the-send-rc-script-the-result-is-incorrect/10803/4):
>
> Hi @White, welcome to the forum slight_smile I did some testing today and found that the motion should be explicitly set to stopped before arming, otherwise arming can sometimes resume the last thruster state from the last time the vehicle was armed. If you’re interested I’ve made an example program [here](https://gist.github.com/ES-Alexander/ee1dd479dd728b7cef1bf936f9114e71), which sends regular heartbeats and handles arming/disarming and setting the flight mode.

---

_[View the full topic](https://discuss.bluerobotics.com/t/control-thruser-by-python/10886)._
