GO DRONE PROGRAMMING · FLIGHT SIMULATOR · 9 LESSONS
Operations: links, logs, rules and fleets in service
Radio range and link loss, flight logs and anomaly rules, energy planning, preflight checks as code, Remote ID, strategic deconfliction, a fleet backend, property-based flight tests and incident analysis.
Radio links in operations: tested range, what the station sees, the failsafe timeline and margins
Treat the radio link as a measured range around home, show what a ground station sees while reports stop arriving, follow the link-loss failsafe second by second, predict where the vehicle reappears, and plan and fly missions that stay inside the link with margin.
7 min · Worked lesson
Flight logs: fixed-rate records, events, CSV export, per-flight metrics and anomaly rules
Record state and telemetry at a fixed rate and mode changes as events, export the log as CSV without flooding the console, compute distance, maximum altitude, time per mode and battery per kilometre, and run anomaly rules for sudden battery drops, GPS divergence and mode flapping on a flight that has problems.
6 min · Worked lesson
Energy planning before take-off: calibrating consumption, predicting a mission and go/no-go
Calibrate a drain model from short test legs at known airspeeds, fit it by least squares, predict a planned route leg by leg in several wind cases including the airspeed limit, decide go or no-go with a landing reserve and a model margin, then fly the mission and compare prediction with use.
6 min · Worked lesson
Preflight checks as code: fence legs, height limits, obstacle clearance, link and energy with errors.Join
Validate a mission before take-off against a concave geofence leg by leg, the legal height limit with a margin, obstacle clearance, the planned link range and the energy reserve; collect every problem as a typed error with errors.Join, repair what is safe with errors.As, and fly the corrected plan.
7 min · Worked lesson
Remote ID: the broadcast message set, a binary teaching format and a validating receiver
State what standard Remote ID broadcasts and how often according to the FAA, and what EASA says the European broadcast carries; encode a simplified message set (identity, position and altitude, velocity, control station, time mark, emergency status) with encoding/binary; and build a receiver that checks freshness, plausibility and missing fields on simulator telemetry.
7 min · Worked lesson
Strategic deconfliction: 4D volumes, reservations and flying the accepted plans
Describe each operation as segmented 4D volumes (footprint, altitude band, time window), detect conflicts by overlap in time, altitude and buffered footprint, reserve intents first come, first served by moving or rejecting newcomers, then fly the accepted plans with several drones and verify conformance and separation.
7 min · Worked lesson
A fleet backend in Go: a mission API, idempotent POST and a dispatch state machine
Build a mission API with Go 1.22 ServeMux method and wildcard patterns, make POST safe to retry with an Idempotency-Key, dispatch missions to drones through an explicit queued, assigned, flying, done or failed state machine driven by the autopilot, and exercise it all through httptest without opening a socket.
7 min · Worked lesson
Property-based testing of flight software: generated worlds, shrinking and fuzz targets
Generate scenarios from seeds, state invariants that must hold in every world, find a failing seed for a deliberately weak obstacle planner, shrink it to a minimal counterexample, verify the fixed planner across every seed, and express the same property as a Go fuzz target.
7 min · Worked lesson
Post-flight incident analysis: timeline, contributing factors and a verified change
Reconstruct an incident from the autopilot's event timeline and recorded telemetry, separate what the ground station saw from what happened, compute contributing factors such as time without a fix and drift against the planned stand-off, write a blameless summary, change one thing and re-fly the same fault to verify it.
6 min · Worked lesson