Initialize the Extpos object.
(self, crazyflie=None)
| 70 | LH_PERSIST_DATA = 11 |
| 71 | |
| 72 | def __init__(self, crazyflie=None): |
| 73 | """ |
| 74 | Initialize the Extpos object. |
| 75 | """ |
| 76 | self._cf = crazyflie |
| 77 | |
| 78 | self.receivedLocationPacket = Caller() |
| 79 | self._cf.add_port_callback(CRTPPort.LOCALIZATION, self._incoming) |
| 80 | |
| 81 | def _incoming(self, packet): |
| 82 | """ |
nothing calls this directly
no test coverage detected