diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-05-04 12:39:33 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-05-05 12:34:52 +0200 |
commit | 4a87519e9823f160087543e2a7a42fa2aa1996eb (patch) | |
tree | 7abf589e72bbebe9fe97fa42cf3052a15b951a53 | |
parent | 870fc5d19e31e9643f0c8e6b8abc5b356d54a621 (diff) |
logic/pipeline: skip filter when centering
-rw-r--r-- | logic/pipeline.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/logic/pipeline.cpp b/logic/pipeline.cpp index e7d6caf6..8796d237 100644 --- a/logic/pipeline.cpp +++ b/logic/pipeline.cpp @@ -480,8 +480,10 @@ void pipeline::logic() { ev.run_events(EV::ev_before_filter, value); - value = maybe_apply_filter(value); - nan_check(value); + Pose tmp = maybe_apply_filter(value); + nan_check(tmp); + if (!center_ordered) + value = tmp; logger.write_pose(value); // "filtered" } |