summaryrefslogtreecommitdiffhomepage
path: root/logic/tracker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/tracker.cpp')
-rw-r--r--logic/tracker.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/logic/tracker.cpp b/logic/tracker.cpp
index 4072d932..c5db5239 100644
--- a/logic/tracker.cpp
+++ b/logic/tracker.cpp
@@ -264,9 +264,6 @@ void Tracker::logic()
for (int i = 0; i < 6; i++)
value(i) += m(i).opts.zero;
- for (int i = 0; i < 6; i++)
- value(i) *= int(m(i).opts.invert) * -2 + 1;
-
if (zero_)
for (int i = 0; i < 6; i++)
value(i) = 0;
@@ -292,6 +289,9 @@ void Tracker::logic()
for (int i = 0; i < 3; i++)
value(i) = map(value(i), m(i));
+ for (int i = 0; i < 6; i++)
+ value(i) *= int(m(i).opts.invert) * -2 + 1;
+
logger.write_pose(value); // "mapped"
if (nanp)