This repository includes an Android app for performing line detection landing of DJI drones. The app was tested on Mavic Air 2.
This project is designed to control a drone for precise landing using the DJI SDK. The controller utilizes advanced line detection and image processing techniques to ensure the drone can land accurately based on visual feedback from its camera.
The core logic of the landing controller can be found in the following directory:
app/src/main/java/com/dji/sdk/sample/demo/accurateLandingController
To download and run this project on your local machine, follow the steps below:
Ensure that the following are installed on your system:
- Android Studio (for development)
- Java Development Kit (JDK) (version 8 or above)
- DJI SDK (make sure you follow DJI's setup instructions for Android development)
To download the project from Git, follow these steps:
-
Open a terminal and navigate to the directory where you want to clone the project.
-
Run the following command to clone the repository:
git clone https://github.com/shirelzz/Autonomic_Drones_Project.git
-
Navigate into the project directory:
cd Autonomic_Drones_Project
- Launch Android Studio.
- Click on File > Open and select the cloned project directory.
- Let the project sync with Gradle and ensure that all dependencies are resolved.
- Connect your DJI drone to your Android device.
- In Android Studio, select your connected device and click Run.
- The app will be deployed to your device, and you can start testing the drone's accurate landing capabilities.