diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-09-08 07:15:33 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-09-08 07:15:33 +0200 |
commit | 54004b14d20d3b07db88e5a08a9c89a48b3efc17 (patch) | |
tree | fa00c5fb66dafa24b209d7d8e37775d967139839 | |
parent | facb42e5b7bcf919cf3ef67369683a20ceef2aea (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.cpp | 4 |
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) |