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

Method update

cflib/crazyflie/mem/loco_memory.py:91–102  ·  view source on GitHub ↗

Request an update of the memory content

(self, update_finished_cb)

Source from the content-addressed store, hash-verified

89 self._update_finished_cb = None
90
91 def update(self, update_finished_cb):
92 """Request an update of the memory content"""
93 if not self._update_finished_cb:
94 self._update_finished_cb = update_finished_cb
95 self.anchor_data = []
96 self.nr_of_anchors = 0
97 self.valid = False
98 logger.debug('Updating content of memory {}'.format(self.id))
99
100 # Start reading the header
101 self.mem_handler.read(self, LocoMemory.MEM_LOCO_INFO,
102 LocoMemory.MEM_LOCO_INFO_LEN)
103
104 def disconnect(self):
105 self._update_finished_cb = None

Callers

nothing calls this directly

Calls 1

readMethod · 0.80

Tested by

no test coverage detected