From 54004b14d20d3b07db88e5a08a9c89a48b3efc17 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 8 Sep 2014 07:15:33 +0200 Subject: Flip tx, not yaw, as dyvoid said in the first place Reported-by: dyvoid via reddit --- ftnoir_tracker_rift/ftnoir_tracker_rift.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ftnoir_tracker_rift/ftnoir_tracker_rift.cpp') 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) -- cgit v1.2.3