summaryrefslogtreecommitdiffhomepage
path: root/logic/tracker.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-02-26 18:13:43 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-02-26 18:13:43 +0100
commitdbea153d81a85c387f9ef41bfeb95e92be11fd44 (patch)
tree96db9a2f38608e7539d9c862955719de835aa26c /logic/tracker.cpp
parent962ca4e983ca8ee9f034102c6b655cb15de0a94f (diff)
logic/tracker: remove unused code and struct membersopentrack-2.3.1+fix1
It belonged to the "experimental" center method that got removed already.
Diffstat (limited to 'logic/tracker.cpp')
-rw-r--r--logic/tracker.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/logic/tracker.cpp b/logic/tracker.cpp
index eaae0735..743c887d 100644
--- a/logic/tracker.cpp
+++ b/logic/tracker.cpp
@@ -164,7 +164,6 @@ void Tracker::logic()
euler_t tmp = d2r * euler_t(&value[Yaw]);
scaled_rotation.rotation = euler_to_rmat(c_div * tmp);
real_rotation.rotation = euler_to_rmat(tmp);
- tait_bryan_to_matrices(c_div * tmp, scaled_rotation.rr, scaled_rotation.ry, scaled_rotation.rp);
}
scaled_rotation.camera = get_camera_offset_matrix(c_div);
@@ -200,22 +199,9 @@ void Tracker::logic()
scaled_rotation.rotation = rmat::eye();
real_rotation.rotation = rmat::eye();
- scaled_rotation.center_roll = rmat::eye();
- scaled_rotation.center_yaw = rmat::eye();
- scaled_rotation.center_pitch = rmat::eye();
}
else
{
- euler::tait_bryan_to_matrices(rmat_to_euler(scaled_rotation.rotation),
- scaled_rotation.center_roll,
- scaled_rotation.center_pitch,
- scaled_rotation.center_yaw);
-#if 0
- euler::tait_bryan_to_matrices(rmat_to_euler(real_rotation.rotation),
- real_rotation.center_roll,
- real_rotation.center_pitch,
- real_rotation.center_yaw);
-#endif
real_rotation.rot_center = real_rotation.rotation.t();
scaled_rotation.rot_center = scaled_rotation.rotation.t();
}