(self, crazyflie=None)
| 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. |
nothing calls this directly
no test coverage detected