diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-05-09 19:14:32 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-05-11 20:50:20 +0200 |
| commit | cca730a8d311f099d1b58ecd04051b612ae3ef72 (patch) | |
| tree | 72a84990126b453ec782d88a4813a20d8dbbd633 /tracker-pt/point-filter.cpp | |
| parent | 50d3f1dcc3d690f0dde53a4e5cf3a765842815e0 (diff) | |
tracker/{pt-base,trackhat}: add variable deadzone factoropentrack-2022.2.0
Diffstat (limited to 'tracker-pt/point-filter.cpp')
| -rw-r--r-- | tracker-pt/point-filter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tracker-pt/point-filter.cpp b/tracker-pt/point-filter.cpp index b03562ed..10448fe2 100644 --- a/tracker-pt/point-filter.cpp +++ b/tracker-pt/point-filter.cpp @@ -10,7 +10,7 @@ void point_filter::reset() t = std::nullopt; } -const PointOrder& point_filter::operator()(const PointOrder& input) +const PointOrder& point_filter::operator()(const PointOrder& input, f deadzone_amount) { using std::fmod; using std::sqrt; @@ -40,7 +40,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 = deadzone_amount * (f)s.point_filter_deadzone / 800; // sqrt(640^2 + 480^2) for (unsigned i = 0; i < 3; i++) { |
