summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-09-24 14:13:34 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-09-24 14:13:34 +0200
commit398bb31956cee88cbbdc88a5040532309e4acc1d (patch)
tree699b93dae78eb7bc05ead0796e08c72a44be5dda
parent1b2c6b8c9af31a85fb3688a5354359ae774263d4 (diff)
logic/tracker: use enum values
-rw-r--r--logic/tracker.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/logic/tracker.cpp b/logic/tracker.cpp
index a2c913d3..d7f75e38 100644
--- a/logic/tracker.cpp
+++ b/logic/tracker.cpp
@@ -69,19 +69,19 @@ void Tracker::t_compensate(const rmat& rmat, const euler_t& xyz, euler_t& output
const euler_t ret = rmat * euler_t(xyz(TZ), -xyz(TX), -xyz(TY));
if (disable_tz)
- output(2) = xyz(TZ);
+ output(TZ) = xyz(TZ);
else
- output(2) = ret(0);
+ output(TZ) = ret(0);
if (disable_ty)
- output(1) = xyz(TY);
+ output(TY) = xyz(TY);
else
- output(1) = -ret(2);
+ output(TY) = -ret(2);
if (disable_tx)
- output(0) = xyz(TX);
+ output(TX) = xyz(TX);
else
- output(0) = -ret(1);
+ output(TX) = -ret(1);
}
#include "compat/nan.hpp"