summaryrefslogtreecommitdiffhomepage
path: root/logic
diff options
context:
space:
mode:
Diffstat (limited to 'logic')
-rw-r--r--logic/tracker.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/logic/tracker.cpp b/logic/tracker.cpp
index 0d53c268..dc148eba 100644
--- a/logic/tracker.cpp
+++ b/logic/tracker.cpp
@@ -327,7 +327,8 @@ void Tracker::logic()
value(i) = map(value(i), m(i));
for (int i = 0; i < 6; i++)
- value(i) *= int(m(i).opts.invert) * -2 + 1;
+ if (m(i).opts.invert)
+ value(i) = -value(i);
logger.write_pose(value); // "mapped"