summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-12-16 21:49:01 +0100
committerStanislaw Halik <sthalik@misaki.pl>2021-12-16 21:49:01 +0100
commita492ae1261ce7a988e5721b919583ac10b939990 (patch)
tree185093beb991dc1f2e4f7a1fd767a20d0f266375 /tracker-pt
parentf2b02fc54869539ae2f065b7e70f91b4f655a311 (diff)
tracker/pt: revert the point filter change for now
Diffstat (limited to 'tracker-pt')
-rw-r--r--tracker-pt/point-filter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tracker-pt/point-filter.cpp b/tracker-pt/point-filter.cpp
index 93ad3203..7548d515 100644
--- a/tracker-pt/point-filter.cpp
+++ b/tracker-pt/point-filter.cpp
@@ -40,15 +40,15 @@ const PointOrder& point_filter::operator()(const PointOrder& input)
return A * pow((f)10, (f)-log10_pos) * rest;
);
- f dist = 1e6;
+ f dist = 0;
for (unsigned i = 0; i < 3; i++)
{
vec2 tmp = input[i] - state_[i];
- dist = std::min(dist, sqrt(tmp.dot(tmp)));
+ dist = std::max(dist, sqrt(tmp.dot(tmp)));
}
- if (dist < (f)1e-6 || dist > (f)1e4)
+ if (dist < (f)1e-6)
return state_;
f dt = (f)t->elapsed_seconds(); t->start();