1: \begin{abstract}
2: Reliance on external localization infrastructure and centralized coordination are main limiting factors for formation flying of vehicles in large numbers and in unprepared environments.
3: While solutions using onboard localization address the dependency on external infrastructure, the associated coordination strategies typically lack collision avoidance and scalability.
4: To address these shortcomings, we present a unified pipeline with onboard localization and a distributed, collision-free formation control strategy that scales to a large number of vehicles.
5: Since distributed collision avoidance strategies are known to result in gridlock, we also present a \edit{distributed} task assignment solution to deconflict vehicles.
6: We experimentally validate our pipeline in simulation and hardware.
7: The results show that our approach for solving the optimization problem associated with formation control gives solutions within seconds in cases where general purpose solvers fail due to high complexity.
8: In addition, our lightweight assignment strategy leads to successful and quicker formation convergence in
9: \SIrange[range-units=single,range-phrase=--]{96}{100}{\percent} of all trials,
10: whereas indefinite gridlocks occur without it for \SIrange[range-units=single,range-phrase=--]{33}{50}{\percent} of trials.
11: By enabling large-scale, deconflicted coordination, this pipeline should help pave the way for anytime, anywhere deployment of aerial swarms.
12: \end{abstract}
13: