AP_Param_Helper: removed as no longer used

This commit is contained in:
Andrew Tridgell 2019-01-21 11:48:13 +11:00
parent 696d7a0218
commit 146f52036f
2 changed files with 0 additions and 66 deletions

View File

@ -1,32 +0,0 @@
#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[] = {
#if defined(F4LIGHT_HAL_VARINFO)
F4LIGHT_HAL_VARINFO
#endif
// only if board defines parameters
#ifdef BOARD_HAL_VARINFO
BOARD_HAL_VARINFO
#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

View File

@ -1,34 +0,0 @@
/*
a helper class to give ability to HAL to have own parameters
*/
#pragma once
#include <AP_HAL/AP_HAL.h>
#if defined(HAL_NEEDS_PARAM_HELPER)
#include <AP_Param/AP_Param.h>
class AP_Param_Helper
{
public:
AP_Param_Helper(bool f);
static const AP_Param::GroupInfo var_info[];
// common HAL params
#if defined(F4LIGHT_HAL_PARAMS)
F4LIGHT_HAL_PARAMS
#endif
// per board params - only if defined
#ifdef BOARD_HAL_PARAMS
BOARD_HAL_PARAMS
#endif
};
extern AP_Param_Helper * hal_param_helper;
#endif