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

Method __init__

cflib/crazyflie/localization.py:72–79  ·  view source on GitHub ↗

Initialize the Extpos object.

(self, crazyflie=None)

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls 2

CallerClass · 0.90
add_port_callbackMethod · 0.45

Tested by

no test coverage detected