summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-11-01 23:22:38 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-11-01 23:22:38 +0100
commit99ac22f1ecadfa5da3ef5c9078e553d50d9dc06f (patch)
treebb09853fcedde72f25d685b2fc2361c78a8a6c2c /ftnoir_tracker_rift/ftnoir_tracker_rift.cpp
parent513f93b01ac22842746f493c23bb48eb36071dc5 (diff)
alias variable, fix braino
Diffstat (limited to 'ftnoir_tracker_rift/ftnoir_tracker_rift.cpp')
-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;