Esacode

Docs / Blocks / Simulation

Landing sweep

Simulates drone landings on a moving pad under wind, in parallel.

Runs on a worker (Python) Simulation Version 1.0 Code you can open and adapt

How it works

Each scenario is a landing with its own wind, gusts and sensor noise, repeated with random noise trials. The work is split into parallel tasks over your workers, then combined. Outputs: every scenario as a table, a summary, and sample trajectories for the 3D view. Connect Telemetry to watch the success rate grow while it runs (channel scenarios) and, in a 3D view, one landing flown live (channel pose).

Outputs

OutputGivesWhat it is
All scenarios
results
Table
csv
all-results.csv: one row per scenario
Summary
summary
Metrics
json
summary.json: success rate and errors
Trajectories (3D)
trajectories
3D scene
json
trajectories.json: an esasim.scene/1 scene to replay in a 3D view
Report
report
Text
md
summary.md
Live telemetry
telemetry
Live telemetryWhat the block sends while it runs, for views such as Chart or 3D view.

Settings

SettingDefaultWhat it does
Scenarios
scenarios
400
From 1 to 1000000
Parallel tasks
tasks
4
From 1 to 64
Maximum wind (m/s)
wind_max
15
From 0 to 40
Noise trials per scenario
trials
50
From 1 to 1000
Random seed
seed
1
Trajectories to keep for 3D
samples
6
From 0 to 50
Live 3D: stream one landing
live_3d
on While the sweep runs, the first task sends one sampled landing as live positions (channel pose) at real speed, about 10 seconds. Connect Telemetry to a 3D view to watch it.

Where it runs

On one of your computers with the EsaSim worker: Any worker.

In its code, settings are ctx.params["key"], inputs ctx.inputs["id"] and outputs ctx.output("id", "name.ext"); see Custom blocks.

More in Simulation