summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/tracker.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-09-19 10:25:25 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-09-19 10:25:25 +0200
commit00097d4c2d272bda38e5ebdaa6dffc41a59eba33 (patch)
treed08c0c6fd8ea1a77975ae3003f9a49ad08dac9ce /facetracknoir/tracker.cpp
parent06416c1581409b1fd0737fa8ce7370f58cbdc417 (diff)
reorder, pedantry
Diffstat (limited to 'facetracknoir/tracker.cpp')
-rw-r--r--facetracknoir/tracker.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/facetracknoir/tracker.cpp b/facetracknoir/tracker.cpp
index db2a7af3..dd37e883 100644
--- a/facetracknoir/tracker.cpp
+++ b/facetracknoir/tracker.cpp
@@ -120,11 +120,14 @@ void Tracker::run() {
for (int i = 0; i < 6; i++)
{
- auto& axis = mainApp->axis(i);
raw_6dof.axes[i] = newpose[i];
+
+ auto& axis = mainApp->axis(i);
+
int k = axis.opts.src;
if (k < 0 || k >= 6)
continue;
+
axis.headPos = newpose[k];
}
@@ -162,7 +165,7 @@ void Tracker::run() {
t_compensate(output_camera.axes, output_camera.axes, mainApp->s.tcomp_tz);
if (Libraries->pProtocol) {
- Libraries->pProtocol->sendHeadposeToGame( output_camera.axes );
+ Libraries->pProtocol->sendHeadposeToGame( output_camera.axes );
}
}