diff --git a/ArduSub/Parameters.cpp b/ArduSub/Parameters.cpp index 0781feac45..23cfb10872 100644 --- a/ArduSub/Parameters.cpp +++ b/ArduSub/Parameters.cpp @@ -20,12 +20,6 @@ * */ -#define GSCALAR(v, name, def) { sub.g.v.vtype, name, Parameters::k_param_ ## v, &sub.g.v, {def_value : def} } -#define ASCALAR(v, name, def) { sub.aparm.v.vtype, name, Parameters::k_param_ ## v, (const void *)&sub.aparm.v, {def_value : def} } -#define GGROUP(v, name, class) { AP_PARAM_GROUP, name, Parameters::k_param_ ## v, &sub.g.v, {group_info : class::var_info} } -#define GOBJECT(v, name, class) { AP_PARAM_GROUP, name, Parameters::k_param_ ## v, (const void *)&sub.v, {group_info : class::var_info} } -#define GOBJECTN(v, pname, name, class) { AP_PARAM_GROUP, name, Parameters::k_param_ ## pname, (const void *)&sub.v, {group_info : class::var_info} } - const AP_Param::Info Sub::var_info[] = { // @Param: SURFACE_DEPTH @@ -615,7 +609,7 @@ const AP_Param::Info Sub::var_info[] = { // @Group: // @Path: ../libraries/AP_Vehicle/AP_Vehicle.cpp - { AP_PARAM_GROUP, "", Parameters::k_param_vehicle, (const void *)&sub, {group_info : AP_Vehicle::var_info} }, + PARAM_VEHICLE_INFO, AP_VAREND }; diff --git a/ArduSub/Parameters.h b/ArduSub/Parameters.h index 90bc0d0108..eeff0a2693 100644 --- a/ArduSub/Parameters.h +++ b/ArduSub/Parameters.h @@ -1,5 +1,7 @@ #pragma once +#define AP_PARAM_VEHICLE_NAME sub + #include #include