Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/plugins/wedo_plugin/wedo/motor.py
blob: e74c00e13e2f5740fcb5be3b449b01ab3080d631 (plain)
1
2
3
4
5
6
7
def processMotorValues(value):
    """Check to make sure motor values are sane."""
    if 0 < value <= 100:
        return value + 27
    elif -100 <= value < 0:
        return value - 27
    return 0