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

Method add_memory

cflib/crazyflie/log.py:185–196  ·  view source on GitHub ↗

Add a raw memory position to log. name - Arbitrary name of the variable fetch_as - String representation of the type of the data the memory should be fetch as (i.e uint8_t, float, FP16) stored_as - String representation of the type the data is stored as

(self, name, fetch_as, stored_as, address)

Source from the content-addressed store, hash-verified

183 self.default_fetch_as.append(name)
184
185 def add_memory(self, name, fetch_as, stored_as, address):
186 """Add a raw memory position to log.
187
188 name - Arbitrary name of the variable
189 fetch_as - String representation of the type of the data the memory
190 should be fetch as (i.e uint8_t, float, FP16)
191 stored_as - String representation of the type the data is stored as
192 in the Crazyflie
193 address - The address of the data
194 """
195 self.variables.append(LogVariable(name, fetch_as, LogVariable.MEM_TYPE,
196 stored_as, address))
197
198 def _set_added(self, added):
199 if added != self._added:

Callers

nothing calls this directly

Calls 1

LogVariableClass · 0.85

Tested by

no test coverage detected