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

Method add_callback

cflib/utils/callbacks.py:42–45  ·  view source on GitHub ↗

Register cb as a new callback. Will not register duplicates.

(self, cb)

Source from the content-addressed store, hash-verified

40 self.callbacks = []
41
42 def add_callback(self, cb):
43 """ Register cb as a new callback. Will not register duplicates. """
44 if ((cb in self.callbacks) is False):
45 self.callbacks.append(cb)
46
47 def remove_callback(self, cb):
48 """ Un-register cb from the callbacks """

Callers 15

__init__Method · 0.80
__init__Method · 0.80
_connectedMethod · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
_connectedMethod · 0.80

Calls

no outgoing calls