diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-11-09 09:42:29 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-11-09 09:42:46 +0100 |
commit | 0b93ea80b19d15ad52f3748e31e054bbe24b1787 (patch) | |
tree | 3b68982208b02d5bcef25fd8bf78ba317a6a6cf5 /opentrack | |
parent | 626e0dc9dc84fec1ab04860731e36c5a54a683da (diff) |
reduce pitch input to 90. keep output at 180
It has to stay that way till euler internal usage's gone.
Diffstat (limited to 'opentrack')
-rw-r--r-- | opentrack/mappings.hpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/opentrack/mappings.hpp b/opentrack/mappings.hpp index c58b5863..3b86dfe3 100644 --- a/opentrack/mappings.hpp +++ b/opentrack/mappings.hpp @@ -10,10 +10,11 @@ class Mapping { public: Mapping(QString primary, QString secondary, - int max_value, + int max_x, + int max_y, axis_opts& opts) : - curve(max_value, max_value), - curveAlt(max_value, max_value), + curve(max_x, max_y), + curveAlt(max_x, max_y), opts(opts), name1(primary), name2(secondary) @@ -34,12 +35,12 @@ private: public: Mappings(std::vector<axis_opts*> opts) : axes { - Mapping("tx","tx_alt", 100, *opts[TX]), - Mapping("ty","ty_alt", 100, *opts[TY]), - Mapping("tz","tz_alt", 100, *opts[TZ]), - Mapping("rx", "rx_alt", 180, *opts[Yaw]), - Mapping("ry", "ry_alt", 180, *opts[Pitch]), - Mapping("rz", "rz_alt", 180, *opts[Roll]) + Mapping("tx","tx_alt", 100, 100, *opts[TX]), + Mapping("ty","ty_alt", 100, 100, *opts[TY]), + Mapping("tz","tz_alt", 100, 100, *opts[TZ]), + Mapping("rx", "rx_alt", 180, 180, *opts[Yaw]), + Mapping("ry", "ry_alt", 90, 180, *opts[Pitch]), + Mapping("rz", "rz_alt", 180, 180, *opts[Roll]) } {} |