Keeping a Moving Array Calibratable in Real Time

Many sensing systems build an image by correlating the signals from pairs of sensors. Every sensor adds its own unknown, slowly drifting gain: an amplitude and phase error from cables, electronics, and temperature. Redundant baseline calibration removes these errors without any external reference. If two sensor pairs are separated by exactly the same displacement vector (a "baseline"), they must see the same signal, so any difference between their measurements reveals the sensors' own gains. Radio telescopes such as HERA and MWA rely on this. Those arrays are bolted to the ground in perfect grids. A swarm of drones each carrying a receiver could form a large, reconfigurable array. But drones flying through clutter must bend, stretch, and tilt their formation, and that destroys the exact geometric repetition the calibration needs.

This note proposes a trajectory planner for a mobile sensor swarm that does not hold a rigid lattice. Instead it enforces one scalar constraint, computable in real time: the set of nearly repeated baselines must still pin down every sensor's gain, up to the four ambiguities that redundant calibration can never resolve. The formation is free to deform in any way that keeps the gain problem well conditioned. This places the planner between rigid formations, which deadlock in clutter, and shape-invariant formations, which navigate well but discard redundancy. The constraint is an eigenvalue of a small matrix with an analytic gradient. That matters, because whether the idea is useful depends on whether it fits inside a millisecond-scale replanning loop.

Core Claim

Calibratability is a property of the graph of near-equal baselines, not of the exact formation shape. Write $\eta_i$ for the log-amplitude gain of sensor $i$. For any two baselines $(i,j)$ and $(k,l)$, the ratio of their measured correlations gives a gain-only equation, $\eta_i+\eta_j-\eta_k-\eta_l = \text{noise}$. The phase equation is analogous, with differences in place of sums. This equation holds only if the two baselines measure the same signal. We weight it by how close the baselines are, and by how similarly the four vehicles are tilted, since tilt changes each receiver's directional response. That gives the matrix

$$M(p,q) = \sum_{(ij),(kl)} w_{ij,kl}(p,q)\, r_{ijkl} r_{ijkl}^\top, \qquad w_{ij,kl} = \exp\!\left(-\frac{\|\mathbf b_{ij}-\mathbf b_{kl}\|^2}{\sigma^2} - \frac{\Delta\theta_{ijkl}^2}{\tau^2}\right).$$

Here $p$ and $q$ are the swarm's positions and attitudes. $r_{ijkl}$ is the $N$-vector with $+1$ at entries $i$ and $j$ and $-1$ at entries $k$ and $l$. $\mathbf b_{ij}$ is the baseline vector. $\Delta\theta_{ijkl}$ is the largest attitude difference among the four vehicles. $\sigma$ and $\tau$ are tolerances. For the combined amplitude and phase systems, the null space of $M$ always contains the four known degeneracies: overall scale, overall phase, and two phase gradients (Redundant-baseline calibration of the hydrogen epoch of reionization array). We define calibratability $\lambda(p,q)$ as the smallest eigenvalue of $M$ outside that null space. The planner requires $\lambda \ge \lambda_{\min}$ along the trajectory.

The position tolerance $\sigma$ can be generous. The perturbative analysis in Precision calibration of radio interferometers using redundant baselines shows that residual calibration error grows quadratically, not linearly, with small position errors. We set $\sigma$ from that result, scaled to the observing wavelength. The claim is that this single constraint keeps most of the navigation success of flexible formations and most of the calibration accuracy of rigid ones. It is also cheap: for a 7 to 16 drone swarm, $M$ is a 16×16 matrix at most, and the eigenvalue's gradient is $v^\top (\partial M/\partial p) v$, where $v$ is the eigenvector belonging to that smallest eigenvalue.

Research Program

The program has three parts: a planner, an online calibrator, and a simulation testbed.

