Skip to content

DroneDetour is a Java library and Android demo for UAV path planning and automatic detour navigation. It computes the shortest safe route around polygonal no-fly zones

License

Notifications You must be signed in to change notification settings

xumeng367/DroneDetour

Repository files navigation

✈️ DroneDetour

Making every drone flight safe and intelligent


DroneDetour ✈️

DroneDetour is a Java-based library with an Android demo that implements an intelligent UAV detour path planning algorithm.
It enables autonomous drones to calculate the shortest safe flight route around multiple polygonal no-fly zones, ensuring reliable navigation even under GPS-degraded or restricted environments.


🌟 Features

  • 🚫 Support for multiple polygonal no-fly zones
  • 🧭 Automatic shortest detour route calculation
  • ⚙️ Configurable safeBuffer (e.g., 10 meters)
  • 📱 Android demo for visualization and testing
  • 💡 Pure Java library — easy to integrate into flight control or simulation systems

🚀 Quick Start

🔧 1. Add the library to your Android project

Copy the lib_detour module into your project.

🧩 2. Initialize and compute a detour path

  List<MyLatLng> noFlyZone = new ArrayList<MyLatLng>();
        noFlyZone.add(.);//no fly zone border point

List<List<MyLatLng>> noFlyZones = new ArrayList<List<MyLatLng>>();
        noFlyZones.add(noFlyZone);
//1. update no fly zones
        DetourPathManager.getsInstance().updateNoFlyZones(noFlyZones);
//2. calculate the shortest detour path 
MyLatLng startPoint = new MyLatLng(36.1234132, 120.333345);
MyLatLng endPoint = new MyLatLng(36.1234132, 120.333345);
//3. get the detour path
List<MyLatLng> detourPath = DetourPathManager.getsInstance().calculateDetourPath(List.of(startPoint, endPoint));

🎯 Drone Detour Demo

📱 Screenshot

Default demo screen App UI

Across noFlyZones

App UI

Detour path

App UI

🚀 Future Roadmap

  • Machine Learning-based path optimization

  • Swarm coordination algorithms

  • Real-time weather integration

  • Extended no-fly zone database


👨‍💻 Author

Meng Xu(许萌)
📧 [email protected]
💻 GitHub: xumeng367


📜 License

This project is licensed under the MIT License.
You are free to use, modify, and distribute it — but please retain author attribution.


⭐ Support the Project

If you find DroneDetour useful, please give us a star ⭐ on GitHub! This helps us reach more developers and continue improving the library.


Made with ❤️ by Meng Xu
Making every drone flight safe and intelligent.

About

DroneDetour is a Java library and Android demo for UAV path planning and automatic detour navigation. It computes the shortest safe route around polygonal no-fly zones

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published