def __init__(self, function, realTime=False):
    threading.Thread.__init__(self)
    self.execute = False
    self.function = function
    self.realTime = realTime
    self.scaling = 1
    self.model_offset = 0.0
    self.real_offset = 0.0
def __init__(self, function, realTime=False):
    threading.Thread.__init__(self)
    self.execute = False
    self.function = function
    self.realTime = realTime
    self.scaling = 1
    self.model_offset = 0.0
    self.real_offset = 0.0