def __init__(self, prompts, newline, driver_event): """ Protocol constructor. @param prompts A BaseEnum class containing instrument prompts. @param newline The newline. @param driver_event Driver process event callback. """ NortekInstrumentProtocol.__init__(self, prompts, newline, driver_event) # create chunker for processing instrument samples. self._chunker = StringChunker(self.sieve_function)
def __init__(self, prompts, newline, driver_event): """ Protocol constructor. @param prompts A BaseEnum class containing instrument prompts. @param newline The newline. @param driver_event Driver process event callback. """ NortekInstrumentProtocol.__init__(self, prompts, newline, driver_event) # create chunker for processing instrument samples. self._chunker = StringChunker(self.sieve_function)
def __init__(self, prompts, newline, driver_event): """ Protocol constructor. @param prompts A BaseEnum class containing instrument prompts. @param newline The newline. @param driver_event Driver process event callback. """ NortekInstrumentProtocol.__init__(self, prompts, newline, driver_event) # create chunker for processing instrument samples. self._chunker = StringChunker(self.sieve_function) self.velocity_sync_bytes = VELOCITY_DATA_SYNC_BYTES self.status_particles = [ VectorDataParticleType.CLOCK, VectorDataParticleType.HARDWARE_CONFIG, VectorDataParticleType.HEAD_CONFIG, VectorDataParticleType.USER_CONFIG, ] self.clock_particle = VectorDataParticleType.CLOCK
def __init__(self, prompts, newline, driver_event): """ Protocol constructor. @param prompts A BaseEnum class containing instrument prompts. @param newline The newline. @param driver_event Driver process event callback. """ NortekInstrumentProtocol.__init__(self, prompts, newline, driver_event) # create chunker for processing instrument samples. self._chunker = StringChunker(self.sieve_function) self.velocity_sync_bytes = VELOCITY_DATA_SYNC_BYTES self.status_particles = [ VectorDataParticleType.CLOCK, VectorDataParticleType.HARDWARE_CONFIG, VectorDataParticleType.HEAD_CONFIG, VectorDataParticleType.USER_CONFIG ] self.clock_particle = VectorDataParticleType.CLOCK
def __init__(self, prompts, newline, driver_event): NortekInstrumentProtocol.__init__(self, prompts, newline, driver_event) # create chunker for processing instrument samples. self._chunker = StringChunker(Protocol.chunker_sieve_function)