Planner. We start from the distributed swarm planner of Distributed Swarm Trajectory Optimization for Formation Flight in Dense Environments. That method supplies our machinery: polynomial trajectories optimized with L-BFGS, plus a shape-matching term that ignores translation, rotation, and scale. It keeps a formation's shape so the swarm can squeeze through clutter. It has no sensor model at all, and its scale and rotation invariance is exactly what breaks baseline equality. We replace or supplement its shape term with a penalty $\max(0,\lambda_{\min}-\lambda(p(t),q(t)))^2$, evaluated at the same sample times it already uses for collision checks. Attitude comes from the quadrotor's differential flatness: thrust direction follows from acceleration. The tilt term therefore pushes vehicles in the same redundant group to accelerate alike. This addresses beam mismatch caused by maneuvering, which ground arrays never face.

The structure follows the active self-calibration planner of Trajectory Optimization for Self-Calibration and Navigation, which also maximizes a minimum singular value. There are two differences. Its quantity is an empirical observability Gramian of one robot's own sensor biases, computed by simulation and too slow to replan with. Ours is a closed-form cross-agent matrix that needs no simulated rollouts. We keep all eigen-computations on the CPU. The study SOLVING QUADRATIC PROGRAMMING PROBLEMS ON GRAPHICS PROCESSING UNIT found that GPUs lose to CPUs on single problems with fewer than 100 variables, which rules out GPU offloading for matrices this small.

Online calibrator. The calibrator runs at the correlator's output rate. On start-up it initializes delays and phases with the firstcal method from the HERA pipeline. After that it takes one or two iterations of the linearized solver from Precision calibration of radio interferometers using redundant baselines, warm-started from the previous step's gains. We avoid the logarithmic logcal method: it is cheaper per step, but it is biased and fails when phases wrap past ±π, which is exactly the shortcut a latency budget tempts. Baselines are grouped using the same soft weights the planner uses. Each group is checked for consistency with the HERA pipeline's diagnostics: goodness of fit ($\chi^2$ per degree of freedom), a modified z-score to flag bad sensors, and the relative non-redundancy metric. The four degeneracies are fixed by one cheap external anchor, because redundancy alone cannot fix them.

Testbed. Swarm dynamics run in Flightmare: A Flexible Quadrotor Simulator, which simulates 150 quadrotors in parallel at up to 200,000 physics steps per second. Obstacle fields reproduce the dense-forest benchmark of the swarm planner (up to 300 cylinders, a 7-drone hexagon and a 4-drone tetrahedron). Each drone carries a simulated receiver with a tilt-dependent beam, drifting complex gains, additive noise, and a synthetic sky. We tune non-redundancy and noise so that a static, ideal version of the array reproduces the HERA operating point: mean $\chi^2$/DoF of 1.389 and non-redundancy below 10% for most baseline groups (Redundant-baseline calibration of the hydrogen epoch of reionization array). This anchors "good calibration" to a real instrument rather than to an idealized one. Because the sensor model is simulated, the claims are limited to planning and calibration behavior. We make no claims about scientific imaging.

Baselines

The naive reference is the unmodified swarm planner of Distributed Swarm Trajectory Optimization for Formation Flight in Dense Environments. The calibrator described above runs on whatever near-equal baselines happen to occur during flight. This is the strongest navigation competitor. Its paper reports a 95% navigation success rate in dense clutter. It gives no numeric planner latency on Lacuna beyond "milliseconds", so we will measure its latency ourselves on identical hardware.

The rigid reference is the same planner with a hard lattice constraint. That paper reports 0% success in dense clutter for rigid formations. It bounds the calibration side from above in open space and the navigation side from below in clutter.

The strongest calibration-aware competitor is a scheduling baseline, which we expect to be the hardest to beat. The swarm flies the flexible planner in clutter, switches to the rigid lattice whenever a free-space check passes, and calibrates only during those windows. Between windows it holds the last solved gains.

A further competitor is an observability-Gramian planner in the style of Trajectory Optimization for Self-Calibration and Navigation. It is extended to cross-agent gains by computing the Gramian empirically from simulated measurements. It tests whether our closed-form matrix gives up accuracy for speed.

Ablations isolate the key ingredients. We remove the tilt term ($\tau\to\infty$). We replace soft weights with hard grouping at a fixed threshold. We replace the eigenvalue constraint with a simple count of redundant pairs, which tests whether the spectral formulation matters at all.

