Table of Contents

This page has deprecated and will be archived. Please go to https://www.bitcraze.io/.

Flying the Crazyflie with the Leapmotion

There's a quick hack for flying the Crazyflie with the Leap Motion in the Crazyflie Python client repo on the dev-leapmotion branch. The application replaces the normal input with a Leap Motion input. So this branch only works with Leap Motion and not normal controllers. The code will be integrated with the main branch once development is done. The client with Leap Motion have been tested on Linux/Windows and should also work on MacOSX.

Please note: This is VERY experimental so be careful!

What you need

A Crazyflie, a Leap Motion, the normal Leapmotion installer and the SDK for your platform.

How to get it working

sudo leapd
git clone https://github.com/bitcraze/crazyflie-clients-python.git
git checkout dev-leapmotion
cd crazyflie-clients-python/bin
./cfclient

In order to minimize the risk of accidental flying the orientation is only read when 4 or more fingers are detected. If the Crazyflie just drops out of the air it's probably because of this. So making a fist with your hand during flight will make the Crazyflie drop :-)

Tweaking

Have a look in the crazyflie-clients-python/lib/cfclient/utils/leapreader.py file.