summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-11-01 23:48:22 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-11-01 23:48:22 +0100
commit1489b987a09b1de3cb6317d8765e802647c709fc (patch)
treec78e117e5e3b9e7a2be089f46b695c2aa50d2b74 /ftnoir_tracker_rift/ftnoir_tracker_rift.cpp
parentdbc732f5187397caba95df6a19e22f086f12f7c5 (diff)
fix spring -mm0zct
Diffstat (limited to 'ftnoir_tracker_rift/ftnoir_tracker_rift.cpp')
-rw-r--r--ftnoir_tracker_rift/ftnoir_tracker_rift.cpp2
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;