All methods use the same obstacle seeds, gain-drift realizations, swarm sizes, calibrator, and hardware, a single laptop CPU. All tunable weights receive the same tuning budget of 50 random-search trials on held-out seeds.

Beating the baselines means three things together. First, navigation success within 5 points of the unmodified flexible planner. Second, time-averaged gain error at least 2× lower than both the flexible planner and the scheduling baseline in the regime where gain drift is comparable to the clutter duty cycle. Third, replanning time no more than twice the unmodified planner's.

Why not just…?

Why not just calibrate against an external reference, such as a beacon or a known bright source? Redundant calibration does not avoid external references entirely. It still needs one to fix the four degeneracies, and our system keeps a cheap anchor for that purpose. The question is whether every sensor gain should depend on an external model. The MWA comparison in Comparing Redundant and Sky-model-based Interferometric Calibration: A First Look with Phase II of the MWA found redundant and sky-model gains agree within about 2%. Redundancy therefore matches external calibration where catalogs are good, and avoids their incompleteness where they are not. The tomography work A Data Self-Calibration Method Based on High-Density Parallel Plate Diffuse Optical Tomography for Breast Cancer Imaging shows the same pattern: 4.43% simulated error relative to calibration with a physical reference object. For a moving array, a single beacon also has to be visible from every vehicle at every moment, a further constraint on the planner. We do not run a separate beacon-only arm, so this answer rests on the cited evidence rather than on our own experiments.

Why not just fly a rigid lattice? The swarm planner's own benchmark answers this: rigid formations fall to 0% success in dense clutter. We still include the rigid lattice as a baseline, because in sparse clutter it may be the right choice, and our results should show where the crossover lies.

Why not just calibrate only when the swarm is in open space? This is the real threat. If gains drift slowly compared with how long the swarm spends in clutter, holding the last solution works fine, and our constraint adds complexity for nothing. Holding fails when drift is fast compared with that time. It also fails when maneuvering itself creates the error, because tilt-dependent beam changes appear exactly during aggressive flight. Ground arrays already show this kind of effect: HERA gains carry spurious structure from non-redundancy that repeats nightly at the same sidereal time, and it spikes when bright sources pass through the antennas' sidelobes. We do not argue past this alternative. Experiment 1 maps exactly where scheduling suffices. If that region covers realistic drift rates, we would report that the constraint is unnecessary.

Why not just extend the observability-Gramian planner to the swarm? It is the most principled option. Its quantity is computed empirically by simulating measurements, and its authors identify computation as the main bottleneck. We run it as a baseline to measure what our closed-form matrix gives up in accuracy, if anything, for its speed.

Proposed Experiments

Experiment 1: regime map. This is the decisive experiment. We vary the gain-drift correlation time and the fraction of the route spent in clutter. At each point we compare time-averaged gain error and success rate for the scheduling baseline, the flexible planner, and the calibratability-constrained planner. The proposal succeeds only if there is a substantial region, at drift rates plausible for cables and electronics, where the constrained planner wins clearly.

Experiment 2: dense-forest benchmark. We use 7- and 16-drone swarms over obstacle densities up to 300 cylinders. We report success rate, collisions, gain amplitude and phase error against ground truth, $\chi^2$/DoF, non-redundancy, and the fraction of flight time with $\lambda \ge \lambda_{\min}$.

Experiment 3: ablations. We remove the tilt term while increasing commanded acceleration, testing whether beam mismatch from maneuvering is real in the simulator. We also compare soft against hard grouping, and the eigenvalue constraint against a raw count of redundant pairs.

Experiment 4: latency. We report replanning wall-clock time, the share of it spent on the eigenvalue and its gradient, and how both scale with swarm size up to the point where $M$ stops being small. For context, onboard replanning on a real robot ran at 18.34 ms per iteration in Online Dynamic Trajectory Optimization and Control for a Quadruped Robot. That system is different, so the figure is a reference point for "real time", not a target.

A negative result in Experiment 1 would itself be informative. It would show that, for mobile arrays, scheduling calibration windows is enough.