mirror of https://github.com/ArduPilot/ardupilot
Tools: Replay: use shared Param info defines
This commit is contained in:
parent
43e5ea43b7
commit
d82f79b492
|
@ -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),
|
||||
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
|
||||
#include "LogReader.h"
|
||||
|
||||
#define AP_PARAM_VEHICLE_NAME replayvehicle
|
||||
|
||||
struct user_parameter {
|
||||
struct user_parameter *next;
|
||||
char name[17];
|
||||
|
|
Loading…
Reference in New Issue