# HG changeset patch # User Drew Perttula # Date 2016-05-30 17:45:56 # Node ID c13e0705a011eb5c6a134229a24406d871597724 # Parent d51014267bfda0742f7ca19162dd422e85914ddb fix mini15 rx math Ignore-this: 34281a3ab287eb6f7722d1d230795f2b diff --git a/light9/collector/device.py b/light9/collector/device.py --- a/light9/collector/device.py +++ b/light9/collector/device.py @@ -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,