diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-01-11 18:07:24 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-01-11 18:07:24 +0100 |
commit | d9953cc2cdb7c679f7df2cfb118644cb81d23bbd (patch) | |
tree | 037b49c5bf75a30f1ab3e00190fdbef10f16bcce /FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp | |
parent | cb2afb510c98f168e312007cbb92f70b7b4ffa4b (diff) |
use proper scale for translation
Diffstat (limited to 'FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp')
-rw-r--r-- | FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp b/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp index b4100998..c94fa3ff 100644 --- a/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp +++ b/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp @@ -218,9 +218,9 @@ void Tracker::GetHeadPoseData(THeadPoseData *data) Vec3f t = X_GH.t - X_GH_0.t;
// get translation(s)
- if (s.bEnableX) data[TX] = t[0] / 10.0; // convert to cm
- if (s.bEnableY) data[TY] = t[1] / 10.0;
- if (s.bEnableZ) data[TZ] = t[2] / 10.0;
+ if (s.bEnableX) data[TX] = t[0]; // convert to cm
+ if (s.bEnableY) data[TY] = t[1];
+ if (s.bEnableZ) data[TZ] = t[2];
// translate rotation matrix from opengl (G) to roll-pitch-yaw (E) frame
// -z -> x, y -> z, x -> -y
|