Operations: links, logs, rules and fleets in service · 7 MIN READ

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.

The fleets lesson kept drones apart in flight: altitude layers and a monitor that reacts when two aircraft get close. That is the tactical layer, and it works with seconds of warning. The strategic layer works before take-off: every operation declares the airspace it will use and when, and a service accepts only plans whose volumes do not overlap. Done well, most conflicts are settled on the ground; done badly, two plans that each look fine on their own meet over the same field.

drones · A MAP OF THE IDEA

  1. Plan segmented 4D volumes
  2. Check time, height, ground
  3. Reserve, move or reject
  4. Fly and check conformance

Useful when

  • Most conflicts are settled before any drone takes off.
  • Segmented volumes free the sky as soon as a leg is flown.

Watch out

  • Buffers smaller than real tracking and timing errors void the plan.
  • A strategic plan does not replace tactical separation in flight.

Implementation & operation cost: A volume builder with performance buffers, an atomic reservation store and a conformance monitor on live telemetry.

01

Operations as 4D volumes

An operation is described by the airspace it will occupy: a footprint on the ground (an area to survey, or a corridor along a route), an altitude band and a time window. Each dimension is padded for what can go wrong: the footprint by the vehicle's navigation and tracking error, the band by barometer and altitude-hold error, the window by late take-offs, headwinds and slow climbs. Splitting a flight into segments (a climb above home, a cruise corridor, a descent at the destination) frees each piece of sky as soon as it is flown. The FAA's UTM Concept of Operations v2.0 describes Operation Volumes as 4D blocks of airspace with entry and exit times, stacked in sequence along the flight, with performance buffers applied by the service supplier. EASA's guidance to the U-space regulation, Implementing Regulation (EU) 2021/664, describes a flight authorisation request the same way: a series of 4D volumes with a base and ceiling, lateral and longitudinal limits and entry and exit times, each including the flight's uncertainties.

02

Conflict: three overlaps, cheapest first

Two volumes conflict only if they overlap in time, in altitude and on the ground at once. Time and altitude are intervals, and half-open intervals [From, To) overlap exactly when a.From < b.To and b.From < a.To, so a volume that opens when another closes is not a conflict and back-to-back reservations work. The footprint test is geometry: the distance between two corridors is the smallest distance between their segments (zero if two segments cross), an area polygon also conflicts when a point of the other footprint lies inside it, and the pair conflicts when that distance is below the sum of the two buffers. Run the interval tests first: they cost two comparisons and reject almost every pair in a busy schedule, so the segment geometry runs only for volumes that share time and height. Store volumes in absolute time and metres, and decide once whether buffers grow the footprint or the minimum distance; adding them twice wastes airspace, forgetting them loses separation.

03

Reserve, move or reject

A reservation service must decide in a fixed order and never change its mind about accepted plans. EASA's acceptable means of compliance and guidance material ask U-space service providers to reject a request that conflicts with an earlier one of the same or higher priority, to process requests of equal priority in the order they were submitted, to keep a change that would cause a conflict from replacing the accepted authorisation, and to record rejections with their reasons. The FAA ConOps lists the ways to resolve a conflict: move a volume's entry and exit times, change its lateral or vertical limits, or both, and negotiate between operators when that fails. The program's Registry follows the simplest policy: it tries the intent as filed, then later in 5 s steps up to the delay its operator accepts, and otherwise rejects it with the conflicting intent's ID. The check and the insert must be one atomic step, under one mutex or in one database transaction; two requests that both check before either inserts will both be accepted. Between service suppliers this coordination is distributed: in the US the FAA names the Discovery and Synchronization Service (DSS) as the component that connects them, and InterUSS publishes an open-source DSS written in Go.

04

Reserve, then fly

The program files four intents in order: alpha surveys a 60 by 60 m field at 30 m (one area volume, 0 to 40 m, until 80 s); bravo flies a delivery corridor straight across the field at 30 m; charlie crosses it at 50 m; delta wants to photograph a point inside the field at 20 m. corridor() builds the climb, cruise and descent volumes from nominal climb, cruise and descent times. Reserve moves or rejects. Then Fly flies the plans in one simulation, twice: once as filed, ignoring the decisions, and once as reserved. Every 0.2 s it checks each airborne drone against its own volumes with the same conflict function, using a point-sized probe, and keeps the closest approach of every pair.

