diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-05-08 20:51:16 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-05-10 05:01:33 +0200 |
commit | 448f39a4e144d7c01911aa84375dfa4f24ba44a1 (patch) | |
tree | 5697ecdc952b6e61a1ad53bc5c806c2ea1a8ce6a | |
parent | 1aab011b0b9a5438b630774f21536b1e19475454 (diff) |
tracker/pt: allow 10 times the amount of deadzone
-rw-r--r-- | tracker-pt/point-filter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tracker-pt/point-filter.cpp b/tracker-pt/point-filter.cpp index b03562ed..9fe23a07 100644 --- a/tracker-pt/point-filter.cpp +++ b/tracker-pt/point-filter.cpp @@ -32,6 +32,7 @@ const PointOrder& point_filter::operator()(const PointOrder& input) } constexpr auto E = (f)1.75; + constexpr int DZ = 10; const f limit = (f)*s.point_filter_limit; const f C = progn( constexpr int A = 1'000'000; @@ -40,7 +41,7 @@ const PointOrder& point_filter::operator()(const PointOrder& input) return A * pow((f)10, (f)-log10_pos) * rest; ); - f dist = 0, dz = (float)s.point_filter_deadzone / 800; // sqrt(640^2 + 480^2) + f dist = 0, dz = DZ * (f)s.point_filter_deadzone / 800; // sqrt(640^2 + 480^2) for (unsigned i = 0; i < 3; i++) { |