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.
- commander_params.c
/**
- Precheck
- Test
- @group Commander
- @min 0
- @max 2
-
@increment 1
*/
PARAM_DEFINE_INT32(PRE_ZZK, 1);
- PreflightCheck.cpp
param_get(param_find(“PRE_ZZK”),&pre_zzk);
my_test = pre_zzk;
if(my_test == 1) my_test =2 ;