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

Method remove_update_callback

cflib/crazyflie/param.py:195–206  ·  view source on GitHub ↗

Remove the supplied callback for a group or a group.name

(self, group, name=None, cb=None)

Source from the content-addressed store, hash-verified

193 logger.debug('Variable id [%d] not found in TOC', var_id)
194
195 def remove_update_callback(self, group, name=None, cb=None):
196 """Remove the supplied callback for a group or a group.name"""
197 if not cb:
198 return
199
200 if not name:
201 if group in self.group_update_callbacks:
202 self.group_update_callbacks[group].remove_callback(cb)
203 else:
204 paramname = '{}.{}'.format(group, name)
205 if paramname in self.param_update_callbacks:
206 self.param_update_callbacks[paramname].remove_callback(cb)
207
208 def add_update_callback(self, group=None, name=None, cb=None):
209 """

Callers 3

_param_callbackMethod · 0.80

Calls 1

remove_callbackMethod · 0.45

Tested by

no test coverage detected