diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-22 10:13:18 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-23 11:05:33 +0200 |
commit | 46f89ce2321909198774a1c1e8b481436540c11a (patch) | |
tree | 28e9245996068827fe0b9abad36dbf8fd07d1a09 /opentrack-logic/tracker.h | |
parent | 8c7d4cf115de19d704db1ce2d5808a5ab9ca49df (diff) |
logic/tracker: cleanup
Diffstat (limited to 'opentrack-logic/tracker.h')
-rw-r--r-- | opentrack-logic/tracker.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/opentrack-logic/tracker.h b/opentrack-logic/tracker.h index 618de409..96fac439 100644 --- a/opentrack-logic/tracker.h +++ b/opentrack-logic/tracker.h @@ -70,13 +70,17 @@ private: double map(double pos, Mapping& axis); void logic(); - - void t_compensate(const rmat& rmat, const double* ypr, double* output, bool rz); + void t_compensate(const rmat& rmat, const euler_t& ypr, euler_t& output, bool rz); void run() override; + + static constexpr double pi = OPENTRACK_PI; + static constexpr double r2d = 180. / pi; + static constexpr double d2r = pi / 180.; public: Tracker(Mappings& m, SelectedLibraries& libs); ~Tracker(); + rmat get_camera_offset_matrix(); void get_raw_and_mapped_poses(double* mapped, double* raw) const; void start() { QThread::start(); } void toggle_enabled() { qDebug() << "toggle enabled"; enabledp = !enabledp; } |