summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ftnoir_tracker_rift/ftnoir_tracker_rift.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp b/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp
index dc0892fe..db0b1290 100644
--- a/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp
+++ b/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp
@@ -93,13 +93,11 @@ bool Rift_Tracker::GiveHeadPoseData(double *data)
newHeadPose[Yaw] = yaw;
if (useYawSpring)
{
- newHeadPose[Yaw] = newHeadPose[Yaw]*persistence + (yaw-old_yaw);
+ newHeadPose[Yaw] = yaw*persistence + (yaw-old_yaw);
if(newHeadPose[Yaw]>deadzone)newHeadPose[Yaw]-= constant_drift;
if(newHeadPose[Yaw]<-deadzone)newHeadPose[Yaw]+= constant_drift;
old_yaw=yaw;
}
- else
-
#if 0
newHeadPose[TX] = acd.controllers[0].pos[0]/50.0f;
newHeadPose[TY] = acd.controllers[0].pos[1]/50.0f;