usbdriver

Crazyflie USB driver.

This driver is used to communicate with the Crazyflie using the USB connection.


Classes

UsbDriver

UsbDriver()

Crazyradio link driver

Create the link driver


Ancestors (in MRO)

Methods

def close(self)

Close the link.


def connect(self, uri, radio_link_statistics_callback, link_error_callback)

Connect the link driver to a specified URI of the format: radio:////[250K,1M,2M]

The callback for radio link statistics should not be called from the usb driver The callback from linkError will be called when a error occurs with an error message.


def pause(self)

def receive_packet(self, time=0)

Receive a packet though the link. This call is blocking but will timeout and return None if a timeout is supplied.


def restart(self)

def scan_interface(self, address)

Scan interface for Crazyflies


def send_packet(self, pk)

Send the packet pk though the link