summaryrefslogtreecommitdiffhomepage
path: root/opentrack
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
parentf6d8fbbf3f4bc6984020de776285a38ad45c3631 (diff)
fix toggle output zeros regression
Diffstat (limited to 'opentrack')
-rw-r--r--opentrack/tracker.cpp10
-rw-r--r--opentrack/tracker.h2
2 files changed, 6 insertions, 6 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;
}
}
diff --git a/opentrack/tracker.h b/opentrack/tracker.h
index 5ec44968..462f4e50 100644
--- a/opentrack/tracker.h
+++ b/opentrack/tracker.h
@@ -23,7 +23,7 @@ private:
Mappings& m;
Timer t;
- Pose output_pose, raw_6dof, raw_center, unstopped_raw;
+ Pose output_pose, raw_6dof, raw_center, final_raw;
double newpose[6];
std::atomic<bool> centerp;
std::atomic<bool> enabledp;