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

Method close

cflib/crazyflie/param.py:299–308  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

297 self._req_param = -1
298
299 def close(self):
300 # First empty the queue from all packets
301 while not self.request_queue.empty():
302 self.request_queue.get()
303 # Then force an unlock of the mutex if we are waiting for a packet
304 # we didn't get back due to a disconnect for example.
305 try:
306 self.wait_lock.release()
307 except Exception:
308 pass
309
310 def request_param_setvalue(self, pk):
311 """Place a param set value request on the queue. When this is sent to

Callers 6

_disconnectedMethod · 0.45
_link_error_cbMethod · 0.45
open_linkMethod · 0.45
close_linkMethod · 0.45
fetchMethod · 0.45
insertMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected