diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-06-18 00:13:56 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-06-18 00:16:56 +0200 |
commit | 4bb408b776ef82aab116d9cc524327a04911130f (patch) | |
tree | 72fbaac1ebee3dce5752e225dbd88de8dc999350 | |
parent | c07baa2c5e495b4ee4cd9264ef71d9e7f5dc63c5 (diff) |
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.
-rw-r--r-- | opentrack-logic/tracker.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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) |