diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-09-07 21:37:30 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-09-07 21:37:30 +0200 |
commit | c3739b878a02d0c78a1805d403d15d99747b941c (patch) | |
tree | 004622780b4f5e724574f06136df02e2e9372fb8 /ftnoir_tracker_rift/ftnoir_tracker_rift.cpp | |
parent | a38fc743ef4153045fb296c274eafaf4b206d5f6 (diff) |
Rift: position tracking DK2, pitch sign
Tested-by: dyvoid, p00ky (both through reddit)
Diffstat (limited to 'ftnoir_tracker_rift/ftnoir_tracker_rift.cpp')
-rw-r--r-- | ftnoir_tracker_rift/ftnoir_tracker_rift.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp b/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp index be0ee689..c43b963a 100644 --- a/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp +++ b/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp @@ -56,17 +56,17 @@ void Rift_Tracker::GetHeadPoseData(double *data) old_yaw=yaw; } if (s.bEnableYaw) - data[Yaw] = yaw * 57.295781f; + data[Yaw] = yaw * 57.295781; if (s.bEnablePitch) - data[Pitch] = pitch * 57.295781f; + data[Pitch] = pitch * -57.295781; if (s.bEnableRoll) - data[Roll] = roll * 57.295781f; + data[Roll] = roll * 57.295781; if (s.bEnableX) - data[TX] = pose.Position.x * 1e-3; + data[TX] = pose.Position.x * 1e2; if (s.bEnableY) - data[TY] = pose.Position.y * 1e-3; + data[TY] = pose.Position.y * 1e2; if (s.bEnableX) - data[TZ] = pose.Position.z * 1e-3; + data[TZ] = pose.Position.z * 1e2; } } } |