summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/point_tracker.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-07-07 12:10:05 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-07-07 12:10:05 +0200
commitb0088e4ecb6673ac74ad25ee2195e29345fa3add (patch)
tree8dd524fec0aa3d3492172cb595fbcdf7ea0e9aec /tracker-pt/point_tracker.cpp
parent963cad86f4ef9941bd272b41d449adc13d742488 (diff)
tracker/pt: reduce LED deadzone
It qualifies far less often now, but will likely reduce jerkiness.
Diffstat (limited to 'tracker-pt/point_tracker.cpp')
-rw-r--r--tracker-pt/point_tracker.cpp4
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)