diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-22 10:09:41 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-23 11:05:33 +0200 |
commit | 8d428560bbcf2d5b96df406e3c6b7c5830571058 (patch) | |
tree | 5f52ff8d42241ed3733695bd1d9bcf781a86d39b /opentrack-logic/tracker.cpp | |
parent | 256b5d2204bcae3db62c86cdf4774bdaa448c6b8 (diff) |
logic, api: switch euler to use euler_t input. adjust usages.
Diffstat (limited to 'opentrack-logic/tracker.cpp')
-rw-r--r-- | opentrack-logic/tracker.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/opentrack-logic/tracker.cpp b/opentrack-logic/tracker.cpp index e8d8a522..aec9e654 100644 --- a/opentrack-logic/tracker.cpp +++ b/opentrack-logic/tracker.cpp @@ -194,7 +194,7 @@ void Tracker::logic() for (int i = 0; i < 3; i++) { - value(i) = tmp[i]; + value(i) = tmp(i); value(i+3) = euler(i); } } @@ -223,9 +223,11 @@ void Tracker::logic() value(Pitch) * d2r, value(Roll) * d2r); t_compensate(euler_to_rmat(&value_[0]), - value, - value, + value_, + value_, s.tcomp_tz); + for (int i = 3; i < 6; i++) + value(i) = value_(i); } for (int i = 0; i < 6; i++) |