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

Class AnchorData

cflib/crazyflie/mem/loco_memory.py:30–39  ·  view source on GitHub ↗

Holds data for one anchor

Source from the content-addressed store, hash-verified

28
29
30class AnchorData:
31 """Holds data for one anchor"""
32
33 def __init__(self, position=(0.0, 0.0, 0.0), is_valid=False):
34 self.position = position
35 self.is_valid = is_valid
36
37 def set_from_mem_data(self, data):
38 x, y, z, self.is_valid = struct.unpack('<fff?', data)
39 self.position = (x, y, z)
40
41
42class LocoMemory(MemoryElement):

Callers 1

new_dataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected