summaryrefslogtreecommitdiffhomepage
path: root/tracker-tobii-eyex/head-tracking.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-07-10 04:12:50 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-07-10 04:12:50 +0200
commit6135655fd9cb97d61ed03c65b3130eac9d7ccc11 (patch)
treed485260d2f5c3d084953feeddfe2d34aa79f777d /tracker-tobii-eyex/head-tracking.cpp
parent47986eb95ab38bb2dd4d8dc05bba04c323ed280e (diff)
tracker/tobii-eyex: working (?) prototype
Diffstat (limited to 'tracker-tobii-eyex/head-tracking.cpp')
-rw-r--r--tracker-tobii-eyex/head-tracking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-tobii-eyex/head-tracking.cpp b/tracker-tobii-eyex/head-tracking.cpp
index 8973293d..77394f11 100644
--- a/tracker-tobii-eyex/head-tracking.cpp
+++ b/tracker-tobii-eyex/head-tracking.cpp
@@ -5,7 +5,7 @@
real tobii_eyex_tracker::gain(real x)
{
// simple sigmoid
- x = clamp(x * 12 - 6, -6, 6);
+ x = clamp(x * 6, -6, 6);
x = 1 / (1 + exp(-x));
x = x * 2 - 1;
return clamp(x, -1, 1);