diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-07-07 12:10:05 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-07-07 12:10:05 +0200 |
commit | b0088e4ecb6673ac74ad25ee2195e29345fa3add (patch) | |
tree | 8dd524fec0aa3d3492172cb595fbcdf7ea0e9aec | |
parent | 963cad86f4ef9941bd272b41d449adc13d742488 (diff) |
tracker/pt: reduce LED deadzone
It qualifies far less often now, but will likely reduce
jerkiness.
-rw-r--r-- | tracker-pt/point_tracker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tracker-pt/point_tracker.cpp b/tracker-pt/point_tracker.cpp index 4022cbb2..73745d8f 100644 --- a/tracker-pt/point_tracker.cpp +++ b/tracker-pt/point_tracker.cpp @@ -162,7 +162,7 @@ bool PointTracker::maybe_use_old_point_order(const PointOrder& order, const CamI } // CAVEAT don't increase too much, it visibly loses precision - static constexpr f max_dist = f(.35); + static constexpr f max_dist = f(.2); const bool validp = sum < max_dist; @@ -178,7 +178,7 @@ bool PointTracker::maybe_use_old_point_order(const PointOrder& order, const CamI { static Timer tt; static int cnt1 = 0, cnt2 = 0; - if (tt.elapsed_ms() >= 5000) + if (tt.elapsed_ms() >= 1000) { tt.start(); if (cnt1 + cnt2) |