AP_Param: add group idx calculator

This commit is contained in:
Andy Piper 2024-11-10 12:13:48 +00:00
parent ee56d90f95
commit 7a08f2bf3d
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@
#define GOBJECTN(v, pname, name, class) { name, (const void *)&AP_PARAM_VEHICLE_NAME.v, {group_info : class::var_info}, 0, Parameters::k_param_ ## pname, AP_PARAM_GROUP }
#define PARAM_VEHICLE_INFO { "", (const void *)&AP_PARAM_VEHICLE_NAME, {group_info : AP_Vehicle::var_info}, 0, Parameters::k_param_vehicle, AP_PARAM_GROUP }
#define AP_VAREND { "", nullptr, {group_info : nullptr }, 0, 0, AP_PARAM_NONE }
#define AP_GROUP_ELEM_IDX(subgrp_idx, grp_idx) (grp_idx << 6 | subgrp_idx)
enum ap_var_type {
AP_PARAM_NONE = 0,