Skip to content

theYsnS/drone-defense-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Anti-Drone Defense Simulator

Python PyGame OpenCV License: MIT

Simulation framework for counter-unmanned aerial system (C-UAS) defense strategies. Models drone detection, classification, tracking, and neutralization using radar simulation, computer vision, and electronic warfare concepts. Developed based on military defense research background.

Features

  • Radar Simulation: Simulated radar sweeps with configurable range, resolution, and noise
  • Drone Classification: ML-based classification of drone types (quadcopter, fixed-wing, hybrid)
  • Threat Assessment: Real-time threat scoring based on speed, altitude, trajectory, and proximity
  • Defense Zones: Configurable multi-layer defense perimeters (detection, warning, engagement)
  • Electronic Warfare Sim: RF jamming and GPS spoofing simulation modules
  • Trajectory Prediction: Kalman filter-based flight path prediction
  • 2D Visualization: Real-time tactical display with PyGame
  • Scenario Engine: Customizable attack scenarios for training and evaluation

Architecture

┌─────────────┐     ┌──────────────┐     ┌───────────────┐
│ Scenario     │────▶│ Radar Sim    │────▶│ Detector &    │
│ Generator    │     │ (Range/Noise)│     │ Classifier    │
└─────────────┘     └──────────────┘     └───────┬───────┘
                                                  │
┌─────────────┐     ┌──────────────┐     ┌────────▼──────┐
│ Tactical     │◀───│ Defense      │◀───│ Threat        │
│ Display      │     │ Controller   │     │ Assessor      │
└─────────────┘     └──────────────┘     └───────────────┘
                           │
                    ┌──────▼───────┐
                    │ EW / Jammer  │
                    │ Simulation   │
                    └──────────────┘

Installation

git clone https://github.com/theYsnS/drone-defense-simulator.git
cd drone-defense-simulator
pip install -r requirements.txt

Usage

# Run simulation with default scenario
python main.py

# Custom scenario
python main.py --scenario config/scenarios/swarm_attack.yaml

# Headless mode (no visualization)
python main.py --headless --log results.json

Scenarios

  • single_recon.yaml — Single reconnaissance drone approach
  • swarm_attack.yaml — Coordinated multi-drone swarm attack
  • high_altitude.yaml — High-altitude surveillance drone
  • evasive_maneuver.yaml — Drone with evasive flight patterns

License

MIT License - see LICENSE for details.

About

Counter-UAS defense simulation with radar, threat assessment, Kalman tracking, and electronic warfare modules

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages