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

Method __init__

cflib/crazyflie/log.py:412–430  ·  view source on GitHub ↗
(self, crazyflie=None)

Source from the content-addressed store, hash-verified

410 }
411
412 def __init__(self, crazyflie=None):
413 self.log_blocks = []
414 # Called with newly created blocks
415 self.block_added_cb = Caller()
416
417 self.cf = crazyflie
418 self.toc = None
419 self.cf.add_port_callback(CRTPPort.LOGGING, self._new_packet_cb)
420
421 self.toc_updated = Caller()
422 self.state = IDLE
423 self.fake_toc_crc = 0xDEADBEEF
424
425 self._refresh_callback = None
426 self._toc_cache = None
427
428 self._config_id_counter = 1
429
430 self._useV2 = False
431
432 def add_config(self, logconf):
433 """Add a log configuration to the logging framework.

Callers

nothing calls this directly

Calls 2

CallerClass · 0.90
add_port_callbackMethod · 0.45

Tested by

no test coverage detected