Skip to main content
. 2024 Dec 28;14:31501. doi: 10.1038/s41598-024-83243-4

Table 1.

Pseudocodes for motion control of relay UAVs.

Algorithm for motion control of multiple relay UAVs
1. Predicting the future position of UGVs Inline graphic based on KF.
2. Obtaining current states of relay UAVs Inline graphic and environmental channel state information Inline graphic.
3. Each individual UAV calculates its own MST solution Inline graphic.
4. Communicating the MST solutions within the group, so that the MST having the lowest cost is selected, namely Inline graphic.
5. Initializing the parameters, i.e.,the current iteration Inline graphic.
6. Initializing each particle’s positionInline graphic.
7. Choose the current optimal input Inline graphic and calculate the corresponding objective function Inline graphic.
8. While Inline graphic
9. Update each particle’s position by Eq. (48).
10. Calculate the corresponding objective function Inline graphic.
11. IfInline graphic,then
12. Inline graphic,andInline graphic
13. End if
14. Inline graphic
15. End while
16. Return and execute the first item of Inline graphic.