diff options
Diffstat (limited to 'opentrack')
-rw-r--r-- | opentrack/tracker.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/opentrack/tracker.cpp b/opentrack/tracker.cpp index c9e34c2d..3d88a962 100644 --- a/opentrack/tracker.cpp +++ b/opentrack/tracker.cpp @@ -165,6 +165,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); |