summaryrefslogtreecommitdiffhomepage
path: root/opentrack/tracker.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-21 10:25:10 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-10-21 10:29:17 +0200
commit05b6069b505560a72d50f13c0b80a9e606df294f (patch)
treeef08fa86f71430ac08f54f7b1d47b6204b5e8232 /opentrack/tracker.cpp
parentf6d8fbbf3f4bc6984020de776285a38ad45c3631 (diff)
fix toggle output zeros regression
Diffstat (limited to 'opentrack/tracker.cpp')
-rw-r--r--opentrack/tracker.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/opentrack/tracker.cpp b/opentrack/tracker.cpp
index 41db7c19..8f1854e9 100644
--- a/opentrack/tracker.cpp
+++ b/opentrack/tracker.cpp
@@ -92,7 +92,7 @@ void Tracker::logic()
{
libs.pTracker->data(newpose);
- Pose final_raw;
+ Pose final_raw_;
if (enabledp)
{
@@ -102,13 +102,13 @@ void Tracker::logic()
int k = axis.opts.src;
if (k < 0 || k >= 6)
{
- final_raw(i) = 0;
+ final_raw_(i) = 0;
continue;
}
// not really raw, after axis remap -sh
- final_raw(i) = newpose[k];
+ final_raw_(i) = newpose[k];
}
- unstopped_raw = final_raw;
+ final_raw = final_raw_;
}
Pose filtered_pose;
@@ -142,7 +142,7 @@ void Tracker::logic()
{
QMutexLocker foo(&mtx);
output_pose = mapped_pose;
- raw_6dof = unstopped_raw;
+ raw_6dof = final_raw;
}
}