Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
2197ac88
Commit
2197ac88
authored
5 years ago
by
bresch
Committed by
Matthias Grob
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Parameter update - Rename variables in modules/wind_estimator
using parameter_update.py script
parent
6c823903
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/modules/wind_estimator/wind_estimator_main.cpp
+12
-12
12 additions, 12 deletions
src/modules/wind_estimator/wind_estimator_main.cpp
with
12 additions
and
12 deletions
src/modules/wind_estimator/wind_estimator_main.cpp
+
12
−
12
View file @
2197ac88
...
...
@@ -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
[])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment