# Formation Control for UAVs Considering Safety Constraints Based on Control Barrier Functions with Switched Trajectories and Switching Communication Topologies

**Authors:** Zerui Wei, Xiaoyu Zhang, Yang Song, Rong Guo

PMC · DOI: 10.3390/s26051477 · Sensors (Basel, Switzerland) · 2026-02-26

## TL;DR

This paper presents a control method for UAVs to maintain formation and avoid collisions while switching between different flight paths and communication networks.

## Contribution

A novel formation control protocol using control barrier functions and multiple Lyapunov functions for UAVs with switched trajectories and communication topologies.

## Key findings

- The proposed protocol ensures accurate formation tracking under dual-switching scenarios.
- Collision avoidance is achieved using control barrier functions during trajectory and topology transitions.
- Simulations show effective coordination of formation, switching, and safety in dynamic environments.

## Abstract

This paper investigates the formation control problem of multi-UAV systems in the presence of switched trajectories and time-varying communication topologies. A distributed formation control protocol is proposed to enable UAVs to track piecewise continuous trajectories while the underlying communication network switches among a finite set of directed graphs. Sufficient and necessary conditions for achieving accurate formation tracking under dual-switching scenarios are derived through stability analysis while the stability of the overall switched system is proven by using multiple Lyapunov functions. To ensure collision avoidance during both trajectory and topology transitions, control barrier functions (CBFs) are employed to construct safety sets, and a quadratic programming(QP)-based optimization framework is designed to modify control inputs in real time. Simulation results demonstrate that the proposed approach effectively coordinates formation tracking, topology switching, and inter-agent safety, offering a solution for UAV collaboration in dynamic and uncertain environments.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12986605/full.md

## Figures

7 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12986605/full.md

## References

41 references — full list in the complete paper: https://tomesphere.com/paper/PMC12986605/full.md

---
Source: https://tomesphere.com/paper/PMC12986605