bootloader

Bootloading utilities for the Crazyflie.


Sub-modules

Classes

Bootloader

Bootloader(clink=None)

Bootloader utility for the Crazyflie

Init the communication class by starting to communicate with the link given. clink is the link address used after resetting to the bootloader.

The device is actually considered in firmware mode.


Methods

def close(self)

def console_callback(self, text: str)

A callback to run when we get console text from Crazyflie


def flash(self, filename: str, targets: List[cflib.bootloader.Target], cf=None, enable_console_log: Optional[bool] = False)

def flash_full(self, cf: Optional[cflib.crazyflie.Crazyflie] = None, filename: Optional[str] = None, warm: bool = True, targets: Optional[Tuple[str, ...]] = None, info_cb: Optional[Callable[[int, cflib.bootloader.boottypes.TargetTypes], NoReturn]] = None, progress_cb: Optional[Callable[[str, int], NoReturn]] = None, terminate_flash_cb: Optional[Callable[[], bool]] = None, enable_console_log: Optional[bool] = False)

Flash .zip or bin .file to list of targets. Reset to firmware when done.


def get_target(self, target_id)

def reset_to_firmware(self) > bool

def start_bootloader(self, warm_boot=False, cf=None)