This is a simple base repository based on the Parrot SDK Sample. You can use this modified repository, and instructions, to build your own Android App to fly one of the HVCC Parrot Drones.
Currently this project is known to work only with the Parrot Mini Drone.
The general steps to code your own Android drone app are:
- Install Android Studio
- Install Git (if not already installed)
- Open Android Studio, Select
Check out project from Version Control
and chooseGit
. - Enter the Git Repository URL from GitHub and Clone this Repo into a new Project in Android Studio. *
- Edit the
app/src/main/res/values/strings.xml
file and name your application - In the
edu.hvcc.ciss180.parrontdrone.preprogrammed
package, edit theexecute()
method of theMiniDroneRoutine
class. This is the routine that will run when the button is pushed in flight. (Additional help is available as comments in that method.) - Run the Gradle
assemble
task. Two.apk
files will be placed in theapp/build/outputs/apk/
directory. - Transfer the
app-debug.apk
file (it may be named slightly differently) to your Android Device and install. - Connect to your drone using Bluetooth**
- Run the app, take-off and press the
Execute Program
button to run your code.
*Note: If you want to use source code control while writing your app, and you have a GitHub account, you can fork this repo to your account and then clone from your fork.
**If you get a white screen when you start your app, make sure your Bluetooth is enabled and you are connected to the drone.