diff options
author | Aneesh Dogra <lionaneesh@gmail.com> | 2012-12-29 14:39:33 (GMT) |
---|---|---|
committer | Aneesh Dogra <lionaneesh@gmail.com> | 2012-12-29 14:39:33 (GMT) |
commit | 71f264dc831f304d8d7e413e1377dfa75ac16acd (patch) | |
tree | 183d85d486c7d9c1b55341d022a0f98d58e53923 | |
parent | c120e06cbd83972fb2bff82c8be54c99f46acf10 (diff) |
Fixes.
-rw-r--r-- | LevelActivity.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LevelActivity.py b/LevelActivity.py index 0b6060c..ea4c2b5 100644 --- a/LevelActivity.py +++ b/LevelActivity.py @@ -30,8 +30,8 @@ def read_accelerometer(canvas): string = fh.read() xyz = string.split(',') print xyz - x = float(xyz[0]) / 64 - y = float(xyz[1]) / 64 + x = float(xyz[0]) / (64 * 18) + y = float(xyz[1]) / (64 * 18) canvas.motion_cb(x, y) fh.close() GObject.timeout_add(100, read_accelerometer, canvas) |