# Params definition

**URL:** <https://discuss.px4.io/t/params-definition/3586>\
**Category:** Uncategorized\
**Created:** [June 15, 2017, 7:22am UTC](https://discuss.px4.io/t/params-definition/3586 "2017-06-15T07:22:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CaptainJL](https://discuss.px4.io/user_avatar/discuss.px4.io/captainjl/32/3845_2.png) [@CaptainJL](https://discuss.px4.io/u/CaptainJL)\
**Post date:** [June 15, 2017, 7:22am UTC](https://discuss.px4.io/t/params-definition/3586/1 "2017-06-15T07:22:31Z")

</div>

Hey all,

I cant quite work out how to get QGC to recognise the customs params metadata i have defined.  
It keeps getting placed into _Default Group_ on QGC, and dont know what im missing.

the file (px4\_Quad2GPU\_params.c) is placed into my folder, structured like this:  
#include \<systemlib/param/param.h\>

> /\* PX4 rights thingo \*/

> /\*\*
> 
> - @file px4\_Quad2GPU\_params.c
> - thingo for thingy.
> - 
> - @author Jean-Luc Stevens [Jean-Luc.Stevens@anu.edu.au](mailto:Jean-Luc.Stevens@anu.edu.au)  
> \*/

> /\*\*
> 
> - Control Mode Temp
> - 
> - Aye there
> - 
> - @unit sel
> - @min 0
> - @max 5
> - @decimal 0
> - @increment 1
> - @reboot\_required false
> - @group TX1\_Comms  
> \*/  
> PARAM\_DEFINE\_INT32(TXCOMMS\_MODE, 1);

In the main file (px4\_Quad2GPU\_MAIN.cpp) I have:  
In class definition:

> param\_t modeselparam;  
> int modesel;

and in the class constructor:

> modeselparam = param\_find(“TXCOMMS\_MODE”);  
> param\_get(modeselparam, &modesel);

but yet, i cant get QGC to recognise the metadata

Is there anything i am in particularily missing?  
I followed the mc\_att\_control example for params, also following the link:  
[https://dev.px4.io/en/advanced/parameters\_and\_configurations.html](https://dev.px4.io/en/advanced/parameters_and_configurations.html)

Thanks,  
CaptainJL

---

<div class="post-metadata">

**Author:** ![DavidM](https://discuss.px4.io/letter_avatar_proxy/v4/letter/d/71e660/32.png) [@DavidM](https://discuss.px4.io/u/DavidM)\
**Post date:** [August 29, 2018, 10:25am UTC](https://discuss.px4.io/t/params-definition/3586/2 "2018-08-29T10:25:02Z")

</div>

I’m having the same issue, did you ever find out how to resolve this?
