# Pymavlink with ardsubu beta

**URL:** <https://discuss.bluerobotics.com/t/pymavlink-with-ardsubu-beta/7137>\
**Category:** Blue Robotics Software\
**Tags:** ardusub, pymavlink\
**Created:** [April 1, 2020, 8:12am UTC](https://discuss.bluerobotics.com/t/pymavlink-with-ardsubu-beta/7137 "2020-04-01T08:12:34Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![arend](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@arend](https://discuss.bluerobotics.com/u/arend)\
**Post date:** [April 1, 2020, 8:12am UTC](https://discuss.bluerobotics.com/t/pymavlink-with-ardsubu-beta/7137/1 "2020-04-01T08:12:34Z")

</div>

Anyone else experience troubles when trying to run the example code of pymavlink when using ardusub version beta (4.0.0) ?  
setting pwm to channels works fine with stable version but as soon as im trying to arm the or set some thrust when using version 4.0.0 the thrusters turn in max speed

---

<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:** [April 1, 2020, 2:26pm UTC](https://discuss.bluerobotics.com/t/pymavlink-with-ardsubu-beta/7137/2 "2020-04-01T14:26:40Z")

</div>

Hi @arend,

Do you mind testing 4.0.1 (ardusub-stable tag in github) or 4.1-dev (master in github)?  
We are about to announce the 4.0.1 stable and I’m afraid your code could be a little outdated.

---

<div class="post-metadata">

**Author:** ![arend](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@arend](https://discuss.bluerobotics.com/u/arend)\
**Post date:** [April 2, 2020, 8:32am UTC](https://discuss.bluerobotics.com/t/pymavlink-with-ardsubu-beta/7137/3 "2020-04-02T08:32:35Z")

</div>

Hi @williangalvani

I’ve tried it again today. It seems that I’ve used some outdated set\_rc\_channel\_pwm function. But, after updating the the current version ([Pymavlink · GitBook](http://www.ardusub.com/developers/pymavlink.html)) i get the following exception  
TypeError: rc\_channels\_override\_send() takes at most 12 arguments (21 given).

Im using version 4.0.1 and a companion with version 0.0.19.

To be more precise if im using the ols version of set\_rc\_channel\_pwm then the the thrusters run at max no matter what pwm command im sending.

Hope you can help me further

---

<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:** [April 2, 2020, 1:28pm UTC](https://discuss.bluerobotics.com/t/pymavlink-with-ardsubu-beta/7137/4 "2020-04-02T13:28:00Z")

</div>

Hi @arend,

Can you check your pymalink version with `pip show pymavlink`?

It works fine here with `pymavlink==2.4.0`

---

<div class="post-metadata">

**Author:** ![arend](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@arend](https://discuss.bluerobotics.com/u/arend)\
**Post date:** [April 3, 2020, 6:38am UTC](https://discuss.bluerobotics.com/t/pymavlink-with-ardsubu-beta/7137/5 "2020-04-03T06:38:31Z")

</div>

Hi @williangalvani.

I see that that I’m using pymavlink version 2.2.4. I’ll upgrade to 2.4.0 and check it again

---

<div class="post-metadata">

**Author:** ![arend](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@arend](https://discuss.bluerobotics.com/u/arend)\
**Post date:** [April 3, 2020, 7:00am UTC](https://discuss.bluerobotics.com/t/pymavlink-with-ardsubu-beta/7137/6 "2020-04-03T07:00:01Z")

</div>

Hi @williangalvani

I’ve just upgraded pymavlink to version 2.4.0. The error disappeared but now as before it runs the thrusters with full speed.

I’ve tested a bit more to try and localize the error and it seems that this thing happen as soon as i arm the system. I’ve commented the set\_rc\_channel command and as soon as the rov is being armed the thrusters run with full power…

---

<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:** [April 3, 2020, 1:36pm UTC](https://discuss.bluerobotics.com/t/pymavlink-with-ardsubu-beta/7137/7 "2020-04-03T13:36:11Z")

</div>

Hi @arend

So you script is only arming? In Manual mode?  
What is your setup? Is it a BlueRov?  
What ESCs are you using?

---

<div class="post-metadata">

**Author:** ![arend](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@arend](https://discuss.bluerobotics.com/u/arend)\
**Post date:** [April 5, 2020, 1:24pm UTC](https://discuss.bluerobotics.com/t/pymavlink-with-ardsubu-beta/7137/8 "2020-04-05T13:24:12Z")

</div>

Yes @williangalvani , I’ve commented everything out for debugging purposes and they only thing I’m doing now is arming the Rov.  
It’s a blueRov with 8 thrusters and im suing bluerobotics basic ESC for all the thrusters.  
companion version 0.0.19 and pixhawk firmware version 4.0.1

---

<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:** [April 5, 2020, 3:43pm UTC](https://discuss.bluerobotics.com/t/pymavlink-with-ardsubu-beta/7137/9 "2020-04-05T15:43:56Z")

</div>

Hi @arend,

Can you share a [log](https://www.ardusub.com/operators-manual/logging.html)? Both Telemetry log and Dataflash log should be fine.

---

<div class="post-metadata">

**Author:** ![arend](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@arend](https://discuss.bluerobotics.com/u/arend)\
**Post date:** [April 7, 2020, 12:02pm UTC](https://discuss.bluerobotics.com/t/pymavlink-with-ardsubu-beta/7137/10 "2020-04-07T12:02:36Z")

</div>

Hi @williangalvani

Here are the two logs files. Hope it helps. I really dont understand why it works fine with firmware version 3.5.4 but runs all thruster on max with version 4.0.0 or 4.0.1 with the same script

[log\_0\_UnknownDate.bin](https://discuss.bluerobotics.com/uploads/short-url/kMTSJxDEm2rfM8ffwuucq44cLYz.bin) (3.9 MB) [log1.bin](https://discuss.bluerobotics.com/uploads/short-url/Agas4ovrXlunwguWLpx8ALRHM2O.bin) (1.8 MB)

---

<div class="post-metadata">

**Author:** ![Youssefattia\_98](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/youssefattia_98/32/6650_2.png) [@Youssefattia\_98](https://discuss.bluerobotics.com/u/Youssefattia_98)\
**Post date:** [May 29, 2021, 1:13am UTC](https://discuss.bluerobotics.com/t/pymavlink-with-ardsubu-beta/7137/11 "2021-05-29T01:13:49Z")

</div>

hello arend have you reached any solution for this problem ?
