changeset 1301:c13e0705a011

fix mini15 rx math Ignore-this: 34281a3ab287eb6f7722d1d230795f2b
author Drew Perttula <drewp@bigasterisk.com>
date Mon, 30 May 2016 17:45:56 +0000
parents d51014267bfd
children 24357038de9f
files light9/collector/device.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/light9/collector/device.py	Mon May 30 11:13:06 2016 +0000
+++ b/light9/collector/device.py	Mon May 30 17:45:56 2016 +0000
@@ -65,7 +65,7 @@
         return {
             L9['xRotation']: int(math.floor(rx8)),
             # didn't find docs on this, but from tests it looks like 64 fine steps takes you to the next coarse step
-            L9['xFine']: _8bit((rx8 % 1.0) / 4),
+            L9['xFine']: _8bit(1 - (rx8 % 1.0)),
             L9['yRotation']: int(math.floor(ry8)),
             L9['yFine']: _8bit((ry8 % 1.0) / 4),
             L9['rotationSpeed']: 0,