Skip to content
Snippets Groups Projects
Commit 2197ac88 authored by bresch's avatar bresch Committed by Matthias Grob
Browse files

Parameter update - Rename variables in modules/wind_estimator

using parameter_update.py script
parent 6c823903
No related branches found
No related tags found
No related merge requests found
......@@ -95,12 +95,12 @@ private:
int _instance{-1};
DEFINE_PARAMETERS(
(ParamFloat<px4::params::WEST_W_P_NOISE>) wind_p_noise,
(ParamFloat<px4::params::WEST_SC_P_NOISE>) tas_scale_p_noise,
(ParamFloat<px4::params::WEST_TAS_NOISE>) tas_noise,
(ParamFloat<px4::params::WEST_BETA_NOISE>) beta_noise,
(ParamInt<px4::params::WEST_TAS_GATE>) airspeed_gate,
(ParamInt<px4::params::WEST_BETA_GATE>) sideslip_gate
(ParamFloat<px4::params::WEST_W_P_NOISE>) _param_west_w_p_noise,
(ParamFloat<px4::params::WEST_SC_P_NOISE>) _param_west_sc_p_noise,
(ParamFloat<px4::params::WEST_TAS_NOISE>) _param_west_tas_noise,
(ParamFloat<px4::params::WEST_BETA_NOISE>) _param_west_beta_noise,
(ParamInt<px4::params::WEST_TAS_GATE>) _param_west_tas_gate,
(ParamInt<px4::params::WEST_BETA_GATE>) _param_west_beta_gate
)
static void cycle_trampoline(void *arg);
......@@ -276,12 +276,12 @@ void WindEstimatorModule::update_params()
updateParams();
// update wind & airspeed scale estimator parameters
_wind_estimator.set_wind_p_noise(wind_p_noise.get());
_wind_estimator.set_tas_scale_p_noise(tas_scale_p_noise.get());
_wind_estimator.set_tas_noise(tas_noise.get());
_wind_estimator.set_beta_noise(beta_noise.get());
_wind_estimator.set_tas_gate(airspeed_gate.get());
_wind_estimator.set_beta_gate(sideslip_gate.get());
_wind_estimator.set_wind_p_noise(_param_west_w_p_noise.get());
_wind_estimator.set_tas_scale_p_noise(_param_west_sc_p_noise.get());
_wind_estimator.set_tas_noise(_param_west_tas_noise.get());
_wind_estimator.set_beta_noise(_param_west_beta_noise.get());
_wind_estimator.set_tas_gate(_param_west_tas_gate.get());
_wind_estimator.set_beta_gate(_param_west_beta_gate.get());
}
int WindEstimatorModule::custom_command(int argc, char *argv[])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment