Holds data for one anchor
| 28 | |
| 29 | |
| 30 | class 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 | |
| 42 | class LocoMemory(MemoryElement): |