diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-01-12 19:50:05 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-01-12 19:50:05 +0100 |
commit | 74b4bd09a8b70ceeec59a96b50bd36b3ebfa1237 (patch) | |
tree | 82e3fb8fa99c2bbfe0f8504c6f0ca7a7946b8b2e /FTNoIR_Tracker_PT | |
parent | f281ba0224b31eec31469372b3cbc27706a9b381 (diff) |
Revert "use proper scale for translation"
This reverts commit efe0a4ae5985fbbbca6ae86c40c61d87d4aa6bae.
Diffstat (limited to 'FTNoIR_Tracker_PT')
-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 c94fa3ff..b4100998 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]; // convert to cm
- if (s.bEnableY) data[TY] = t[1];
- if (s.bEnableZ) data[TZ] = t[2];
+ 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;
// translate rotation matrix from opengl (G) to roll-pitch-yaw (E) frame
// -z -> x, y -> z, x -> -y
|