AP_BoardConfig: added param helper for HAL parameters

only for HAL_REVOMINI for now
This commit is contained in:
Andrew Tridgell 2018-02-03 07:48:29 +11:00
parent 207f7893d6
commit 682dcb65cf
2 changed files with 15 additions and 0 deletions

View File

@ -187,6 +187,12 @@ const AP_Param::GroupInfo AP_BoardConfig::var_info[] = {
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
};

View File

@ -4,6 +4,10 @@
#include <AP_Common/AP_Common.h>
#include <AP_Param/AP_Param.h>
#if defined(HAL_NEEDS_PARAM_HELPER)
#include <AP_Param_Helper/AP_Param_Helper.h>
#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
};