# Receiving custom telem from mavlink in QGC

**URL:** <https://discuss.px4.io/t/receiving-custom-telem-from-mavlink-in-qgc/18958>\
**Category:** Uncategorized\
**Created:** [October 8, 2020, 8:34pm UTC](https://discuss.px4.io/t/receiving-custom-telem-from-mavlink-in-qgc/18958 "2020-10-08T20:34:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pepper](https://discuss.px4.io/letter_avatar_proxy/v4/letter/p/3da27b/32.png) [@pepper](https://discuss.px4.io/u/pepper)\
**Post date:** [October 8, 2020, 8:34pm UTC](https://discuss.px4.io/t/receiving-custom-telem-from-mavlink-in-qgc/18958/1 "2020-10-08T20:34:42Z")

</div>

My first question is, do I need to rebuild qgroundcontrol with the source code updated to reflect my changed mavlink headers? I am currently using the regular install.

I’m adding custom telemetry to mavlink and not seeing the message in QGC. I’ve used python mavgenerate to regenerate the mavlink headers with my added message in common.xml. I made the associated changes to mavlink\_messages.cpp, as detailed in this post  
[https://dev.px4.io/v1.9.0/en/middleware/mavlink.html](https://dev.px4.io/v1.9.0/en/middleware/mavlink.html)  
and mavlink\_main.cpp, adding it to the stream for the various cases.

I’ve been trying to piece together the steps from the following links.

> [@Flight controller transmit custom mavlink message to QGC station](https://discuss.px4.io/t/flight-controller-transmit-custom-mavlink-message-to-qgc-station/337):
>
> I transmit a custom mavlink message from px4 flight controller to qgc station, but the message received by qgc is wrong. The mavlink protocal version is v1.0. My custom mavlink message is as follows : The custom mavlink message includes the common.xml. And I use mavgenerate.py tool to generate C style mavlink message code. Now there is a strange phenomenon. It is the QGC station can received the custom mavlink message. But “MAVLink Inspector” and “Analyze” widgets can’t recongnize…

> [@Adding MAVlink channel data](https://discuss.px4.io/t/adding-mavlink-channel-data/2824):
>
> Trying to add a message to MAVlink for the voltage data from the 3.3V ADC port on the Pixhawk. I’ve got the code written, and the libraries stored, but the data isn’t coming through. Wanted to submit my code here just to make sure I’m not making a dumb mistake. Message file is “adc\_report.msg” which already collects voltage data. .xml file \<?xml version="1.0"?\> \<mavlink\> \<messages\> \<message id="160" name="ADC\_REPORT"\> \<description\> This message encodes voltage data from pins …

---

<div class="post-metadata">

**Author:** ![DonLakeFlyer](https://discuss.px4.io/user_avatar/discuss.px4.io/donlakeflyer/32/3036_2.png) [@DonLakeFlyer](https://discuss.px4.io/u/DonLakeFlyer)\
**Post date:** [October 9, 2020, 8:31pm UTC](https://discuss.px4.io/t/receiving-custom-telem-from-mavlink-in-qgc/18958/2 "2020-10-09T20:31:30Z")

</div>

> [@pepper](#):
>
> My first question is, do I need to rebuild qgroundcontrol with the source code updated to reflect my changed mavlink headers?

Yes. You also need to keep in mind that QGC is built with the ArduPilot mavlink dialect which is a superset.

---

<div class="post-metadata">

**Author:** ![pepper](https://discuss.px4.io/letter_avatar_proxy/v4/letter/p/3da27b/32.png) [@pepper](https://discuss.px4.io/u/pepper)\
**Post date:** [October 13, 2020, 7:47pm UTC](https://discuss.px4.io/t/receiving-custom-telem-from-mavlink-in-qgc/18958/3 "2020-10-13T19:47:59Z")

</div>

Ok, great. Thanks for confirming that.
