From 7a08f2bf3dcb97d69c7cd3692a39b1fb92651a7a Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Sun, 10 Nov 2024 12:13:48 +0000 Subject: [PATCH] AP_Param: add group idx calculator --- libraries/AP_Param/AP_Param.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Param/AP_Param.h b/libraries/AP_Param/AP_Param.h index 2b2a4094ff..79b0aca7f2 100644 --- a/libraries/AP_Param/AP_Param.h +++ b/libraries/AP_Param/AP_Param.h @@ -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,