summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-09-07 21:37:30 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-09-07 21:37:30 +0200
commitc3739b878a02d0c78a1805d403d15d99747b941c (patch)
tree004622780b4f5e724574f06136df02e2e9372fb8 /ftnoir_tracker_rift/ftnoir_tracker_rift.cpp
parenta38fc743ef4153045fb296c274eafaf4b206d5f6 (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.cpp12
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;
}
}
}