# Custom parameters' description not showing in QGC

**URL:** <https://discuss.px4.io/t/custom-parameters-description-not-showing-in-qgc/21883>\
**Category:** Uncategorized\
**Created:** [April 11, 2021, 12:31pm UTC](https://discuss.px4.io/t/custom-parameters-description-not-showing-in-qgc/21883 "2021-04-11T12:31:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![whiss](https://discuss.px4.io/letter_avatar_proxy/v4/letter/w/f07891/32.png) [@whiss](https://discuss.px4.io/u/whiss)\
**Post date:** [April 11, 2021, 12:31pm UTC](https://discuss.px4.io/t/custom-parameters-description-not-showing-in-qgc/21883/1 "2021-04-11T12:31:31Z")

</div>

Hello,

I’ve added custom parameters to the software for a custom module I’m building, and while the parameters do appear in QGC when the module is running and seem to work fine, I’m not getting the description, unit nor the min/max values in QGC. Is there any step I missed ?

I followed the metadata procedure from [https://dev.px4.cc/master/en/advanced/parameters\_and\_configurations.html](https://dev.px4.cc/master/en/advanced/parameters_and_configurations.html) and the parameters.xml generated file does have the description fields correctly filled, example :

```
<parameter name="MYMOD_R_T" default="0.3" type="FLOAT">
      <short_desc>Roll failure trigger time</short_desc>
      <long_desc>Seconds (decimal) that roll has to exceed MYMOD_R before being considered as a failure.</long_desc>
      <min>0.02</min>
      <max>5</max>
      <unit>s</unit>
      <decimal>2</decimal>`
    </parameter>
```

---

<div class="post-metadata">

**Author:** ![takhashi](https://discuss.px4.io/user_avatar/discuss.px4.io/takhashi/32/8668_2.png) [@takhashi](https://discuss.px4.io/u/takhashi)\
**Post date:** [May 10, 2021, 3:24am UTC](https://discuss.px4.io/t/custom-parameters-description-not-showing-in-qgc/21883/2 "2021-05-10T03:24:28Z")

</div>

Hi,

I think what you need to do is:

1. bump up parameter\_version\_minor in src/lib/parameters/px4params/xmlout.py
2. clean build
3. write the firmware via QGC

Hope it helps:)

---

<div class="post-metadata">

**Author:** ![mortenfyhn](https://discuss.px4.io/user_avatar/discuss.px4.io/mortenfyhn/32/8595_2.png) [@mortenfyhn](https://discuss.px4.io/u/mortenfyhn)\
**Post date:** [May 10, 2021, 6:43am UTC](https://discuss.px4.io/t/custom-parameters-description-not-showing-in-qgc/21883/3 "2021-05-10T06:43:48Z")

</div>

I’ve been confused by this too.

A method that worked for me was to build QGC myself, and replace its parameter xml file with the one generated by running `make px4_metadata` in the PX4-Autopilot repository.

Of course, a big drawback is that you have to build QGC yourself, but a positive side is that then QGC will have the correct metadata regardless of whether you’ve used it to flash your vehicle’s firmware or not.

---

<div class="post-metadata">

**Author:** ![whiss](https://discuss.px4.io/letter_avatar_proxy/v4/letter/w/f07891/32.png) [@whiss](https://discuss.px4.io/u/whiss)\
**Post date:** [May 10, 2021, 8:10am UTC](https://discuss.px4.io/t/custom-parameters-description-not-showing-in-qgc/21883/4 "2021-05-10T08:10:31Z")

</div>

Hi,

Thanks for the reply, tried this but still didn’t work… To be clear, by “bump up” you meant that if my code looks like this :

```
xml_parameters = ET.Element("parameters")
    xml_version = ET.SubElement(xml_parameters, "version")
    xml_version.text = "3"
    xml_version = ET.SubElement(xml_parameters, "parameter_version_major")
    xml_version.text = "1"
    xml_version = ET.SubElement(xml_parameters, "parameter_version_minor")
    xml_version.text = "16"

```

I should replace the 16 by 17 ? (that’s what I just tried)

---

<div class="post-metadata">

**Author:** ![whiss](https://discuss.px4.io/letter_avatar_proxy/v4/letter/w/f07891/32.png) [@whiss](https://discuss.px4.io/u/whiss)\
**Post date:** [May 10, 2021, 8:15am UTC](https://discuss.px4.io/t/custom-parameters-description-not-showing-in-qgc/21883/5 "2021-05-10T08:15:21Z")

</div>

Yeah thing is I really wanted to try and find a solution that didn’t require building QGC from source, but that’ll probably be the solution I’ll go to when other people start using my modules and need the documentation inside QGC… 🙂

---

<div class="post-metadata">

**Author:** ![whiss](https://discuss.px4.io/letter_avatar_proxy/v4/letter/w/f07891/32.png) [@whiss](https://discuss.px4.io/u/whiss)\
**Post date:** [May 10, 2021, 9:08am UTC](https://discuss.px4.io/t/custom-parameters-description-not-showing-in-qgc/21883/6 "2021-05-10T09:08:12Z")

</div>

Ok so actually, I downloaded the last QGC version and now it seems to work by doing, in my px4\_firmware folder

```
make clean
make px4_metadata
make px4_custom_firmware

```

Then by flashing the board with the custom .px4 file through QGC.

This used to not work on my previous QGC, and I did delete all QGC related .cache folders as well before downloading & launching the new AppImage, so maybe the most important step for me was this one.

I didn’t try to add a new module and new parameters yet, but as soon as I code a new one I’ll come edit here to confirm that it now works as it’s supposed to work then… ¯\_(ツ)\_/¯

---

<div class="post-metadata">

**Author:** ![whiss](https://discuss.px4.io/letter_avatar_proxy/v4/letter/w/f07891/32.png) [@whiss](https://discuss.px4.io/u/whiss)\
**Post date:** [May 12, 2021, 11:31am UTC](https://discuss.px4.io/t/custom-parameters-description-not-showing-in-qgc/21883/7 "2021-05-12T11:31:21Z")

</div>

I tried with a new module today, and it worked without needing to remove the .cache folders nor to modify xmlout.py file. The steps in the solution above seem to now work perfectly fine.
