diff --git a/libraries/AP_BoardConfig/AP_BoardConfig.cpp b/libraries/AP_BoardConfig/AP_BoardConfig.cpp index 2206da8840..216f3af274 100644 --- a/libraries/AP_BoardConfig/AP_BoardConfig.cpp +++ b/libraries/AP_BoardConfig/AP_BoardConfig.cpp @@ -186,6 +186,12 @@ const AP_Param::GroupInfo AP_BoardConfig::var_info[] = { // @Path: ../AP_Radio/AP_Radio.cpp AP_SUBGROUPINFO(_radio, "RADIO", 11, AP_BoardConfig, AP_Radio), #endif + +#if defined(HAL_NEEDS_PARAM_HELPER) + // @Group: "" + // @Path: ../libraries/AP_Param_Helper/AP_Param_Helper.cpp + AP_SUBGROUPINFO(param_helper, "", 12, AP_BoardConfig, AP_Param_Helper), +#endif AP_GROUPEND }; diff --git a/libraries/AP_BoardConfig/AP_BoardConfig.h b/libraries/AP_BoardConfig/AP_BoardConfig.h index 2dba964c55..68d51ef54c 100644 --- a/libraries/AP_BoardConfig/AP_BoardConfig.h +++ b/libraries/AP_BoardConfig/AP_BoardConfig.h @@ -4,6 +4,10 @@ #include #include +#if defined(HAL_NEEDS_PARAM_HELPER) +#include +#endif + #if CONFIG_HAL_BOARD == HAL_BOARD_PX4 || CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN || defined(HAL_CHIBIOS_ARCH_FMUV3) || defined(HAL_CHIBIOS_ARCH_FMUV4) || defined(HAL_CHIBIOS_ARCH_MINDPXV2) #define AP_FEATURE_BOARD_DETECT 1 #define AP_FEATURE_SAFETY_BUTTON 1 @@ -172,4 +176,9 @@ private: // direct attached radio AP_Radio _radio; #endif + +#if defined(HAL_NEEDS_PARAM_HELPER) + // HAL specific parameters + AP_Param_Helper param_helper{false}; +#endif };