Skip to content

neilidk/FlytBase-Assessment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

UAV Flight Simulation with Collision Avoidance System

This assesment simulates three drones flying in a 3D space with conflict avoidance system. It detects potential conflicts between the primary and simulated drones, reports them and adjusts the waypoint's accordingly while minimizing the change in area.

Features

  • Collision Detection: Identifies close approaches within the threshold.
  • Area Calculation: Calculates the area using vector cross product between the waypoints.
  • Path Adjustment: Adjusts the path with an offset to avoid collisions.

Dependencies

  • Python 3
  • numpy
  • matplotlib
  • ffmpeg (animation)

Execution

  • Run python collision_avoidance_system_multi.ipynb
  • Console will display: area calculations, collision detection results, path adjustment vector, area difference
  • Animation will be saved in the same folder in the name of collision_avoidance_test.mp4

Customization

  • The parameters of the drone are mutable.
  • Eg: primary_drone = { "name": "Primary Drone", "waypoints": [(0.6, 0, 0), (1, 0, 0), (1, 0, 1), (0, 1, 0.4)], "t_start": 0, # Start time (seconds) "t_end": 5, # End time (seconds) "color": "red" }
  • Another file is present in the name of collision_avoidance_system_wo_intersection.ipynb in which the waypoints of the primary drone are modified such that it does not intersect with the other simulated drones path, just to show an example. (without conflict)

About

UAV Deconfliction System in Shared Air Space

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors