>> We use cookies to give you a good experience when visiting bitcraze.io. By using our site, you agree to our use of cookies

---------------
| OK, got it! |
---------------

console

Crazyflie console is used to receive characters printed using printf from the firmware.


Classes

Console

Console(crazyflie)

Crazyflie console is used to receive characters printed using printf from the firmware.

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


Instance variables

receivedChar

This member variable is used to setup a callback that will be called when text is received from the CONSOLE port of CRTP (0).

Example:

[...]

def log_console(self, text):
    self.log_file.write(text)

[...]

self.cf.console.receivedChar.add_callback(self.log_console)