The coordinated flight of multiple unmanned aerial vehicles, known as drone formation flight, represents a significant technological frontier with transformative applications across military and civilian domains. The advantages of drone swarms—including enhanced operational resilience, distributed sensing capabilities, and the ability to execute complex cooperative tasks—make them superior to single-platform operations. However, the reliable control of a drone formation in dynamic, cluttered environments remains a formidable challenge. Core issues include maintaining stable inter-agent communication amidst interference, avoiding static and dynamic obstacles, and resolving inherent algorithmic pitfalls such as local minima and path oscillations that can stall or endanger the entire swarm.
Existing methodologies for drone formation control each have their strengths and limitations. The Leader-Follower approach offers simplicity but lacks robustness if the leader fails. Virtual structure methods provide precise geometric control but can be computationally heavy for reconfiguration. Behavior-based methods are flexible yet often result in emergent, non-deterministic group behaviors. The Artificial Potential Field (APF) method, conceived by Khatib, offers an elegant and computationally efficient framework for real-time path planning and obstacle avoidance by treating the environment as a scalar field of forces. Despite its appeal, the classic APF is plagued by well-known shortcomings: the tendency for agents to become trapped in local minima where attractive and repulsive forces balance, and the occurrence of oscillatory paths near obstacles, both of which are unacceptable for safe drone formation navigation.
Recent research has proposed various enhancements. Some works have introduced segmented repulsive fields or virtual obstacles to mitigate local minima and sharp turns. Others have integrated fuzzy logic or predictive mechanisms. However, many solutions address only one problem or are not suited for highly dynamic scenarios where drones themselves act as moving obstacles to each other. A holistic approach that ensures communication stability, prevents intra-formation collisions, and solves both local minima and oscillation problems is therefore critically needed. This work presents an integrated system that combines a robust communication framework with a comprehensively improved artificial potential field algorithm to address these concurrent challenges for a drone formation.

Integrated System Framework: Communication and Navigation
The foundation of any cooperative drone formation is reliable communication. We adopt Wireless Ultraviolet Communication (UVC) for inter-drone links. Operating in the solar-blind ultraviolet spectrum, UVC offers exceptional advantages: low background noise, high resistance to electromagnetic interference, and non-line-of-sight (NLOS) capability due to atmospheric scattering. This makes it ideal for maintaining stable command and control links in complex, electromagnetically contested environments where traditional RF might fail.
The received optical power $P_r$ for a line-of-sight UVC link can be modeled as:
$$P_r = \frac{P_t A_r}{4 \pi r^2} e^{-K_e r}$$
where $P_t$ is the transmitter power, $A_r$ is the effective receiver aperture area, $r$ is the communication distance, and $K_e$ is the atmospheric attenuation coefficient. The link efficiency $P_e$ is:
$$P_e = \frac{P_t}{P_r} = \frac{4 \pi r^2}{A_r} e^{K_e r}$$
By continuously monitoring $P_r$, each drone can estimate its distance $r$ to neighboring drones in the drone formation. This dual-purpose link provides both stable data exchange and a rudimentary ranging mechanism, forming the sensory basis for collision prevention.
Mathematical Foundation: The Traditional Artificial Potential Field
In the APF framework, the drone navigates within an artificial potential field $U(\mathbf{X})$. The drone’s position is $\mathbf{X} = (x, y, z)$, the goal is at $\mathbf{X_g} = (x_g, y_g, z_g)$, and an obstacle is at $\mathbf{X_o} = (x_o, y_o, z_o)$. The total potential is the sum of an attractive field from the goal and repulsive fields from obstacles:
$$U(\mathbf{X}) = U_{att}(\mathbf{X}) + \sum U_{rep}(\mathbf{X})$$
The attractive potential is typically defined as a conical field:
$$U_{att}(\mathbf{X}) = \frac{1}{2} k_a \cdot d^2(\mathbf{X}, \mathbf{X_g})$$
where $k_a > 0$ is the attractive gain, and $d(\mathbf{X}, \mathbf{X_g}) = ||\mathbf{X} – \mathbf{X_g}||$ is the Euclidean distance to the goal. The resulting attractive force is the negative gradient:
$$\mathbf{F_{att}}(\mathbf{X}) = -\nabla U_{att}(\mathbf{X}) = -k_a \cdot d(\mathbf{X}, \mathbf{X_g}) \cdot \frac{\partial d(\mathbf{X}, \mathbf{X_g})}{\partial \mathbf{X}}$$
This force points directly toward the goal.
The repulsive potential from a single obstacle is active only within a threshold distance $d_0$:
$$
U_{rep}(\mathbf{X}) =
\begin{cases}
\frac{1}{2} k_r \left( \frac{1}{d(\mathbf{X}, \mathbf{X_o})} – \frac{1}{d_0} \right)^2, & \text{if } d(\mathbf{X}, \mathbf{X_o}) \le d_0 \\
0, & \text{if } d(\mathbf{X}, \mathbf{X_o}) > d_0
\end{cases}
$$
where $k_r > 0$ is the repulsive gain, and $d(\mathbf{X}, \mathbf{X_o}) = ||\mathbf{X} – \mathbf{X_o}||$. The corresponding repulsive force is:
$$
\mathbf{F_{rep}}(\mathbf{X}) = -\nabla U_{rep}(\mathbf{X}) =
\begin{cases}
k_r \left( \frac{1}{d(\mathbf{X}, \mathbf{X_o})} – \frac{1}{d_0} \right) \frac{1}{d^2(\mathbf{X}, \mathbf{X_o})} \frac{\partial d(\mathbf{X}, \mathbf{X_o})}{\partial \mathbf{X}}, & \text{if } d \le d_0 \\
0, & \text{if } d > d_0
\end{cases}
$$
This force points away from the obstacle.
The net force guiding the drone in a drone formation is then:
$$\mathbf{F_{total}}(\mathbf{X}) = \mathbf{F_{att}}(\mathbf{X}) + \sum_{i=1}^{n} \mathbf{F_{rep,i}}(\mathbf{X})$$
The drone moves in the direction of this resultant force. In a drone formation, neighboring drones are treated as dynamic obstacles, generating repulsive fields to ensure separation.
Proposed Improvements to the Artificial Potential Field
While foundational, the traditional APF leads to critical failures in drone formation navigation. Our proposed improvements systematically address these issues.
1. Resolution of the Local Minimum Problem
A local minimum occurs when $\mathbf{F_{total}}(\mathbf{X}) = 0$ at a point that is not the goal, typically on the line between the goal and an obstacle where forces are equal and opposite. To escape, we introduce a transient, horizontal auxiliary potential field in the plane normal to the drone-goal line at the trapped point $\mathbf{X_{min}}$.
The auxiliary potential field $U_{aux}$ is defined as:
$$
U_{aux}(\mathbf{X}) =
\begin{cases}
\frac{k_{aux}}{||\mathbf{X} – \mathbf{X_{min}}||^k}, & \text{if } ||\mathbf{X} – \mathbf{X_{min}}|| \le d_{aux} \\
0, & \text{if } ||\mathbf{X} – \mathbf{X_{min}}|| > d_{aux}
\end{cases}
$$
where $k_{aux}$ is a gain, $d_{aux}$ is the effective range (e.g., 0.3 m), and $k$ is a positive integer shaping the field. The resulting auxiliary force $\mathbf{F_{aux}} = -\nabla U_{aux}(\mathbf{X})$ pushes the drone laterally. Once the drone moves a distance $d_{aux}$, this force is disabled, allowing the primary APF to resume guidance, now with a broken force symmetry that enables escape from the trap.
2. Mitigation of Path Oscillations
Oscillations occur when a drone closely skirts an obstacle, causing $\mathbf{F_{att}}$ and $\mathbf{F_{rep}}$ to alternately dominate, leading to a jagged, inefficient path detrimental to drone formation cohesion. We smooth the trajectory by computing a weighted average of the current and previous guidance forces.
Let $\mathbf{F_k}$ be the net APF force at time step $k$ leading to position $\mathbf{X_k}$, and $\mathbf{F_{k+1}}$ be the calculated force for the next step. Instead of applying $\mathbf{F_{k+1}}$ directly, we compute a damped resultant force $\mathbf{F_{k+1}^{new}}$:
$$\mathbf{X_{k+1}} = \mathbf{X_k} + D \left( a \frac{\mathbf{F_k}}{||\mathbf{F_k}||} + b \frac{\mathbf{F_{k+1}}}{||\mathbf{F_{k+1}}||} \right)$$
Here, $D$ is the step length, and $a$ and $b$ are weight factors ($a+b=1$) determined by the angular change $\Delta \delta$ between $\mathbf{F_k}$ and $\mathbf{F_{k+1}}$. If $\Delta \delta$ exceeds a threshold, $b$ is reduced and $a$ increased, thereby incorporating historical direction to smooth abrupt turns and suppress oscillations.
3. Intra-Formation Collision Prevention via UVC Ranging
Within the drone formation, each drone continuously estimates its distance to neighbors using the UVC signal strength model. This real-time ranging data directly informs the repulsive potential field calculation. The threat distance $d_0$ for a neighboring drone is set dynamically based on formation geometry and relative speed. This creates a “safety bubble” around each agent. The improved force calculation for a drone formation member $i$ considering $N$ obstacles and $M$ neighbors is:
$$\mathbf{F_{total}}^i(\mathbf{X}) = \mathbf{F_{att}}^i(\mathbf{X}) + \sum_{j=1}^{N} \mathbf{F_{rep, obstacle}}^j(\mathbf{X}) + \sum_{\substack{m=1 \\ m \neq i}}^{M} \mathbf{F_{rep, neighbor}}^m(\mathbf{X})$$
The key enhancement lies in the accurate and timely update of $d(\mathbf{X}, \mathbf{X_{neighbor}})$ for the neighbor repulsion term, enabled by the stable UVC link, preventing collisions even during high-speed maneuvers.
System Control Architecture
The integrated control flow for each drone in the drone formation is as follows:
- Initialization: Set formation shape, goal, and APF parameters ($k_a$, $k_r$, $d_0$, etc.).
- Continuous UVC Ranging: Estimate distances to all visible neighbors using the received UVC power $P_r$.
- APF Force Calculation: Compute $\mathbf{F_{att}}$ to the goal and $\mathbf{F_{rep}}$ from all obstacles (static and dynamic neighbors).
- Anomaly Detection & Resolution:
- Check if net force magnitude is near zero while far from the goal → Activate Auxiliary Force mechanism.
- Check for large directional changes between consecutive force vectors → Apply Oscillation Damping (weighted force averaging).
- Command Execution: Translate the final resultant force into velocity and heading commands for the drone’s flight controller.
- Loop: Repeat from Step 2 until the goal is reached.
Simulation Experiments and Comparative Analysis
We validated our Improved Artificial Potential Field (IAPF) method against the traditional APF in MATLAB simulations. Key simulation parameters are summarized below:
| Parameter | Symbol | Value |
|---|---|---|
| Attractive Potential Gain | $k_a$ | 13 |
| Repulsive Potential Gain | $k_r$ | 25 |
| Obstacle Influence Distance | $d_0$ | 3.0 m |
| Auxiliary Force Range | $d_{aux}$ | 0.3 m |
| Auxiliary Field Exponent | $k$ | 3 |
Experiment 1: Local Minimum Escape
Scenario: A single drone starts at (0,0,0) with a goal at (10,10,10). A spherical obstacle is placed directly on the line at (5,5,5), creating a classic local minimum trap.
Results: The traditional APF drone became trapped at (4.61, 4.61, 4.61), 0.76 m from the obstacle and 9.42 m from the goal. The IAPF drone also entered this equilibrium point but immediately activated the auxiliary force. A lateral push of 0.3 m broke the force symmetry, allowing the drone to escape the local minimum, circumnavigate the obstacle, and successfully reach the target.
Experiment 2: Path Oscillation Suppression
Scenario: A drone starts at (0,0,0) with a goal at (20,20,20). An obstacle is placed at (18.5,18.5,19) to induce severe oscillations during close passage.
Results: The APF drone exhibited significant path oscillation near the obstacle, resulting in an inefficient, jagged trajectory and ultimately failing to reach the goal, stopping 1.19 m away. The IAPF drone, using the damped force calculation, produced a smooth, near-optimal arc around the obstacle (minimum distance 0.73 m) and proceeded accurately to the destination.
| Performance Metric | Traditional APF | Improved APF (IAPF) |
|---|---|---|
| Goal Reached (Local Min. Scenario) | No | Yes |
| Local Minimum Resolved | No | Yes |
| Path Oscillations (Osc. Scenario) | Severe | Effectively Suppressed |
| Min. Distance to Obstacle | 0.76 m / 0.73 m | 0.54 m / 0.73 m |
| Collision with Obstacle | No | No |
| Intra-Formation Collision Prevention | Limited (without UVC) | Enabled (with UVC ranging) |
Conclusion
This work presents a robust and integrated solution for the safe navigation of a drone formation in complex environments. By synergizing Wireless Ultraviolet Communication with an enhanced Artificial Potential Field algorithm, we address the triad of critical challenges: communication stability, intra-swarm collision avoidance, and algorithmic flaws. The UVC subsystem provides a reliable, low-interference communication and ranging backbone. The improved APF algorithm introduces mechanisms to decisively escape local minima and dampen path oscillations, which are essential for smooth and predictable drone formation movement. Simulation results confirm that our IAPF method enables drones to reach their targets reliably while avoiding obstacles and maintaining safe separation, outperforming the traditional APF in scenarios that typically cause failure. This framework provides a solid foundation for deploying autonomous, cohesive, and resilient drone swarms in real-world applications, from precision agriculture and infrastructure inspection to complex search and rescue missions.
