# I have trouble with adding a new parameter

**URL:** <https://discuss.px4.io/t/i-have-trouble-with-adding-a-new-parameter/14003>\
**Category:** Uncategorized\
**Created:** [November 24, 2019, 3:13am UTC](https://discuss.px4.io/t/i-have-trouble-with-adding-a-new-parameter/14003 "2019-11-24T03:13:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zero](https://discuss.px4.io/letter_avatar_proxy/v4/letter/z/a88e57/32.png) [@Zero](https://discuss.px4.io/u/Zero)\
**Post date:** [November 24, 2019, 3:13am UTC](https://discuss.px4.io/t/i-have-trouble-with-adding-a-new-parameter/14003/1 "2019-11-24T03:13:34Z")

</div>

I want to add a new parameter to px4 Firmware ,and show it in QGroundcontrol.But I can’t see my  
parameter in QGC.  
I have two changes in my Firmware code.

1. commander\_params.c  
/\*\*

- Precheck
- 
- Test
- 
- @group Commander
- @min 0
- @max 2
- @increment 1  
\*/  
PARAM\_DEFINE\_INT32(PRE\_ZZK, 1);

1. PreflightCheck.cpp  
param\_get(param\_find(“PRE\_ZZK”),&pre\_zzk);  
my\_test = pre\_zzk;  
if(my\_test == 1) my\_test =2 ;

---

<div class="post-metadata">

**Author:** ![bresch](https://discuss.px4.io/user_avatar/discuss.px4.io/bresch/32/2343_2.png) [@bresch](https://discuss.px4.io/u/bresch)\
**Post date:** [November 25, 2019, 1:28pm UTC](https://discuss.px4.io/t/i-have-trouble-with-adding-a-new-parameter/14003/2 "2019-11-25T13:28:03Z")

</div>

Hi @Zero,

The parameter won’t appear directly in the Commander group because it requires to update the parameter metadata of QGC. However, it you search for the parameter in the search bar, you should be able to find it.

---

<div class="post-metadata">

**Author:** ![Zero](https://discuss.px4.io/letter_avatar_proxy/v4/letter/z/a88e57/32.png) [@Zero](https://discuss.px4.io/u/Zero)\
**Post date:** [November 28, 2019, 9:10am UTC](https://discuss.px4.io/t/i-have-trouble-with-adding-a-new-parameter/14003/3 "2019-11-28T09:10:45Z")

</div>

Thank you ! I have solved my problem.
