コード例 #1
0
 def __init__(self):
     CRTPDriver.__init__(self)
     self.prrt_socket = None
     self.uri = ''
     self.link_error_callback = None
     self.packet_log = None
     self.log_index = 0
     logger.info('Initialized PRRT driver.')
コード例 #2
0
 def __init__(self):
     """ Create the link driver """
     CRTPDriver.__init__(self)
     self.cradio = None
     self.uri = ""
     self.link_error_callback = None
     self.link_quality_callback = None
     self.in_queue = None
     self.out_queue = None
     self._thread = None
コード例 #3
0
 def __init__(self):
     """ Create the link driver """
     CRTPDriver.__init__(self)
     self.cfusb = None
     self.uri = ""
     self.link_error_callback = None
     self.link_quality_callback = None
     self.in_queue = None
     self.out_queue = None
     self._thread = None
コード例 #4
0
 def __init__(self):
     CRTPDriver.__init__(self)
     self.ser = None
     self.uri = ''
     self.link_error_callback = None
     self.in_queue = None
     self.out_queue = None
     self._receive_thread = None
     self._send_thread = None
     logger.info('Initialized serial driver.')
コード例 #5
0
 def __init__(self):
     """ Create the link driver """
     CRTPDriver.__init__(self)
     self._radio_manager = None
     self.uri = ''
     self.link_error_callback = None
     self.link_quality_callback = None
     self.in_queue = None
     self.out_queue = None
     self._thread = None
     self.needs_resending = True
コード例 #6
0
 def __init__(self):
     """ Create the link driver """
     CRTPDriver.__init__(self)
     self.cfusb = None
     self.uri = ''
     self.link_error_callback = None
     self.link_quality_callback = None
     self.in_queue = None
     self.out_queue = None
     self._thread = None
     self.needs_resending = False
コード例 #7
0
 def __init__(self):
     """ Create the link driver """
     CRTPDriver.__init__(self)
     self.uri = ""
     self.link_error_callback = None
     self.link_quality_callback = None
     self.in_queue = None
     self.out_queue = None
     self._thread = None
     self.needs_resending = True
     self._profile = None
     self._radio_id = None
コード例 #8
0
ファイル: bledrv.py プロジェクト: ussamazahid96/quad96
    def __init__(self, address=None):
        CRTPDriver.__init__(self)
        self.address_give = address
        self.needs_resending = True
        self.in_queue = queue.Queue()

        self.pid = 0
        self.service = None
        self.crtp = None
        self.crtp_up = None
        self.crtp_down = None

        self.scanner = b.btle.Scanner()
        self.peripheral = b.btle.Peripheral()
        self.peripheral.setDelegate(MyDelegate(self.in_queue))