go
package main

import (
	"fmt"
	"log"
	"math"
	"slices"

	"gopherforge.app/drone"
)

// Volume is a 4D block of airspace: a footprint grown by Half metres, an altitude
// band [Lo, Hi) and a time window [From, To) in s. The footprint is a polyline (a
// corridor's centre line, a point given twice) or, with Area, a closed polygon.
type Volume struct {
	Path     []drone.Vec3
	Area     bool
	Half     float64
	Lo, Hi   float64
	From, To float64
}

// Intent is an operation filed before flight, and the route flown (from home).
type Intent struct {
	ID, Drone       string
	Start, MaxDelay float64
	Volumes         []Volume
	Route           []drone.Vec3
}

const speed = 8.0 // m/s, the cruise speed the plans assume

// corridor plans a flight from home to dest at alt as three volumes: the
// climb above home, the cruise corridor and the descent at dest. Windows
// come from nominal performance, padded by 5 s each way.
func corridor(id, name string, home, dest drone.Vec3, alt, start, maxDelay float64) Intent {
	t1 := start + alt/2.5 + 2
	t2 := t1 + dest.Sub(home).Len()/speed + 3
	t3 := t2 + alt/2 + 6
	return Intent{ID: id, Drone: name, Start: start, MaxDelay: maxDelay,
		Route: []drone.Vec3{home, {X: dest.X, Y: dest.Y, Z: alt}},
		Volumes: []Volume{
			{Path: []drone.Vec3{home, home}, Half: 5, Lo: 0, Hi: alt + 5, From: start - 5, To: t1 + 5},
			{Path: []drone.Vec3{home, dest}, Half: 8, Lo: alt - 5, Hi: alt + 5, From: t1 - 5, To: t2 + 5},
			{Path: []drone.Vec3{dest, dest}, Half: 5, Lo: 0, Hi: alt + 5, From: t2 - 5, To: t3 + 5},
		}}
}

func cross(o, a, b drone.Vec3) float64 { return (a.X-o.X)*(b.Y-o.Y) - (a.Y-o.Y)*(b.X-o.X) }

// pointSeg is the horizontal distance from p to the segment ab.
func pointSeg(p, a, b drone.Vec3) float64 {
	ab, ap := b.Sub(a).Horizontal(), p.Sub(a).Horizontal()
	t := math.Max(0, math.Min(1, (ab.X*ap.X+ab.Y*ap.Y)/max(ab.X*ab.X+ab.Y*ab.Y, 1e-9)))
	return ap.Sub(ab.Scale(t)).Len()
}

// segDist is the distance between segments ab and cd: 0 if they cross.
func segDist(a, b, c, d drone.Vec3) float64 {
	if cross(a, b, c)*cross(a, b, d) < 0 && cross(c, d, a)*cross(c, d, b) < 0 {
		return 0
	}
	return min(pointSeg(a, c, d), pointSeg(b, c, d), pointSeg(c, a, b), pointSeg(d, a, b))
}

// gap is the horizontal distance between two footprints, 0 if they overlap.
func gap(a, b Volume) float64 {
	if a.Area && drone.Inside(a.Path, b.Path[0]) || b.Area && drone.Inside(b.Path, a.Path[0]) {
		return 0
	}
	best := math.Inf(1)
	for i := 1; i < len(a.Path); i++ {
		for j := 1; j < len(b.Path); j++ {
			best = min(best, segDist(a.Path[i-1], a.Path[i], b.Path[j-1], b.Path[j]))
		}
	}
	return best
}

// conflict: overlapping in time, in altitude and on the ground, cheapest first.
func conflict(a, b Volume) bool {
	return a.From < b.To && b.From < a.To && a.Lo < b.Hi && b.Lo < a.Hi && gap(a, b) < a.Half+b.Half
}

// Registry reserves intents first come, first served.
type Registry struct{ accepted []Intent }

