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
4594b3c6
Commit
4594b3c6
authored
9 years ago
by
Paul Riseborough
Committed by
Roman
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ekf2: Add parameters for magnetometer error checks
parent
5e4f76d8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/modules/ekf2/ekf2_main.cpp
+3
-1
3 additions, 1 deletion
src/modules/ekf2/ekf2_main.cpp
src/modules/ekf2/ekf2_params.c
+9
-2
9 additions, 2 deletions
src/modules/ekf2/ekf2_params.c
with
12 additions
and
3 deletions
src/modules/ekf2/ekf2_main.cpp
+
3
−
1
View file @
4594b3c6
...
...
@@ -166,6 +166,7 @@ private:
control
::
BlockParamFloat
*
_mag_heading_noise
;
// measurement noise used for simple heading fusion
control
::
BlockParamFloat
*
_mag_declination_deg
;
// magnetic declination in degrees
control
::
BlockParamFloat
*
_heading_innov_gate
;
// innovation gate for heading innovation test
control
::
BlockParamFloat
*
_mag_innov_gate
;
// innovation gate for magnetometer innovation test
control
::
BlockParamInt
*
_gps_check_mask
;
// bitmasked integer used to activate the different GPS quality checks
control
::
BlockParamFloat
*
_requiredEph
;
// maximum acceptable horiz position error (m)
...
...
@@ -216,7 +217,8 @@ Ekf2::Ekf2():
_mag_heading_noise
=
new
control
::
BlockParamFloat
(
this
,
"EKF2_HEAD_NOISE"
,
false
,
&
params
->
mag_heading_noise
);
_mag_declination_deg
=
new
control
::
BlockParamFloat
(
this
,
"EKF2_MAG_DECL"
,
false
,
&
params
->
mag_declination_deg
);
_heading_innov_gate
=
new
control
::
BlockParamFloat
(
this
,
"EKF2_H_INOV_GATE"
,
false
,
&
params
->
heading_innov_gate
);
_heading_innov_gate
=
new
control
::
BlockParamFloat
(
this
,
"EKF2_HDG_GATE"
,
false
,
&
params
->
heading_innov_gate
);
_mag_innov_gate
=
new
control
::
BlockParamFloat
(
this
,
"EKF2_MAG_GATE"
,
false
,
&
params
->
mag_innov_gate
);
_gps_check_mask
=
new
control
::
BlockParamInt
(
this
,
"EKF2_GPS_CHECK"
,
false
,
&
params
->
gps_check_mask
);
_requiredEph
=
new
control
::
BlockParamFloat
(
this
,
"EKF2_REQ_EPH"
,
false
,
&
params
->
req_hacc
);
...
...
This diff is collapsed.
Click to expand it.
src/modules/ekf2/ekf2_params.c
+
9
−
2
View file @
4594b3c6
...
...
@@ -288,8 +288,15 @@ PARAM_DEFINE_FLOAT(EKF2_HEAD_NOISE, 3e-2f);
PARAM_DEFINE_FLOAT
(
EKF2_MAG_DECL
,
0
);
/**
* Gate for mag
i
netic heading fusion
* Gate
size
for magnetic heading fusion
(standard deviations)
*
* @group EKF2
*/
PARAM_DEFINE_FLOAT
(
EKF2_H_INOV_GATE
,
0
.
5
f
);
PARAM_DEFINE_FLOAT
(
EKF2_HDG_GATE
,
3
.
0
f
);
/**
* Gate size for magnetometer XYZ component fusion (standard deviations)
*
* @group EKF2
*/
PARAM_DEFINE_FLOAT
(
EKF2_MAG_GATE
,
3
.
0
f
);
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