From 0b93ea80b19d15ad52f3748e31e054bbe24b1787 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 9 Nov 2014 09:42:29 +0100 Subject: reduce pitch input to 90. keep output at 180 It has to stay that way till euler internal usage's gone. --- opentrack/mappings.hpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'opentrack/mappings.hpp') 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 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]) } {} -- cgit v1.2.3