A small NetLogo simulator for experimenting with drone deployment, field-of-view visualization, and scan rotation behavior.
The main model in this project is [Drones.nlogox]. It lets you place one or more drones on a 2D grid, adjust their viewing cone, and compare different FOV rendering modes.
- Deploy a single drone at a chosen
x,y, and heading - Deploy multiple drones in vertical or horizontal line formations
- Adjust field-of-view angle and detection range
- Toggle between outline, filled scan, and "real" shaded FOV views
- Rotate drones continuously or within a limited sweep angle
- Show or hide drone labels
- Randomize the next drone spawn point and heading
- NetLogo
7.0.0
- [
Drones.nlogox] - main drone-only simulator - [
Main.nlogox] - alternate model variant with an ally and drones - [
Dronest1.nlogox] - experimental drone model variant
- Install NetLogo
7.0.0or a compatible version. - Open NetLogo.
- Load [
Drones.nlogox]. - Click
SETUP. - Use the deploy controls to create drones.
- Click
STARTto animate rotation and update the scene over time.
SETUPresets the simulator and prepares a fresh sceneSTARTruns the simulation loopRESET SLIDERSrestores the default control valuesCLEARclears the world and resets ticks
fov-anglesets the viewing cone width in degreesfov-lengthsets the viewing distanceFOVturns field-of-view rendering on or offFILLEDswitches between outline mode and filled scan-line modeREALshades patches that fall inside the drone's true angular/radius bounds
Deploy-Xsets the next drone's x-coordinateDeploy-Ysets the next drone's y-coordinateDeploy-Asets the next drone heading in degreesDEPLOY DRONEScreates one drone using the current deploy settingsRandompicks a random deploy position and headingZeroresets deploy coordinates and heading to0- Angle buttons (
0 degthrough315 deg) quickly set common headings
Deploy-Countsets how many drones to create in a lineDeploy-Spacingsets spacing between dronesDEPLOY LINE Ycreates a vertical line formationDEPLOY LINE Xcreates a horizontal line formation
Rotate-Dronesenables or disables automatic drone rotationRotate-Anglesets the sweep rangeRotate-Speedsets how fast drones rotate
Labelsshows or hides drone names
When the controls are reset, the simulator starts with:
fov-length = 5fov-angle = 60Deploy-Count = 3Deploy-Spacing = 2Deploy-X = 0Deploy-Y = 0Deploy-A = 0Rotate-Angle = 360Rotate-Speed = 5
- Compare
FILLEDandREALmodes to see the difference between a visual scan effect and actual area coverage - Set
Rotate-Anglebelow360to simulate back-and-forth scanning - Spawn drone lines with different spacing values to study overlapping coverage
- Turn labels on when testing formations so each drone is easier to track
If you are uploading this to GitHub, a good repository description would be:
NetLogo drone simulator for deployment, field-of-view visualization, and rotating scan behavior.
Suggested topics:
netlogosimulationdrone-simulatoragent-based-modelingfield-of-viewvisualization
- Add obstacles or terrain
- Add moving targets or patrol logic
- Detect overlap between drone coverage zones
- Export screenshots or metrics from runs
- Add mission scenarios such as search sweeps or perimeter scans