Cannot make my parameter work

I’ve developed a small new lib, placed it into /libraries. Then I want to add new parameter to parameters list. So I looking at SmartRTL lib as a reference and did same things:

  • added var_info[] definition into cpp and h files of my lib.
  • added AP_SUBGROUPINFO into Parameters.cpp and my class member to Parameters.h (ParametersG2 class).

Everything compiles and working well but when I changing my parameter in MissionPlanner - my code does not see that change. Even after a restart. E.g. AP_Int8 field in my code always have the default value defined in AP_GROUPINFO