summaryrefslogtreecommitdiffhomepage
path: root/contrib/glovepie/facetracknoir2trackir.pie
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-10-29 11:05:27 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-10-29 11:05:27 +0100
commit232c2ba8aca7900eaa950c48813ddfaca8a749a8 (patch)
treec08da2e256be5b5e80fac3f611f956fef275f142 /contrib/glovepie/facetracknoir2trackir.pie
parent7128fe581ee2ed25fe8e43ec2be9644e2539e2ad (diff)
parent06a0a71f27134a86d19612fd786bfc2ca6f4c4bb (diff)
Merge branch 'unstable' into trackhat
* unstable: fix vtable mess xargs sed -i -e s/'FaceTrackNoIR Error/Error/g' support rift 0.2.5, 0.4.2, 0.8.0 rift: finish 0.2.5 support buffer flush rename "clientfiles/" to "contrib/" as customary add dropbox uploader to contrib add description on wiki for camera offset
Diffstat (limited to 'contrib/glovepie/facetracknoir2trackir.pie')
-rw-r--r--contrib/glovepie/facetracknoir2trackir.pie16
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/glovepie/facetracknoir2trackir.pie b/contrib/glovepie/facetracknoir2trackir.pie
new file mode 100644
index 00000000..d0839e5d
--- /dev/null
+++ b/contrib/glovepie/facetracknoir2trackir.pie
@@ -0,0 +1,16 @@
+//
+// 6 Degrees of Freedom Headtracking with FaceTrackNoIR
+// 2010 by Wim Vriend
+//
+pie.FrameRate = 120Hz
+var.multiply = 1.5
+var.R2D = 57.295781
+FakeTrackIR.pitch=(Joystick.pitch - 0.10) * var.R2D * var.multiply
+FakeTrackIR.yaw=(Joystick.yaw - 0.10) * var.R2D * var.multiply
+FakeTrackIR.roll=(Joystick.roll - 0.10) * var.R2D * var.multiply
+FakeTrackIR.x=(Joystick.x - 0.10) * var.R2D * var.multiply
+FakeTrackIR.y=(Joystick.y - 0.10) * var.R2D * var.multiply
+FakeTrackIR.z=(Joystick.z - 0.10) * var.R2D * var.multiply
+debug = 'pitch='+FakeTrackIR.pitch+' roll='+FakeTrackIR.roll+' yaw='+FakeTrackIR.yaw+' xyz=('+FakeTrackIR.x+','+FakeTrackIR.y+','+FakeTrackIR.z+')'
+//debug = FakeTrackIR.active
+