diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-11-01 23:48:22 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-11-01 23:48:22 +0100 |
commit | 1489b987a09b1de3cb6317d8765e802647c709fc (patch) | |
tree | c78e117e5e3b9e7a2be089f46b695c2aa50d2b74 /ftnoir_tracker_rift/ftnoir_tracker_rift.cpp | |
parent | dbc732f5187397caba95df6a19e22f086f12f7c5 (diff) |
fix spring -mm0zct
Diffstat (limited to 'ftnoir_tracker_rift/ftnoir_tracker_rift.cpp')
-rw-r--r-- | ftnoir_tracker_rift/ftnoir_tracker_rift.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp b/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp index 0b7673d2..accd41d3 100644 --- a/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp +++ b/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp @@ -93,7 +93,7 @@ bool Rift_Tracker::GiveHeadPoseData(double *data) newHeadPose[Yaw] = yaw; if (useYawSpring) { - newHeadPose[Yaw] = yaw*persistence + (yaw-old_yaw); + newHeadPose[Yaw] = old_yaw*persistence + (yaw-old_yaw); if(newHeadPose[Yaw]>deadzone)newHeadPose[Yaw]-= constant_drift; if(newHeadPose[Yaw]<-deadzone)newHeadPose[Yaw]+= constant_drift; old_yaw=yaw; |