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
294af5da
Commit
294af5da
authored
6 years ago
by
Beat Küng
Committed by
Lorenz Meier
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
LowPassFilter2p: fix _cutoff_freq <= 0 (disabled filter)
If the filter was disabled, the apply() would always return 0.
parent
d2e2b5e8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/lib/mathlib/math/filter/LowPassFilter2p.cpp
+1
-1
1 addition, 1 deletion
src/lib/mathlib/math/filter/LowPassFilter2p.cpp
src/lib/mathlib/math/filter/LowPassFilter2pVector3f.cpp
+1
-1
1 addition, 1 deletion
src/lib/mathlib/math/filter/LowPassFilter2pVector3f.cpp
with
2 additions
and
2 deletions
src/lib/mathlib/math/filter/LowPassFilter2p.cpp
+
1
−
1
View file @
294af5da
...
...
@@ -50,7 +50,7 @@ void LowPassFilter2p::set_cutoff_frequency(float sample_freq, float cutoff_freq)
if
(
_cutoff_freq
<=
0.0
f
)
{
// no filtering
_b0
=
0
.0
f
;
_b0
=
1
.0
f
;
_b1
=
0.0
f
;
_b2
=
0.0
f
;
...
...
This diff is collapsed.
Click to expand it.
src/lib/mathlib/math/filter/LowPassFilter2pVector3f.cpp
+
1
−
1
View file @
294af5da
...
...
@@ -50,7 +50,7 @@ void LowPassFilter2pVector3f::set_cutoff_frequency(float sample_freq, float cuto
if
(
_cutoff_freq
<=
0.0
f
)
{
// no filtering
_b0
=
0
.0
f
;
_b0
=
1
.0
f
;
_b1
=
0.0
f
;
_b2
=
0.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