Git Product home page Git Product logo

dds-defensive-drone-simulator-'s Introduction

Defensive Drone Simulator(DDS)

What is this?

The defensive drone simulator application plays a significant role in our proposed system. It computes the future GPS coordinates of the malicious drone based on its past trajectory. The computed GPS data is then translated back into control data using the DJI Android API, allowing the defensive drone to autonomously fly to the calculated GPS point.



What are functions?

  1. Display TSPI data.
  2. Calculate the predicted path.
  3. Autonomous drone driving.
  4. Save the Log file(.csv).


Test Environment

  • Device: galaxy tab a7 lite (Android 11)
  • laptop: Macbook Air 2(M2)


πŸ–₯️ Application User Interface

The widget settings rate is aligned with the tablet rate. If you want to see a screen that fits the ratio, please use the tablet to run it.

  • Register Page

Untitled

  • Main Page

Untitled



πŸ“ Directory

.
β”œβ”€β”€ main
β”‚Β Β  β”œβ”€β”€ AndroidManifest.xml
β”‚Β Β  β”œβ”€β”€ java
β”‚Β Β  β”‚Β Β  └── com
β”‚Β Β  β”‚Β Β      └── dji
β”‚Β Β  β”‚Β Β          └── sdk
β”‚Β Β  β”‚Β Β              └── venture
β”‚Β Β  β”‚Β Β                  β”œβ”€β”€ BackgroundCallback.java
β”‚Β Β  β”‚Β Β                  β”œβ”€β”€ Interface
β”‚Β Β  β”‚Β Β                  β”‚Β Β  └── IQueue.java
β”‚Β Β  β”‚Β Β                  β”œβ”€β”€ MApplication.java
β”‚Β Β  β”‚Β Β                  β”œβ”€β”€ MainActivity.java
β”‚Β Β  β”‚Β Β                  β”œβ”€β”€ RegisterActivity.java
β”‚Β Β  β”‚Β Β                  β”œβ”€β”€ TSPI.java
β”‚Β Β  β”‚Β Β                  └── Utils
β”‚Β Β  β”‚Β Β                      β”œβ”€β”€ CircularQueueUtil.java
β”‚Β Β  β”‚Β Β                      └── GPSUtil.java
β”‚Β Β  └── res
β”‚Β Β      β”œβ”€β”€ drawable
β”‚Β Β      β”œβ”€β”€ layout
β”‚Β Β      β”‚Β Β  β”œβ”€β”€ activity_connection.xml
β”‚Β Β      β”‚Β Β  └── activity_main.xml
β”‚Β Β      β”œβ”€β”€ mipmap
β”‚Β Β      β”œβ”€β”€ values
β”‚Β Β      β”‚Β Β  β”œβ”€β”€ colors.xml
β”‚Β Β      β”‚Β Β  β”œβ”€β”€ strings.xml
β”‚Β Β      β”‚Β Β  └── themes.xml
β”‚Β Β      β”œβ”€β”€ values-night
β”‚Β Β       Β Β  └── themes.xml


⚠️ Precautions

  • You need to connect your DJI drone to go to the main page of the app. You cannot go to the main page of the app without the drone.
  • When using the application for the first time, Wi-Fi must be connected because the DJI SDK must be installed.
  • You must restart the application after compiling it to run the application.



πŸ—’οΈ Environment settings

Requirements

  • Android Studio 3.2+
  • Android System 4.1+
  • DJI Android SDK 4.16.4

Required API key

  • DJI Developer Key
  • Firebase API Key
  • Google Maps API Key

Integration

Declare dependency via

Gradle:app

dependencies {
    implementation 'androidx.appcompat:appcompat:1.6.1'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
    implementation 'com.google.android.material:material:1.4.0-alpha02'
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.1.5'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
    implementation 'com.google.firebase:firebase-firestore:24.1.1'
    implementation ('com.google.firebase:firebase-bom:32.0.0')
    implementation 'com.google.android.gms:play-services-maps:18.1.0'
    implementation 'com.google.android.gms:play-services-location:20.0.0'
    implementation 'com.google.android.material:material:1.0.0'
    implementation 'com.squareup:otto:1.3.8'
    implementation('com.dji:dji-sdk:4.16.4', {
        exclude module: 'fly-safe-database'
        exclude module: 'library-anti-distortion'
    })
    compileOnly 'com.dji:dji-sdk-provided:4.16.4'
}

Gradle: Project

dependencies {
        classpath 'com.google.gms:google-services:4.3.15'
    }

For further detail on how to integrate the DJI Android SDK into your Android Studio project, please check theΒ Integrate SDK into ApplicationΒ tutorial.

Android Gradle Plugin Version + Gradle Version

  • Android Gradle Plugin Version : 7.4.0
  • Gradle Version : 7.5

Untitled

Modules

  • Recommend 33(API : Android 13.0) or lower

Untitled

JDK version

  • Recommend JDK 17 or JDK 8

Untitled

Modules

Dependency Configuration
androidx.appcompat:appcompat:1.6.1 implementation
androidx.constraintlayout:constraintlayout:2.1.4 implementation
com.dji:dji-sdk-provided:4.16.4 compileOnly
com.dji:dji-sdk:4.16.4 implementation
androidx.test.espresso:espresso-core:3.5.1 androidTestImplementation
com.google.firebase:firebase-bom:32.0.0 implementation
com.google.firebase:firebase-firestore:24.1.1 implementation
androidx.test.ext:junit:1.1.5 androidTestImplementation
junit:junit:4.13.2 testImplementation
com.google.android.material:material:1.0.0 implementation
com.google.android.material:material:1.4.0-alpha02 implementation
com.squareup:otto:1.3.8 implementation
com.google.android.gms:play-services-location:20.0.0 implementation
com.google.android.gms:play-services-maps:18.1.0 implementation



πŸ“š Reference

The following reference were used to develop the application.




πŸ“žΒ Contact

dds-defensive-drone-simulator-'s People

Contributors

uk-jake avatar seungcholcho avatar j-ys avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.