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

Method __init__

cflib/crazyflie/console.py:44–52  ·  view source on GitHub ↗

Initialize the console and register it to receive data from the copter.

(self, crazyflie)

Source from the content-addressed store, hash-verified

42 """
43
44 def __init__(self, crazyflie):
45 """
46 Initialize the console and register it to receive data from the copter.
47 """
48
49 self.receivedChar = Caller()
50
51 self.cf = crazyflie
52 self.cf.add_port_callback(CRTPPort.CONSOLE, self.incoming)
53
54 def incoming(self, packet):
55 """

Callers

nothing calls this directly

Calls 2

CallerClass · 0.90
add_port_callbackMethod · 0.45

Tested by

no test coverage detected