From 77f99a01819e4685b595e48d08e3a91f331bb12b Mon Sep 17 00:00:00 2001
From: Marcus Eliasson <marcus@bitcraze.se>
Date: Mon, 12 Aug 2013 09:37:27 +0200
Subject: [PATCH] More tuning of parameters.

---
 lib/cfclient/utils/leapreader.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/cfclient/utils/leapreader.py b/lib/cfclient/utils/leapreader.py
index 7495864..7887dc6 100644
--- a/lib/cfclient/utils/leapreader.py
+++ b/lib/cfclient/utils/leapreader.py
@@ -75,10 +75,10 @@ class LeapListener(leapmotion.Leap.Listener):
             normal = hand.palm_normal
             direction = hand.direction
             # Pich and roll are mixed up...
-            roll = -direction.pitch * leapmotion.Leap.RAD_TO_DEG / 45.0
-            pitch = -normal.roll * leapmotion.Leap.RAD_TO_DEG / 45.0
-            yaw = direction.yaw * leapmotion.Leap.RAD_TO_DEG / 90.0
-            thrust = (hand.palm_position[1] - 50)/200.0 # Use the elevation of the hand for thrust
+            roll = -direction.pitch * leapmotion.Leap.RAD_TO_DEG / 30.0
+            pitch = -normal.roll * leapmotion.Leap.RAD_TO_DEG / 30.0
+            yaw = direction.yaw * leapmotion.Leap.RAD_TO_DEG / 70.0
+            thrust = (hand.palm_position[1] - 80)/150.0 # Use the elevation of the hand for thrust
 
             if thrust < 0.0:
                 thrust = 0.0;
-- 
GitLab