Products
-
-
- Accessories
- Breakout boards
This is an old revision of the document!
There's a quick hack for flying the Crazyflie with the Leap Motion in the Crazyflie PC client repo on the dev-leapmotion branch. The application replaces the normal input with a Leap Motion input. So this branch only works with Leapmotion 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-pc-client/lib/leapmotion directoryLeapSDK/lib/x86 (or x64 directory) into the crazyflie-pc-client/lib/leapmotion directory sudo leapd
dev-leapmotion branchhg clone https://bitbucket.org/bitcraze/crazyflie-pc-client hg update dev-leapmotion
cd crazyflie-pc-client/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-pc-client/lib/cfclient/utils/leapreader.py file.