Skip to content

Using java and processing to simulate the path of the UAV

License

Notifications You must be signed in to change notification settings

Cx33032/UAV-Simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UAV-Simulation

Using java and processing to simulate the path of the UAV
Reference for the codrone_edu

Codrone Quick Start

Python Download

Suggest to use python 3.7-3.11, link

Install Dependencies

pip install -r requirements.txt

Test Codrone

# src/python/codrone_test
python test.py

Usage

Enter a command: 
Pre-Build commands in codrone_edu: 
land        Land the drone and stop the program, Ctrl^C will have the same result
flip        Let the drone do a flip move, only valid when the battery is above 50%
triangle    The drone will fly in a triangle pattern
circle      The drone will make a circular roll
square      The drone will fly in a square pattern
status      Check the status of the drone, referring to https://docs.robolink.com/docs/codrone-edu/python/Sensors/34-get_sensor_data

Special commands: 
forward [value]   Move forward 'value' centimeters (0 < value < 100, default is 50)
back [value]      Move backward 'value' centimeters (0 < value < 100, default is 50)
right [value]     Move forward 'right' centimeters (0 < value < 100, default is 50)
left [value]      Move forward 'left' centimeters (0 < value < 100, default is 30)
face [value]      Facing 'value' (0 <= value <= 360) 
spiral            Move in a spiral pattern (Rescue simulation)

File Structure

├─src
   ├─java
   │  ├─com
   │  │  ├─uav
   ├─Processing

Tasks

  • Have a map behind the UAV screen
  • Possibly connect to the web and take a google location
  • Instruction 1 : Click Take-off Area
  • Display the latitude and longitude as you're moving the mouse
  • Latitude signifies up and down the globe
  • Longitude goes left and right
  • Get two lats and longitudes (Start and end point)
  • Travel to the endpoint then start the spiral pattern search

General Ideas

Mapping system

  • User clicks for lat and long coordinates
  • Background map
  • Possibly using google maps? (GPS)
    • Maybe screenshots
    • Possibly Google API
      • Works in HTML and Javascript
      • Could HTML, Javascript, and Processing be used simultaneously?

Drone flight patterns

  • Spiral pattern
    Flight Pattern

Drone movement

  • Making fluid movement rather than teleporting

Customizing number of drones

  • Making swarms to search an area
  • Delegate search zones to each drone
  • 1 to 4 drones
  • Changes flight patterns

To-Do List

  • Smooth UAV movement(1 - 2 days)
  • Making multiple flight patterns (1 - 2 days)
  • Brainstorm flight paths for multiple drones at once (1 day)
  • Avoiding rivers, trees, and houses (2 or 3 days)
  • Figuring out the google maps API (1 - 2 days)
  • Figuring out the google maps API (1 - 2 days)
  • Applying the google maps API and adding zooming (2 days)

About

Using java and processing to simulate the path of the UAV

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •