@@ -0,0 +1,1483 @@
+import time%0Aimport random%0A%0A%0Aclass SemiRandomData(object):%0A%0A    def __init__(self, dim, rest, val, noise=0, include_neg=True):%0A        self.axes = int(dim)%0A        self.rest = rest%0A        self.val = val%0A        self.noise = noise%0A        if include_neg:%0A            self.inc_neg = 2%0A        else:%0A            self.inc_neg = 1%0A        self.divisor = self.axes * self.inc_neg%0A        self.t0 = time.time()%0A        self.get_value()%0A%0A    def get_value(self):%0A        t1 = time.time()%0A        div1 = int((t1 - self.t0) // self.rest)%0A        div2 = int(div1 %25 self.divisor)%0A        tup_pos = int(div2 // self.inc_neg)%0A        tup_val = (1 - 2 * (div2 %25 self.inc_neg)) * self.val%0A        output = random_list(3, self.noise)%0A        output%5Btup_pos%5D += tup_val + tup_pos%0A        return tuple(output)%0A%0A%0Adef random_list(dim, span):%0A    randall = %5B%5D%0A    for i in range(dim):%0A        randall.append(span * (1 - 2 * random.random()))%0A    return randall%0A%0A%0Aclass bt(object):%0A%0A    class BThandler(object):%0A%0A        def __init__(self, activity):%0A            self.name = None%0A            self.exists = True%0A            self.ready = False%0A            self.enabled = False%0A            self.paired_device_list = %5B'1', '2', '3'%5D%0A%0A        def get_device_by_name(self, name):%0A            self.name = name%0A            self.ready = True%0A%0A        def get_adapter(self):%0A            self.exists = True%0A            self.enabled = True%0A%0A        def get_paired_device_list(self):%0A            return %5B'1', '2', '3'%5D%0A

Add sensor_simulate file to Windows