MCPcopy Create free account
hub / github.com/bitcraze/crazyflie-lib-python / __init__

Method __init__

cflib/crazyflie/param.py:286–297  ·  view source on GitHub ↗

Initialize the thread

(self, cf, useV2, updated_callback)

Source from the content-addressed store, hash-verified

284 get back values"""
285
286 def __init__(self, cf, useV2, updated_callback):
287 """Initialize the thread"""
288 Thread.__init__(self)
289 self.setDaemon(True)
290 self.wait_lock = Lock()
291 self.cf = cf
292 self._useV2 = useV2
293 self.updated_callback = updated_callback
294 self.request_queue = Queue()
295 self.cf.add_port_callback(CRTPPort.PARAM, self._new_packet_cb)
296 self._should_close = False
297 self._req_param = -1
298
299 def close(self):
300 # First empty the queue from all packets

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
add_port_callbackMethod · 0.45

Tested by

no test coverage detected