summaryrefslogtreecommitdiffhomepage
path: root/opentrack/tracker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack/tracker.cpp')
-rw-r--r--opentrack/tracker.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/opentrack/tracker.cpp b/opentrack/tracker.cpp
index 58e911bf..88c90032 100644
--- a/opentrack/tracker.cpp
+++ b/opentrack/tracker.cpp
@@ -162,6 +162,10 @@ void Tracker::logic()
for (int i = 0; i < 6; i++)
value[i] *= inverts[i] ? -1. : 1.;
+ if (zero_)
+ for (int i = 0; i < 6; i++)
+ value(i) = 0;
+
libs.pProtocol->pose(value);
QMutexLocker foo(&mtx);