def _setupSerialPort(self,address): if address.lower() == 'virtual': from virtual import virtualPortController self._connection = virtualPortController(self.__class__.__name__,self._sendQueue,self._receiveQueue) else: from misc import serialPortController self._connection = serialPortController(address,self._sendQueue,self._receiveQueue)
def _setupSerialPort(self, address): if address.lower() == 'virtual': pass #from virtual import virtualSerialPortController #self._connection = virtualSerialPortController(self.__name__, self._sendQueue, self._receiveQueue, self._super) else: self._connection = serialPortController(address, self._sendQueue, self._receiveQueue)
def __init__(self,address): self._sendQueue = multiprocessing.Queue() self._receiveQueue = multiprocessing.Queue() self._robotQueue = multiprocessing.Queue() self._connection = serialPortController(address,self._sendQueue,self._receiveQueue) self._connection.daemon = True self._robot = connectionRobot(self._sendQueue,self._robotQueue) self._robot.daemon = True self._connected = False
def _setupSerialPort(self, address): if address.lower() == 'virtual': pass else: self._connection = serialPortController(address, self._sendQueue, self._receiveQueue)