func (r *Registry) conflictWith(in Intent) string {
	for _, old := range r.accepted {
		for _, a := range in.Volumes {
			if slices.ContainsFunc(old.Volumes, func(b Volume) bool { return conflict(a, b) }) {
				return old.ID
			}
		}
	}
	return ""
}

// Reserve accepts an intent as filed or, in 5 s steps, as late as its
// operator allows. Accepted intents are never moved for a newcomer.
func (r *Registry) Reserve(in Intent) (Intent, string, bool) {
	first := r.conflictWith(in)
	for delay := 0.0; delay <= in.MaxDelay; delay += 5 {
		try := in
		try.Start, try.Volumes = in.Start+delay, slices.Clone(in.Volumes)
		for k := range try.Volumes {
			try.Volumes[k].From += delay
			try.Volumes[k].To += delay
		}
		if r.conflictWith(try) == "" {
			r.accepted = append(r.accepted, try)
			if delay == 0 {
				return try, "accepted", true
			}
			return try, fmt.Sprintf("conflicts with %s: moved +%.0f s", first, delay), true
		}
	}
	return in, fmt.Sprintf("rejected: conflicts with %s up to +%.0f s", first, in.MaxDelay), false
}

// Fly flies the plans and prints closest approaches and conformance.
func Fly(sim *drone.Sim, plans []Intent) {
	ds := []*drone.Drone{sim.Drone()}
	for _, p := range plans[1:] {
		ds = append(ds, sim.AddDrone(p.Drone, p.Route[0]))
	}
	leg, in, n, closest := make([]int, len(plans)), make([]int, len(plans)), make([]int, len(plans)), map[[2]int]drone.Vec3{}
	for ; sim.Time() < 150; sim.Run(0.2, nil) {
		t := sim.Time()
		for i, p := range plans {
			switch d := ds[i]; {
			case leg[i] == 0 && t >= p.Start-1e-9:
				d.Arm()
				d.TakeOff(p.Route[1].Z)
				leg[i] = 1
			case leg[i] > 0 && leg[i] < len(p.Route) && d.Arrived():
				d.GoTo(p.Route[leg[i]])
				leg[i]++
			case leg[i] == len(p.Route) && d.Arrived():
				d.Land()
				leg[i]++
			}
			st := ds[i].State()
			if st.Landed {
				continue
			}
			// Conformance is a conflict test of a point against its own volumes.
			n[i]++
			probe := Volume{Path: []drone.Vec3{st.Pos, st.Pos}, Lo: st.Pos.Z, Hi: st.Pos.Z + 0.01, From: t, To: t + 0.01}
			if slices.ContainsFunc(p.Volumes, func(v Volume) bool { return conflict(probe, v) }) {
				in[i]++
			}
			for j := range i {
				off, k := st.Pos.Sub(ds[j].State().Pos), [2]int{j, i}
				if c, ok := closest[k]; !ds[j].State().Landed && (!ok || off.Len() < c.Len()) {
					closest[k] = off
				}
			}
		}
	}
	for i := range plans {
		for j := range i {
			if c, ok := closest[[2]int{j, i}]; ok {
				fmt.Printf("  %-7s %-7s closest %5.1f m (%4.1f m horizontal, %4.1f m vertical)\n", ds[j].Name, ds[i].Name, c.Len(), c.Horizontal().Len(), math.Abs(c.Z))
			} else {
				fmt.Printf("  %-7s %-7s never airborne together\n", ds[j].Name, ds[i].Name)
			}
		}
	}
	fmt.Printf("  samples inside own volumes: %v of %v\n", in, n)
}

