mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_BoardConfig: added param helper for HAL parameters
only for HAL_REVOMINI for now
This commit is contained in:
parent
207f7893d6
commit
682dcb65cf
@ -186,6 +186,12 @@ const AP_Param::GroupInfo AP_BoardConfig::var_info[] = {
|
|||||||
// @Path: ../AP_Radio/AP_Radio.cpp
|
// @Path: ../AP_Radio/AP_Radio.cpp
|
||||||
AP_SUBGROUPINFO(_radio, "RADIO", 11, AP_BoardConfig, AP_Radio),
|
AP_SUBGROUPINFO(_radio, "RADIO", 11, AP_BoardConfig, AP_Radio),
|
||||||
#endif
|
#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
|
AP_GROUPEND
|
||||||
};
|
};
|
||||||
|
@ -4,6 +4,10 @@
|
|||||||
#include <AP_Common/AP_Common.h>
|
#include <AP_Common/AP_Common.h>
|
||||||
#include <AP_Param/AP_Param.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)
|
#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_BOARD_DETECT 1
|
||||||
#define AP_FEATURE_SAFETY_BUTTON 1
|
#define AP_FEATURE_SAFETY_BUTTON 1
|
||||||
@ -172,4 +176,9 @@ private:
|
|||||||
// direct attached radio
|
// direct attached radio
|
||||||
AP_Radio _radio;
|
AP_Radio _radio;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(HAL_NEEDS_PARAM_HELPER)
|
||||||
|
// HAL specific parameters
|
||||||
|
AP_Param_Helper param_helper{false};
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user