jdavidberger / crazyflie-link-cpp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crazyflie C++ Link

Dependencies

sudo apt install -y libusb-1.0-0-dev

This relies on pybind11, which is a submodule, so don't forget to

git submodule init 
git submodule update

Build C++ lib and examples

mkdir build
cd build
cmake ..
make

The library can be tested using the included example applications, e.g.,:

./example_scan

Build and install development version of the python binding

Building the python binding requires python>=3.6, cmake and Ninja. Ninja and CMake can be installed with pip on Windows and Mac (pip install cmake ninja), or using apt-get on Ubuntu/debian (apt-get install cmake ninja-build).

The following command builds the binding and register it in development mode (ie. as a link) in python.

python3 setup.py develop --user

The library can be tested using the included example scripts, e.g.,:

python3 examples/scan.py

To Do

  • add new test that uses echoDelay

  • Windows crash

  • add broadcast support

    • support send2PacketsNoAck
  • integrate in Crazyflie_cpp and crazyflie_tools

  • Hot Plug support (Linux/Mac only)

About

License:MIT License


Languages

Language:C++ 81.7%Language:CMake 11.7%Language:Python 5.4%Language:Shell 1.1%