mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Tools: AP_Periph: use shared Param info defines
This commit is contained in:
parent
ee2e711fe3
commit
43e5ea43b7
@ -62,13 +62,6 @@ extern const AP_HAL::HAL &hal;
|
||||
*
|
||||
*/
|
||||
|
||||
#define GSCALAR(v, name, def) { periph.g.v.vtype, name, Parameters::k_param_ ## v, &periph.g.v, {def_value : def} }
|
||||
#define GARRAY(v, index, name, def) { periph.g.v[index].vtype, name, Parameters::k_param_ ## v ## index, &periph.g.v[index], {def_value : def} }
|
||||
#define ASCALAR(v, name, def) { periph.aparm.v.vtype, name, Parameters::k_param_ ## v, (const void *)&periph.aparm.v, {def_value : def} }
|
||||
#define GGROUP(v, name, class) { AP_PARAM_GROUP, name, Parameters::k_param_ ## v, &periph.g.v, {group_info : class::var_info} }
|
||||
#define GOBJECT(v, name, class) { AP_PARAM_GROUP, name, Parameters::k_param_ ## v, (const void *)&periph.v, {group_info : class::var_info} }
|
||||
#define GOBJECTN(v, pname, name, class) { AP_PARAM_GROUP, name, Parameters::k_param_ ## pname, (const void *)&periph.v, {group_info : class::var_info} }
|
||||
|
||||
const AP_Param::Info AP_Periph_FW::var_info[] = {
|
||||
// @Param: FORMAT_VERSION
|
||||
// @DisplayName: Eeprom format version number
|
||||
|
@ -3,6 +3,8 @@
|
||||
#include <AP_Common/AP_Common.h>
|
||||
#include "GCS_MAVLink.h"
|
||||
|
||||
#define AP_PARAM_VEHICLE_NAME periph
|
||||
|
||||
// Global parameter class.
|
||||
//
|
||||
class Parameters {
|
||||
|
Loading…
Reference in New Issue
Block a user