diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-03-28 23:51:27 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-03-28 23:51:27 +0200 |
commit | 68b8813965cdead743a70e8ee47458d8f1e21dd4 (patch) | |
tree | 8f6348420f092889b1f6567b827e001952e8cf46 /tracker-steamvr/steamvr.hpp | |
parent | f7e66633b3906c90342ff1bd857ab9b3d63dab8e (diff) |
tracker/steamvr: fix vive rotation order
Submitted-by: @subnet-
Issue: #353
cf.
https://github.com/opentrack/opentrack/issues/352#issuecomment-289306146
The submitter's working on the roll code. sin^1 codomain is +-90
deg. so we better use the equivalent atan2(3) formula.
Diffstat (limited to 'tracker-steamvr/steamvr.hpp')
-rw-r--r-- | tracker-steamvr/steamvr.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tracker-steamvr/steamvr.hpp b/tracker-steamvr/steamvr.hpp index 4a2bd117..5546d619 100644 --- a/tracker-steamvr/steamvr.hpp +++ b/tracker-steamvr/steamvr.hpp @@ -20,15 +20,14 @@ using namespace options; struct settings : opts { - value<int> order; settings() : - opts("valve-steamvr"), - order(b, "rotation-order", 0) + opts("valve-steamvr") {} }; -class steamvr : public ITracker +class steamvr : public QObject, public ITracker { + Q_OBJECT public: steamvr(); ~steamvr() override; |