Changeset - c13e0705a011
[Not reviewed]
default
0 1 0
Drew Perttula - 9 years ago 2016-05-30 17:45:56
drewp@bigasterisk.com
fix mini15 rx math
Ignore-this: 34281a3ab287eb6f7722d1d230795f2b
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
light9/collector/device.py
Show inline comments
 
@@ -65,7 +65,7 @@ def toOutputAttrs(deviceType, deviceAttr
 
        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,
0 comments (0 inline, 0 general)