# Decoding PX4 Debug messages with pyMavlink

**URL:** <https://discuss.px4.io/t/decoding-px4-debug-messages-with-pymavlink/4643>\
**Category:** Uncategorized\
**Created:** [October 11, 2017, 3:09pm UTC](https://discuss.px4.io/t/decoding-px4-debug-messages-with-pymavlink/4643 "2017-10-11T15:09:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anandbaskaran](https://discuss.px4.io/letter_avatar_proxy/v4/letter/a/b77776/32.png) [@anandbaskaran](https://discuss.px4.io/u/anandbaskaran)\
**Post date:** [October 11, 2017, 3:09pm UTC](https://discuss.px4.io/t/decoding-px4-debug-messages-with-pymavlink/4643/1 "2017-10-11T15:09:17Z")

</div>

Hello!

I am using DEBUG messages of PX4 specifically NAMED\_VALUE\_FLOAT ([Sending Debug Values · PX4 Developer Guide](https://dev.px4.io/en/debug/debug_values.html)). I am using trying to decode the same with pyMavlink ([https://github.com/mavlink/pymavlink](https://github.com/mavlink/pymavlink)) and I could not succeed!

The scripts always waits in mav.recv\_match(type=‘NAMED\_VALUE\_FLOAT’, blocking= True). Additionally, I could not see this particular message by printing all the Mavlink messages received from PX4 as well. However, I could see the print statement in the PX4 console, which states that the message is sent!

Any help on this is appreciated!

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![anandbaskaran](https://discuss.px4.io/letter_avatar_proxy/v4/letter/a/b77776/32.png) [@anandbaskaran](https://discuss.px4.io/u/anandbaskaran)\
**Post date:** [October 12, 2017, 10:15am UTC](https://discuss.px4.io/t/decoding-px4-debug-messages-with-pymavlink/4643/2 "2017-10-12T10:15:31Z")

</div>

I have explored a bit more and find that the Mavlink message is not being sent by the PX4. I followed the tutorial [https://dev.px4.io/en/debug/debug\_values.html](https://dev.px4.io/en/debug/debug_values.html) and still could not manage to make the app working! Can you please help me if I am missing something??

---

<div class="post-metadata">

**Author:** ![anandbaskaran](https://discuss.px4.io/letter_avatar_proxy/v4/letter/a/b77776/32.png) [@anandbaskaran](https://discuss.px4.io/u/anandbaskaran)\
**Post date:** [October 12, 2017, 12:43pm UTC](https://discuss.px4.io/t/decoding-px4-debug-messages-with-pymavlink/4643/3 "2017-10-12T12:43:13Z")

</div>

Sorry, it was my mistake! Make sure to configure corresponding stream on [https://github.com/PX4/Firmware/blob/master/src/modules/mavlink/mavlink\_messages.cpp](https://github.com/PX4/Firmware/blob/master/src/modules/mavlink/mavlink_messages.cpp)
