diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-04-18 06:10:28 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-04-18 06:34:57 +0200 |
commit | 95b9f8495735bc83e06fa4a17bd54fc553a48d10 (patch) | |
tree | 293801f64476daa70ccbfb94aa8dbd863c66d59c /logic/tracker.cpp | |
parent | cb732ec4142d1b36c10af211ac6d8da4ddb00d45 (diff) |
logic/tracker: fix option not used in logic
Diffstat (limited to 'logic/tracker.cpp')
-rw-r--r-- | logic/tracker.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/logic/tracker.cpp b/logic/tracker.cpp index 2f07304e..3ba81af7 100644 --- a/logic/tracker.cpp +++ b/logic/tracker.cpp @@ -42,7 +42,7 @@ Tracker::~Tracker() wait(); } -Tracker::rmat Tracker::get_camera_offset_matrix(double c) +Tracker::rmat Tracker::camera_offset(double c) { const double off[] = { @@ -174,8 +174,8 @@ void Tracker::logic() real_rotation.rotation = euler_to_rmat(tmp); } - scaled_rotation.camera = get_camera_offset_matrix(c_div); - real_rotation.camera = get_camera_offset_matrix(1); + scaled_rotation.camera = camera_offset(c_div); + real_rotation.camera = camera_offset(1); nanp |= is_nan(value) || is_nan(scaled_rotation.rotation) || is_nan(real_rotation.rotation); @@ -226,11 +226,11 @@ void Tracker::logic() { // inertial case 0: - default: //scaled_rotation.rotation = scaled_rotation rotation = scaled_rotation.rot_center * scaled_rotation.rotation; break; // camera + default: case 1: rotation = scaled_rotation.rotation * scaled_rotation.rot_center; break; @@ -430,7 +430,7 @@ void Tracker::run() } } -void Tracker::get_raw_and_mapped_poses(double* mapped, double* raw) const +void Tracker::raw_and_mapped_pose(double* mapped, double* raw) const { QMutexLocker foo(&const_cast<Tracker&>(*this).mtx); |