The easiest way to control a Crazyflie nano quadcopter is with a laptop and a PS3 controller (or similar), but tonight we played around trying to control it using the Android client. Took a bit of messing around, so here’s how we got it working.
Instead of installing the full Android SDK (ADT bundle) I tried the Android Studio. Only limitation is that I couldn’t find how to install built apps directly onto my phone, but installing with ADB or ssh was fine. Anyway, here’s what we did to get the client running:
- Install Android Studio.
- Clone crazyflie-android-client or download the zip archive
$ hg clone https://bitbucket.org/bitcraze/crazyflie-android-client
- Open Android Studio. Click File > Import project.
- If you’ve changed the channel that your Crazyflie is flying on, you’ll need to edit it in the file:
- Search for “Set channel 107” and change 107 to your channel number.
- Click build.
- The .apk to run on your Android phone will be at:
- If you have adb tools installed, connect your Android device over usb and run:
$ adb install out/production/crazyflie-android-client/crazyflie-android-client.apk
Good luck controlling it.. it’s a bit slower to respond than running it on a laptop/bluetooth, but hopefully that’ll change as they update the Android app.