Products
-
-
- Accessories
- Breakout boards
This page has deprecated and will be archived. Please go to https://www.bitcraze.io/.
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!
A Crazyflie, a Leap Motion, the normal Leapmotion installer and the SDK for your platform.
Leap.py
from the directory LeapSDK/lib
into the crazyflie-clients-python/lib/leapmotion
directoryLeapSDK/lib/x86
(or x64
directory) into the crazyflie-clients-python/lib/leapmotion
directory sudo leapd
dev-leapmotion
branchgit 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
Have a look in the crazyflie-clients-python/lib/cfclient/utils/leapreader.py
file.