func main() {
	field := []drone.Vec3{{X: -10, Y: -30}, {X: 50, Y: -30}, {X: 50, Y: 30}, {X: -10, Y: 30}, {X: -10, Y: -30}}
	filed := []Intent{
		{ID: "survey", Drone: "alpha", Volumes: []Volume{{Path: field, Area: true, Half: 5, Lo: 0, Hi: 40, From: -5, To: 80}},
			Route: []drone.Vec3{{}, {Y: -20, Z: 30}, {X: 40, Y: -20, Z: 30}, {X: 40, Y: 20, Z: 30}, {Y: 20, Z: 30}, {Z: 30}}},
		corridor("delivery", "bravo", drone.Vec3{X: -50, Y: -40}, drone.Vec3{X: 100, Y: 40}, 30, 2, 90),
		corridor("inspection", "charlie", drone.Vec3{X: 70, Y: -50}, drone.Vec3{X: -20, Y: 50}, 50, 15, 30),
		corridor("photo", "delta", drone.Vec3{X: 20, Y: -70}, drone.Vec3{X: 20, Y: 10}, 20, 20, 30),
	}
	reg, plans := Registry{}, []Intent{}
	fmt.Println("intent      drone    filed   volumes  decision")
	for _, in := range filed {
		got, decision, ok := reg.Reserve(in)
		fmt.Printf("%-11s %-8s %4.0f s  %d        %s\n", in.ID, in.Drone, in.Start, len(in.Volumes), decision)
		if ok {
			plans = append(plans, got)
		}
	}
	world := drone.Config{Wind: drone.Vec3{X: 3, Y: -2}, Gust: 1, MaxSpeed: speed, Seed: 9}
	fmt.Println("flown as filed, without deconfliction:")
	Fly(drone.New(world), filed)
	fmt.Println("flown as reserved:")
	sim := drone.New(world)
	Fly(sim, plans)
	if err := sim.Save(); err != nil {
		log.Fatal(err)
	}
}
Read the code

The survey is accepted. The delivery conflicts with it: its cruise volume opens 9 s after take-off (12 s of climb plus 2 s of padding minus the 5 s buffer), so it must start at 71 s or later, and the first 5 s step that fits is +70 s, take-off at 72 s. The inspection is accepted as filed because its 45 to 55 m cruise band lies above the survey's 0 to 40 m. The photo flight would need about +55 s and its operator accepts 30, so it is rejected with the reason. Flown as filed, alpha and bravo pass 0.9 m apart at the same height. Alpha and delta, whose volumes also conflicted, happen to stay 22.4 m apart: a conflict is a risk the plan no longer excludes, not a predicted collision. Flown as reserved, alpha and bravo are never airborne together, alpha and charlie are never closer than 33.6 m (21.1 m horizontally, 26.2 m vertically), and every sample of every drone lies inside its own volumes: 300, 267 and 328 of 300, 267 and 328.

05

Conformance, and when plans change

A plan protects only while the aircraft stays inside it, so the strategic layer needs conformance monitoring in flight: compare each position report with the active volumes, as the program does with a point probe, and alert when a drone leaves them. The FAA ConOps has the service supplier change such an operation's state to Non-Conforming or Rogue and share it with the USS network, so that affected operators are notified; EASA's guidance notes that the 4D volumes of a flight authorisation may be used by a conformance monitoring service. Size volumes from measured performance: EASA's guidance expects flights to stay inside their authorised volumes about 95 percent of the time, and warns that thresholds can also be too wide and waste airspace. When an operation is delayed or rerouted, file the change as a new request against everyone else's plans before flying it. Strategic deconfliction does not replace the tactical layer: a gust, a late take-off or an aircraft outside the system still needs the separation monitor and the failsafes from the earlier lessons.

06

Fly it in GopherForge

In GopherForge choose New project > Robotics and simulation > Drone flight, replace main.go with this program, keep mission.go and tap Run. The console prints the decisions and both comparisons; Output replays the reserved schedule: alpha mows the field, charlie crosses high above it, and bravo crosses the field only after alpha has landed. Raise the photo flight's maximum delay from 30 to 60 s and it is moved by 55 s instead of rejected; or move charlie's corridor down to 30 m: it now shares the survey's band and is rejected as well.

TAKE THIS WITH YOU

Describe every operation as segmented 4D volumes with buffers for navigation and timing, and call two volumes in conflict only when time, altitude and buffered footprint all overlap. Reserve atomically and in order, move or reject the newcomer rather than an accepted plan, and verify in flight that each drone stays inside its own volumes; tactical separation remains the next layer.

Check your understanding

A strategic deconfliction service compares two operation volumes. When does it report a conflict?

Go to the source

Progress stays in this browser. No account needed.