summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-09-08 07:15:33 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-09-08 07:15:33 +0200
commit54004b14d20d3b07db88e5a08a9c89a48b3efc17 (patch)
treefa00c5fb66dafa24b209d7d8e37775d967139839
parentfacb42e5b7bcf919cf3ef67369683a20ceef2aea (diff)
Flip tx, not yaw, as dyvoid said in the first place
Reported-by: dyvoid via reddit
-rw-r--r--ftnoir_tracker_rift/ftnoir_tracker_rift.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp b/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp
index 8b24dd97..33d8f418 100644
--- a/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp
+++ b/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp
@@ -56,13 +56,13 @@ void Rift_Tracker::GetHeadPoseData(double *data)
old_yaw=yaw;
}
if (s.bEnableYaw)
- data[Yaw] = yaw * -57.295781;
+ data[Yaw] = yaw * 57.295781;
if (s.bEnablePitch)
data[Pitch] = pitch * -57.295781;
if (s.bEnableRoll)
data[Roll] = roll * 57.295781;
if (s.bEnableX)
- data[TX] = pose.Position.x * 1e2;
+ data[TX] = pose.Position.x * -1e2;
if (s.bEnableY)
data[TY] = pose.Position.y * 1e2;
if (s.bEnableX)