From 99ac22f1ecadfa5da3ef5c9078e553d50d9dc06f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 1 Nov 2013 23:22:38 +0100 Subject: alias variable, fix braino --- ftnoir_tracker_rift/ftnoir_tracker_rift.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ftnoir_tracker_rift') 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; -- cgit v1.2.3