summaryrefslogtreecommitdiffhomepage
path: root/opentrack-logic/tracker.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-07-23 10:58:58 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-07-23 11:05:33 +0200
commit0b3d22a55d9ddaa063902854a4fd32bc613e36a3 (patch)
treeff82b2b041d91637a4d5ca6c2c5e82ecbcfd0832 /opentrack-logic/tracker.h
parent6e49e0c7eceb622759c8b9fb30bb4235cf703acd (diff)
logic/tracker: fix translation compensation
Diffstat (limited to 'opentrack-logic/tracker.h')
-rw-r--r--opentrack-logic/tracker.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/opentrack-logic/tracker.h b/opentrack-logic/tracker.h
index 96fac439..a6752d14 100644
--- a/opentrack-logic/tracker.h
+++ b/opentrack-logic/tracker.h
@@ -36,6 +36,7 @@ private:
double axes[6];
public:
Pose() : axes {0,0,0, 0,0,0} {}
+ Pose(double x, double y, double z, double yaw, double pitch, double roll) : axes { x, y, z, yaw, pitch, roll } {}
inline operator double*() { return axes; }
inline operator const double*() const { return axes; }
@@ -74,8 +75,8 @@ private:
void run() override;
static constexpr double pi = OPENTRACK_PI;
- static constexpr double r2d = 180. / pi;
- static constexpr double d2r = pi / 180.;
+ static constexpr double r2d = 180. / OPENTRACK_PI;
+ static constexpr double d2r = OPENTRACK_PI / 180.;
public:
Tracker(Mappings& m, SelectedLibraries& libs);
~Tracker();