2018-02-02 16:35:19 -04:00
|
|
|
#include "AP_Param_Helper.h"
|
|
|
|
|
|
|
|
#include <AP_HAL/AP_HAL.h>
|
|
|
|
|
|
|
|
#if defined(HAL_NEEDS_PARAM_HELPER)
|
|
|
|
|
|
|
|
const AP_Param::GroupInfo AP_Param_Helper::var_info[] = {
|
2018-03-05 01:33:02 -04:00
|
|
|
#if defined(F4LIGHT_HAL_VARINFO)
|
|
|
|
F4LIGHT_HAL_VARINFO
|
|
|
|
#endif
|
|
|
|
|
2018-02-02 16:35:19 -04:00
|
|
|
// only if board defines parameters
|
|
|
|
#ifdef BOARD_HAL_VARINFO
|
2018-03-05 01:33:02 -04:00
|
|
|
BOARD_HAL_VARINFO
|
2018-02-02 16:35:19 -04:00
|
|
|
#endif
|
|
|
|
AP_GROUPEND
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
extern const AP_HAL::HAL& hal;
|
|
|
|
|
|
|
|
AP_Param_Helper::AP_Param_Helper(bool f){
|
|
|
|
f=!f;
|
|
|
|
|
|
|
|
hal_param_helper=this;
|
|
|
|
AP_Param::setup_object_defaults(this, var_info); // setup all params
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
AP_Param_Helper * hal_param_helper;
|
|
|
|
|
|
|
|
#endif
|