Tools: Replay: use shared Param info defines

This commit is contained in:
Iampete1 2023-01-10 12:29:40 +00:00 committed by Andrew Tridgell
parent 43e5ea43b7
commit d82f79b492
2 changed files with 2 additions and 4 deletions

View File

@ -40,10 +40,6 @@ user_parameter *user_parameters;
bool replay_force_ekf2;
bool replay_force_ekf3;
#define GSCALAR(v, name, def) { replayvehicle.g.v.vtype, name, Parameters::k_param_ ## v, &replayvehicle.g.v, {def_value : def} }
#define GOBJECT(v, name, class) { AP_PARAM_GROUP, name, Parameters::k_param_ ## v, &replayvehicle.v, {group_info : class::var_info} }
#define GOBJECTN(v, pname, name, class) { AP_PARAM_GROUP, name, Parameters::k_param_ ## pname, &replayvehicle.v, {group_info : class::var_info} }
const AP_Param::Info ReplayVehicle::var_info[] = {
GSCALAR(dummy, "_DUMMY", 0),

View File

@ -18,6 +18,8 @@
#include "LogReader.h"
#define AP_PARAM_VEHICLE_NAME replayvehicle
struct user_parameter {
struct user_parameter *next;
char name[17];