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

Method _connected

examples/cfbridge.py:60–65  ·  view source on GitHub ↗

This callback is called form the Crazyflie API when a Crazyflie has been connected and the TOCs have been downloaded.

(self, link_uri)

Source from the content-addressed store, hash-verified

58 threading.Thread(target=self._server).start()
59
60 def _connected(self, link_uri):
61 """ This callback is called form the Crazyflie API when a Crazyflie
62 has been connected and the TOCs have been downloaded."""
63 print('Connected to %s' % link_uri)
64
65 self._cf.packet_received.add_callback(self._got_packet)
66
67 def _got_packet(self, pk):
68 if pk.port == CRTP_PORT_MAVLINK:

Callers

nothing calls this directly

Calls 1

add_callbackMethod · 0.80

Tested by

no test coverage detected