Search Results

Pages

pcap

Classes PCAPLog PCAPLog() " From wiki.wireshark.org: Global Header This header starts the libpcap file and will be followed by the first packet header: typedef struct pcap_hdr_s { guint32 magic_number; /* magic number */ guint16 version_major; /* major version number */ guint16 version_minor; /* minor… Read More

Webots keyboard control

This example runs in Webots 2023b. Then just run the following webots webots/worlds/crazyflie_world.wbt Or open up the world by the menu item file>open world.... You'll see a crazyflie take off. You can now click the 3d world to make sure it is active, and use the arrow keys on your keyboard to control… Read More

Using Matlab with the Crazyflie API

To use the Python cflib with matlab, you will need to install the python 'matlab engine' and then can access all matlab commands directly from python. *Note that these are old instructions and they might not work anymore** Tried with MATLAB 2014b 64 bit python 2.7, 3.3 or 3.4 The Crazyflie API Installing… Read More

i2c_element

Classes I2CElement I2CElement(id, type, size, mem_handler) A memory Initialize the element with default values Ancestors (in MRO) cflib.crazyflie.mem.memory_element.MemoryElement Methods def disconnect(self) def new_data(self, mem, addr, data) Callback for when new memory data has been fetched def update(self,… Read More

On-chip debugging

One of the key components of getting serious about developing on the Crazyflie, is to dive into the C-based firmware. If you want to do some major changes to the intrinsics of the code, it is essential to have proper tools to be able to debug the code (place breakpoints, read real-time values etc...).… Read More

Building the firmware

This project can be built using the Toolbelt or with natively installed tools. Using the Toolbelt Make sure the Toolbelt is installed From a terminal, run To build the firmware with the Crazyradio 2.0 USB protocol: tb build To build with the legacy (ie Crazyradio-PA emulation) protocol; tb build-legacy… Read More

Development Tools for CFclient

This page contains generic information about various topics that might be interesting while developing for the Crazyflie Python client. The same kind of information is available here for the Crazyflie Python API. Here's a quick overview: The GUI is made in QT6 (using QTDesigner and loading the .ui files… Read More

JTAG programmer

JTAG adapter/debugger The GAP8 SDK has recently added support for OpenOCD and debuggers with a FTDI interface should be usable. We have tested the Olimex ARM-USB-TINY-H with success and also the JLINK. The same applies to the ESP32 and a rule of thumb is that if the JTAG debugger is compatible with… Read More

Webots Wall following

This example runs in Webots 2023b. Run the following world webots webots/worlds/crazyflie_appartement.wbt Or open up the world by the menu item file>open world.... Go to the webots/controller/crazyflie_controller_py_wallfollowing/ and look into crazyflie_controller_py_wallfollowing.py. Make sure this… Read More

led_driver_memory

Classes LED LED() Used to set color/intensity of one LED in the LED-ring Initialize to off Methods def set(self, r, g, b, intensity=None) Set the R/G/B and optionally intensity in one call LEDDriverMemory LEDDriverMemory(id, type, size, mem_handler) Memory interface for using the LED-ring mapped memory… Read More