mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
Parameter update - Rename variables in modules/wind_estimator
using parameter_update.py script
This commit is contained in:
@@ -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[])
|
||||
|
||||
Reference in New Issue
Block a user