From 4bb408b776ef82aab116d9cc524327a04911130f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 18 Jun 2016 00:13:56 +0200 Subject: logic/tracker: add unconditional compensation line The reason for its existence is that we can't rotate translation by rotation as-is. The signs are wrong and we're not using the XYZ order for Tait-Bryan either. The line location was incorrect due to mismerge. --- opentrack-logic/tracker.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'opentrack-logic') diff --git a/opentrack-logic/tracker.cpp b/opentrack-logic/tracker.cpp index 3433e25f..1b91eb3e 100644 --- a/opentrack-logic/tracker.cpp +++ b/opentrack-logic/tracker.cpp @@ -148,6 +148,8 @@ void Tracker::logic() r = cam * r; + t_compensate(cam, t, t, true); + bool can_center = false; const bool nan = is_nan(r, t); @@ -263,7 +265,6 @@ void Tracker::run() t.start(); double tmp[6] {0,0,0, 0,0,0}; - //t_compensate(cam, tmp, tmp, false); libs.pTracker->data(tmp); if (enabledp) -- cgit v1.2.3