Unmanned aerial vehicle formation flight control computing device and method
By generating a single flight control command through a modular architecture and control fusion module, the problem of multiple control algorithm conflicts in fixed-wing UAV formation flight is solved, and stable and scalable autonomous flight of UAV formations is realized.
Patent Information
- Application Number
- CN202611407770.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-11
- Publication Date
- 2026-11-24
AI Technical Summary
In the existing technology for the formation flight control of fixed-wing UAVs, when multiple control algorithms send commands simultaneously, problems such as the trajectory convergence being canceled out by obstacle avoidance, formation speed adjustment and obstacle avoidance competing for the same longitudinal channel, and formation offset being disrupted during turns can easily occur.
The modular architecture first forms a unified interpretation of the route reference, formation keeping and obstacle avoidance correction at the mission control layer. A single flight control command is generated through the control fusion module, and coordinated control is achieved by using the route guidance algorithm, Dubins curve trajectory generation, ORCA reciprocal speed obstacle avoidance algorithm and NED altitude hierarchical obstacle avoidance algorithm.
It achieves module decoupling and parallel development, reduces system development complexity, ensures smooth integration of control commands, improves flight stability and scalability, and supports autonomous flight of multiple UAV formations.
Smart Images

Figure CN123156906A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of unmanned aerial vehicle (UAV) flight control technology, and particularly to the fields of UAV autonomous control, formation cooperative control, neighboring aircraft obstacle avoidance, and flight control offboard command fusion technology. Specifically, it discloses a UAV formation flight control computing device and method. Background Technology
[0002] Fixed-wing UAVs rely on continuous forward flight to generate lift and cannot hover at ordinary waypoints. Therefore, fixed-wing mission control must not only provide the target position but also consider constraints such as airspeed, heading continuity, minimum radius of curvature, Dobbins turn trajectory, and terminal maneuver. For multi-aircraft flight path missions, it is also necessary to maintain lateral offset, altitude offset, and spacing between formations while keeping the flight path convergent.
[0003] Existing mission control schemes often implement path tracking, formation keeping, obstacle avoidance, and flight control output separately. If multiple algorithms send target point or speed commands to the flight control system simultaneously, the fixed-wing L1 lateral control and TECS longitudinal energy control will receive conflicting outer-loop targets, which may lead to problems such as path convergence being canceled by obstacle avoidance, formation speed adjustment and obstacle avoidance competing for the same longitudinal channel, and formation offset disrupting circling targets during turns. Summary of the Invention
[0004] In view of the above problems, the present invention is proposed to provide a computing device and method for UAV formation flight control that overcomes or at least partially solves the above problems. The technical solution, which takes algorithm responsibility division and control quantity fusion as its core, enables the flight path reference, formation correction and obstacle avoidance correction to form a unified interpretation at the mission control layer, and then generates flight control commands from a single output, thereby adapting to the continuous flight characteristics of fixed-wing UAVs.
[0005] According to one aspect of the present invention, a flight control computing device for unmanned aerial vehicles (UAVs) formation is provided. The flight control computing device is disposed within each UAV in the formation and includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it performs the functions of the following modules: The flight path reference module is used to determine the reference flight path control variables of the UAV based on the formation flight mission; The formation-keeping module is used to determine the speed adjustment amount based on the position and speed of neighboring aircraft; The obstacle avoidance module is used to determine the obstacle avoidance position increment based on the relative motion state of adjacent machines; The control fusion module is used to obtain the aforementioned baseline flight path control quantities, speed adjustment quantities, and obstacle avoidance position increments. Based on different flight control stages and control priority strategies, it determines the control quantities to be executed by the UAV, and then generates flight control commands and sends them to the flight controller.
[0006] In some embodiments, when the processor executes the computer program, it also implements a control blackboard module, which is used to uniformly obtain the aforementioned control quantities from the route reference module, formation keeping module, and obstacle avoidance module, and transmit them to the control fusion module.
[0007] In some implementations, the route reference module is also configured to perform at least one of the following: Based on the lateral offset of the aircraft in the formation configuration, the original waypoints in the predetermined route are offset, and the formation offset waypoints are generated using the skew geometry algorithm. The flight path guidance algorithm is used to generate the flight path following target point based on the current formation offset segment, the machine's position, and preset guidance parameters; Based on the lateral trajectory error of the machine relative to the flight path, the flight path following target point is corrected with adaptive gain to generate a guidance target point; Based on the current formation offset segment and the next formation offset segment, the initial pose and target pose are constructed. Under the minimum turning radius constraint, a set of Dubins candidate paths is generated. The feasible path with the shortest total length is selected as the turning track. The target point, desired heading, path segment type and local curvature sign of the Dubins trajectory are sampled and output according to the path arc length. At the same time, the turning airspeed is fed forward to compensate based on the lateral offset of the machine and the local curvature sign.
[0008] In some implementations, the formation-keeping module is also used to perform: During flight, the position and speed of neighboring aircraft in the formation are acquired, the longitudinal spacing error and longitudinal relative speed between the aircraft and the neighboring aircraft in the flight path direction are calculated, and the longitudinal speed adjustment is generated through a proportional-derivative controller.
[0009] In some implementations, the obstacle avoidance module is also used to perform: Based on the reciprocal speed obstacle method, the collision-free horizontal velocity that satisfies the collision avoidance constraint of the adjacent aircraft is solved in the horizontal plane. The difference between the horizontal velocity and the desired velocity is decomposed into a longitudinal component along the flight path and a lateral component perpendicular to the flight path. The longitudinal component is discarded, and only the lateral component is retained to generate the horizontal obstacle avoidance position increment. At the same time, the height layer offset is calculated based on the three-dimensional spatial distance between the aircraft and the adjacent aircraft, which together with the horizontal obstacle avoidance position increment constitutes the obstacle avoidance position increment.
[0010] In some implementations, the flight path guidance algorithm includes a forward-looking distance-based LOS guidance algorithm or a forward-looking point tracking algorithm; The calculation of the lateral trajectory error includes: projecting the machine's position onto a straight line segment formed by the offset waypoints of adjacent formations to obtain a projection point; the vector difference between the machine's position and the projection point is the lateral trajectory error vector; the adaptive gain k cteThe normalized convergence coefficients are determined by smoothing the magnitude |ecte| of the lateral trajectory error vector and using the tanh hyperbolic tangent activation function. Feedforward compensation of turning airspeed based on the lateral offset of the aircraft and the local curvature sign includes: Local curvature symbol airspeed compensation Turning airspeed Where s is the current arc length position of the local machine on the selected Durbins path. It is a left-turning arc segment. It is a right-turning arc segment. For a straight line segment, b y B represents the lateral offset of the machine within the formation system. ref Δv serves as the lateral reference scale for the formation. max This is the maximum airspeed feedforward correction; v base As the reference airspeed, v min and v max These are the minimum and maximum allowable airspeeds for the fixed wing, respectively, and clip(·) is the clipping function. This compensation allows the fixed wing located on the outside of the turn to accelerate appropriately, while the fixed wing located on the inside of the turn to decelerate appropriately.
[0011] In some implementations, the longitudinal speed adjustment is generated in the following manner: Let the longitudinal offsets of this machine and the adjacent machine be respectively , Then the expected vertical spacing ; Projecting the horizontal position difference between the aircraft and its neighboring aircraft onto the flight path direction yields the actual longitudinal spacing. , For the location of the adjacent aircraft, This is the location of the local machine. This is the unit vector for the horizontal flight path direction; Longitudinal spacing error ; Longitudinal relative velocity , is the projection of the speed difference between the two aircraft onto the flight path. For the speed of the adjacent machine, This refers to the machine's speed; When the neighboring machine's state is valid, the speed increment contributed by a single neighboring machine is: ,in and These are proportional gain and derivative gain, respectively. The longitudinal speed adjustment amount is obtained by averaging all effective adjacent machines and limiting the amplitude.
[0012] In some implementations, the height layer offset The calculation is based on three-dimensional Euclidean distance: If the three-dimensional distance between this machine and its neighboring machine Less than the trigger distance , This is the location of the local machine. For adjacent locations, then the layered amplitude... , This refers to the gain coefficient of the high-level layering. In the northeast coordinate system, the side with the smaller z-value of the altitude coordinate is shifted upward, and the side with the larger z-value of the altitude coordinate is shifted downward. When the altitudes are equal, the default identifier is used to determine the shift. The height offset is obtained by superimposing the contributions from all neighboring machines and limiting the amplitude. ; The obstacle avoidance position increment is the horizontal obstacle avoidance position increment plus the height offset. sum.
[0013] In some implementations, the control fusion module is also used to perform obstacle avoidance passage handover in formation change mode: When the formation is in formation change mode and there are no external conflicts, obstacle avoidance channels are selectively restored or suppressed based on the type of the change axis: If the transformation axis is a horizontal transposition, the horizontal component in the horizontal obstacle avoidance increment is discarded, only the vertical component is retained, and the height layer offset is kept valid. If the transformation axis is vertically rearranged, the vertical component in the horizontal obstacle avoidance increment is discarded, only the horizontal component is retained, and the height layer offset is kept valid. If the transformation axes are highly overlapping, the complete two-dimensional horizontal obstacle avoidance increment is retained, and the height layer offset is turned off; In the absence of transformation or in the presence of external group conflicts, only the lateral component in the horizontal obstacle avoidance increment is retained, and the height layer offset remains valid. The transformation axis refers to the direction along which the relative positions of the UAVs are adjusted during the formation transformation process.
[0014] According to another aspect of the present invention, a method for calculating unmanned aerial vehicle (UAV) formation flight control is provided, executed by each UAV within the formation, the method comprising: Based on the formation flight mission, determine the baseline flight path control parameters for the UAV; The speed adjustment amount is determined based on the position and speed of the adjacent machine; Determine the obstacle avoidance position increment based on the relative motion state of adjacent aircraft; The reference flight path control quantity, speed adjustment quantity, and obstacle avoidance position increment are obtained. Based on different flight control stages and control priority strategies, the control quantity to be executed by the UAV is determined, and then flight control commands are generated and sent to the flight controller.
[0015] As described above, according to embodiments of the present invention, the following algorithms are executed within the behavior tree scheduling cycle: a route guidance algorithm, a lateral error adaptive convergence algorithm based on the tanh hyperbolic tangent activation function, and a Dobbins curve trajectory generation and tracking algorithm, used to generate route reference targets, headings, airspeed, Dobbins path segment types, switching arc lengths, trajectory sampling target points, and local curvature symbols; a formation offset waypoint geometric transformation algorithm and a longitudinal spacing P+D velocity coordination algorithm, used to generate local formation offsets and longitudinal velocity adjustments; an ORCA reciprocal speed obstacle avoidance algorithm, a TTC collision risk triggering algorithm, and a NED altitude-layered obstacle avoidance algorithm, used to generate obstacle avoidance position increments and horizontal and longitudinal channel priority flags; and an aircraft-type discriminative Offboard control fusion algorithm, used to generate unique flight control commands based on the fixed-wing, compound-wing, or rotor state. The above algorithms exchange information through shared intermediate control quantities and priority flags. Among them, the horizontal obstacle avoidance activation flag is used to suspend ordinary lateral error convergence when obstacle avoidance is effective, to prevent the convergence term of the route from offsetting the obstacle avoidance correction; the longitudinal obstacle avoidance priority flag is used to suspend the longitudinal speed coordination of the formation when obstacle avoidance requires adjustment along the route direction, to prevent the formation speed adjustment and obstacle avoidance from competing for the same channel; the fixed-wing Dubins path tracking status is used to make the formation position offset and speed adjustment give way to the continuous curvature turning track.
[0016] Through the above-described unified formation flight process and modular architecture design, this invention achieves at least one of the following beneficial effects: Modular decoupling and parallel development benefits: The complex formation flight control task is broken down into four functionally independent modules with clearly defined interfaces: flight path following, formation maintenance, reciprocal obstacle avoidance, and control fusion. Each module can be designed, verified, and optimized independently, significantly reducing system development complexity and facilitating parallel development and later maintenance and upgrades by the team. For example, improvements to the obstacle avoidance algorithm do not affect the logic of flight path following and formation maintenance, achieving the engineering advantages of "high cohesion and low coupling".
[0017] Smooth fusion and conflict resolution of control commands: The outputs of each submodule are collected and synthesized uniformly through the control fusion module. During fusion, dynamic channel management and priority arbitration are implemented based on the flight phase (straight line / turn) and special states (obstacle avoidance activation, formation change). For example, CTE correction and formation longitudinal speed adjustment are automatically turned off during obstacle avoidance, avoiding superimposed conflicts between multiple controllers on the same channel. This centralized fusion and distributed computing architecture ensures that control commands remain smooth and continuous under any operating conditions, eliminating command jumps and control oscillations common in traditional methods.
[0018] Flight Phase Coordination and Mode Switching Stability: Two core flight phases, "straight line and turn," are defined, and a unified silence and recovery strategy is implemented during phase transitions. During turns, formation keeping and obstacle avoidance modules are paused synchronously to avoid erroneous speed adjustments or accidental obstacle avoidance triggers caused by drastic changes in the relative positions of neighboring aircraft. At the moment of transition, gradual mechanisms such as airspeed limiting and position increment limiting ensure a smooth transition between modes and flight states without impact.
[0019] Distributed decision-making and scalability: Each UAV relies solely on local perception (its own sensors) and communication with neighboring UAVs (position, speed) for distributed decision-making, eliminating the need for centralized optimization at a ground station. Computational complexity is linearly related to formation size and does not significantly increase with formation complexity. Therefore, the system can naturally scale to formations of dozens or even hundreds of aircraft, demonstrating strong potential for large-scale applications.
[0020] Automated closed-loop management throughout the entire mission lifecycle: From mission parameter loading, flight path, formation keeping, real-time obstacle avoidance to final hovering and standby, the system provides a closed-loop process of "one-click start and full autonomy." Flight progress is continuously estimated and reported, and the ground station can monitor mission progress in real time. The entire formation flight mission from takeoff to standby can be completed without manual intervention, significantly reducing the burden on operators and improving mission execution efficiency and reliability.
[0021] Aircraft compatibility and mission generalization: Although this invention is specifically designed for the dynamic characteristics of fixed-wing aircraft (such as weak longitudinal speed regulation, lower airspeed limit, and lateral obstacle avoidance priority), thanks to its modular architecture, the system can also be adapted to VTOL (Variable Thruster-Operated) and rotary-wing aircraft by replacing or configuring corresponding control parameters. Furthermore, by switching the operating mode of the formation-keeping module (longitudinal speed regulation along the flight path / uniform circular distribution), the same architecture can simultaneously support two typical missions: flight path following and circling formation assembly, demonstrating excellent mission generalization capabilities.
[0022] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and in order to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description
[0023] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings: Figure 1 A diagram illustrating the overall control architecture of a drone formation according to an embodiment of the present invention is shown. Figure 2 A control blackboard and module interface diagram according to an embodiment of the present invention is shown; Figure 3 A schematic diagram of a fixed-wing LOS forward-looking guidance system according to an embodiment of the present invention is shown; Figure 4 A schematic diagram of adaptive convergence of tanh lateral error according to an embodiment of the present invention is shown; Figure 5 A schematic diagram illustrating Dubins path generation and execution according to an embodiment of the present invention is shown; Figure 6 A schematic diagram of formation bias and longitudinal PD coordination according to an embodiment of the present invention is shown; Figure 7 A schematic diagram of TTC risk triggering and joint security interval according to an embodiment of the present invention is shown; Figure 8 A schematic diagram of ORCA horizontal obstacle avoidance and multiple neighbor constraints according to an embodiment of the present invention is shown; Figure 9 A schematic diagram of NED height-layered obstacle avoidance according to an embodiment of the present invention is shown; Figure 10 A flowchart of the formation change obstacle avoidance channel selection according to an embodiment of the present invention is shown; Figure 11 An Offboard control fusion flowchart according to an embodiment of the present invention is shown; Figure 12 A diagram illustrating the fixed-wing flight control execution and feedback architecture according to an embodiment of the present invention is shown. Detailed Implementation
[0024] Exemplary embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this invention will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
[0025] Example 1: System Overall Structure See the instruction manual appendix Figure 1-12As shown, this embodiment applies to fixed-wing UAVs and compound-wing UAVs in fixed-wing flight mode. Each UAV is equipped with a UAV formation flight control computing device, a flight controller, a positioning module, a communication module, and an onboard power system. The UAV formation flight control computing device periodically receives its own position, speed, heading, airspeed, aircraft type status, original waypoint sequence, formation configuration parameters, and neighboring aircraft status information, and generates Offboard control commands executable by the flight controller in each control cycle.
[0026] In this embodiment, the UAV formation flight control computing device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the functions of the following modules: a route reference module, a formation maintenance module, an obstacle avoidance module, and a control fusion module. The route reference module is used to generate a reference target point, a reference airspeed, a Dubins path state, a trajectory sampling target point, a path segment type, a switching arc length, and a local curvature symbol based on waypoints and formation lateral offset. The formation maintenance module is used to calculate the longitudinal speed adjustment based on the position and speed of neighboring aircraft. The obstacle avoidance module is used to calculate the horizontal obstacle avoidance position increment and the altitude layer offset based on the relative motion state of neighboring aircraft. The control fusion module is used to fuse the reference route control quantity, the formation speed adjustment quantity, and the obstacle avoidance position increment into a unique flight control command.
[0027] Instead of sending control targets directly to the flight controller individually, the aforementioned modules write intermediate control values into a unified control blackboard or shared buffer. The control fusion module reads the intermediate control values from the control blackboard and issues control commands uniformly, thereby avoiding multiple control modules competing for the flight controller interface simultaneously.
[0028] The interface relationships between each module and the control board are shown in Table 1 below: Table 1 Through the above interface relationships, the route reference module is only responsible for generating trackable route targets, the formation keeping module is only responsible for generating longitudinal speed corrections, the obstacle avoidance module is only responsible for generating obstacle avoidance position increments and channel occupancy flags, and the control fusion module is responsible for ultimately interpreting the superposition relationship of each intermediate quantity and the selection of flight control mode.
[0029] According to the above solution, the present invention solves and overcomes the following technical problems and achieves corresponding technical effects: First, how to generate a continuously trackable flight path target point based on the current flight segment of the fixed-wing aircraft and preset guidance parameters; Second, how to adaptively adjust the flight path convergence intensity according to the magnitude of the lateral error; Third, how to convert the aircraft formation offset into a local coordinate offset that changes with the flight path direction; Fourth, how to generate a flight segment transition trajectory that satisfies the minimum turning radius and heading continuity of the fixed-wing aircraft through the Dubins curve; Fifth, how to maintain the formation spacing by small airspeed adjustments and suppress oscillations caused by the airspeed response lag of the fixed-wing aircraft; Sixth, how to achieve obstacle avoidance of neighboring aircraft based on ORCA reciprocal speed barrier, TTC collision risk triggering, and NED altitude layering; Seventh, how to integrate the above multi-source control quantities into a single Offboard command executable by the fixed-wing flight control.
[0030] Example 2: Coordinate System and Variable Conventions This embodiment uses the local NED coordinate system, where the x-axis points north, the y-axis points east, and the z-axis points to the ground; therefore, a smaller z-value indicates a higher altitude. Let the current location of the machine be: Let the speed of this machine be: The original route consisted of a waypoint sequence: Composition, in which The formation configuration consists of a set of UAV numbers and a corresponding set of offsets. The offset of a UAV in the formation reference frame is denoted as: in Indicates the longitudinal offset along the flight path. Indicates lateral offset. This indicates altitude deviation. In this embodiment, the lateral and altitude deviations of the fixed-wing aircraft are mainly reflected through offset waypoints, while the longitudinal deviation is mainly reflected through airspeed fine-tuning.
[0031] This machine's heading angle Defined as the angle of clockwise rotation around the geocentric axis from the due north direction in the local NED coordinate system to the nose direction, with a value range of [value missing]. The expected heading angle of the route is denoted as... The corresponding horizontal flight path unit vector is: Its right normal unit vector is: When referring to longitudinal components in subsequent discussions, it always refers to the length along... Projection along a direction; when the lateral component is involved, it refers to the projection along the direction. Projection of direction.
[0032] Example 3: Formation Offset Waypoint Generation For the original waypoint The flight path reference layer is based on the lateral offset of the aircraft. Generate local formation offset waypoints .when When there are both inbound and outbound segments, first calculate the unit direction vectors for inbound and outbound segments: Construct the left normal vector of the incoming segment and the left normal vector of the outgoing segment in the horizontal plane respectively: Then, the offset waypoints are calculated using skew geometry: When the denominator When the value is less than the preset threshold, it indicates that the adjacent flight segments are close to reversal or geometric degradation. In this case, a single-sided normal vector is used for biasing to avoid excessive bias.
[0033] For the first waypoint, if there is no entry segment, the direction from the mission start position to the first waypoint is used as the entry segment direction. For the last waypoint, if the mission is not cyclical, the direction of the last segment is used as the offset reference direction; if the mission is cyclical, the exit segment direction of the last waypoint is aligned with the direction of the cycle's starting waypoint. Thus, each UAV flies along its own offset route, avoiding lateral convergence caused by multiple UAVs simultaneously tracking the same original waypoint.
[0034] Example 4: Straight-line guidance During the straight-line flight phase, the route reference layer first determines the starting point of the current segment. and the end point And calculate the horizontal unit direction of the current flight segment: in Only the horizontal component is used in the calculation of heading and lateral errors. To adapt to the continuous forward flight characteristics of fixed-wing aircraft, this embodiment extends the target point forward by a preset distance along the flight segment direction. The forward-looking target point is obtained: P look =Wi'+Lft The projection parameters from the machine's position to the straight line of the current flight segment are: The projection point is: The lateral trajectory error vector is: Its length is recorded as: To reduce control oscillation when the deviation is small and improve hysteresis when the deviation is large, this embodiment adopts an adaptive gain based on the tanh hyperbolic tangent function: Where, k min For the minimum convergence gain, k max The maximum convergent gain is given by β, the slope factor of the tanh function is given by e0, and the center of gain change is given by ρ(e). cte ) represents the normalized convergence coefficient. The final guidance target point is: When the obstacle avoidance layer outputs a horizontal obstacle avoidance activation flag, the route reference layer suspends lateral trajectory error correction and directly adopts the route following target point or the weakened lateral correction target point to prevent the route pullback term from offsetting the obstacle avoidance position increment.
[0035] Example 5: Fixed-wing Dopins Curve Track Generation and Turn Tracking Control When a fixed-wing UAV approaches the intersection area of adjacent flight segments, this embodiment transforms the current formation offset flight segment and the next formation offset flight segment into a two-dimensional pose with position and heading, and generates a Dubins curve under the constraint of the minimum turning radius of the fixed wing, so that the flight segment transition is completed by a continuous curvature path.
[0036] Where, q s P is the starting pose of the path. s ψ is the starting position. s q is the starting heading; g For the target pose along the path, P g For the target position, ψ g For the target heading. In one implementation, P... s The projected point or preset entry point of the aircraft on the current formation offset segment can be taken, ψ s Take the current flight segment direction; P g The exit point or forward sight point on the offset segment of the formation can be taken, ψ g Take the direction for the next leg of the journey.
[0037] Among them, R min v is the minimum turning radius of a fixed-wing aircraft. nom Where g is the nominal cruising airspeed, g is the acceleration due to gravity, and φ is the acceleration due to gravity. max To allow the maximum roll angle. This radius is used to constrain all candidate circular arc segments, ensuring that the generated trajectory meets the kinematic characteristics that prevent fixed wings from making sharp turns.
[0038] Where, n L (ψ) is the unit normal vector to the left of the heading ψ, n R (ψ) is the unit normal vector to the right of the heading ψ; C s L and C s R These are the left and right turn centers corresponding to the initial pose, C. g L and C g R These are the left and right turn centers corresponding to the target pose, respectively.
[0039] Where S is the set of candidate path types for Dubins, L represents a left-turn arc segment, R represents a right-turn arc segment, and S represents a straight line segment; LSL represents a combination of left-turn arc, straight line, and left-turn arc, and other types are interpreted according to the same rules.
[0040] Where σ is the candidate path type, S feas To provide a feasible candidate set that satisfies geometric tangent relationships, segment boundaries, and minimum radius constraints; ℓ σ,1 、ℓ σ,2 、ℓ σ,3 These are the normalized lengths of the three components of the candidate path, L. σ σ is the actual length of the candidate path. This is the feasible Durbins path with the shortest total length.
[0041] Where s1 is the switching arc length between the first and second segments, s2 is the switching arc length between the second and third segments, and L This represents the total arc length of the selected Dubins path. The route reference layer determines whether to follow the first circular arc segment, the straight line segment, or the second circular arc segment based on s1 and s2.
[0042] Among them, D σ (s) represents the selected Durbins path parameterized by arc length, P is the current location of the local machine, and s self L is the nearest projected arc length of the local machine on the Durbins path. look s represents the forward-looking sampling distance along the Durbins path. cmd P is the sampling arc length of the instruction. dub For the target point of the output Dubins trajectory, ψ dub The desired heading at this target point, Ḋ x and Ḋ y These are the components of the path tangent vector in the x and y directions, respectively.
[0043] Wherein, λ(s) self ) represents the local curvature symbol of the current Durbins path segment in which the local machine is located, b y B is the lateral offset of the local formation. ref Δv serves as the lateral reference scale for the formation. max v is the maximum airspeed feedforward correction. base As the reference airspeed, v min and v max These are the lower and upper limits of airspeed, respectively.
[0044] As a software implementation, the original control code that calculates the center and radius based on the turning category branch can be uniformly replaced with computeDubins(q s , q g , R min ); each control cycle executes projectArcLength(D σ , P) to obtain s self Then execute sampleDubins(D) σ , s cmd ) Get P dub ψ dub and λ(s) cmd Finally, the control fusion layer issues a single Offboard instruction.
[0045] When S self ≥L -ε or local to target pose P gWhen the horizontal distance is less than the preset exit threshold, the route reference layer exits the current Dubins turn tracking state and advances the waypoint index; where ε is the arc length exit margin. If the candidate set S feas If empty, the route reference layer degenerates into a straight-line route, target point tracking, and airspeed is reduced to avoid outputting an infeasible circular arc.
[0046] Example 6: Maintaining Longitudinal Speed of Formation During the non-turning phase, the formation holding layer calculates the longitudinal speed adjustment based on the status of adjacent aircraft. For the first aircraft within the formation... Let the positions of this machine and the adjacent machine be respectively... and The speeds are respectively and The actual longitudinal spacing is: Based on the formation configuration, the expected longitudinal spacing between this aircraft and its neighboring aircraft is: The longitudinal spacing error is: The longitudinal relative velocity is: when At that time, the speed adjustment contributed by a single neighboring machine is: in, For proportional gain, For damping gain, This is the error dead zone. The longitudinal speed adjustment for the formation is obtained by averaging across all effective neighboring aircraft and limiting the amplitude: in This represents the number of valid neighboring machines. If there are no valid neighboring machines, When the fixed-wing aircraft is turning or circling, the formation maintaining layer will... Smoothly decay to zero, prioritizing turning and maneuvering control; when the obstacle avoidance layer outputs a longitudinal channel occupancy indicator, the formation holding layer will also... Zeroing or smoothing the decay prevents formation speed regulation and obstacle avoidance speed regulation from competing for the same channel.
[0047] Example 7: Reciprocal Obstacle Avoidance and High-Level Hierarchy The obstacle avoidance layer first determines the trigger based on the relative position and relative speed of neighboring machines. Let the relative position of this machine and its neighboring machine be: The relative speed is: Closing speed is: when The predicted time to reach the protection radius is greater than the preset closing velocity threshold (e.g., 0.1 m / s). If the distance between the two vehicles is less than the preset time window, the neighboring vehicle is considered an effective obstacle avoidance neighbor. Furthermore, if the relative distance between the two vehicles is already less than the joint protection radius... If a vehicle has entered the minimum safe interval determination boundary, it is directly determined as an effective neighboring vehicle for obstacle avoidance and obstacle avoidance is triggered immediately, regardless of whether the closing speed is greater than the closing speed threshold. This triggering method can filter out non-approaching neighboring vehicles caused by slight speed oscillations in the steady state of the formation, while preserving the close-range hard safety boundary.
[0048] For a neighboring machine that triggers obstacle avoidance, the obstacle avoidance layer constructs ORCA velocity half-plane constraints in the horizontal plane, and solves for the closest horizontal velocity that satisfies all half-plane constraints through linear programming. Collision-free horizontal speed The speed difference is: By flight path direction As a vertical unit vector, with As a horizontal unit vector, Decomposed into: By default, fixed-wing aircraft only retain the lateral obstacle avoidance component: in This is the time constant for converting the speed difference to the position increment. This default strategy avoids directly requiring the fixed-wing aircraft to decelerate or accelerate rapidly along the flight path, thus better aligning with the airspeed control characteristics of fixed-wing aircraft.
[0049] The height dimension employs a NED height layering strategy. This considers the three-dimensional distance between the local machine and its neighboring machines. Less than the trigger distance Then the height layer amplitude is: If the drone's z-value in the NED coordinate system is less than that of its neighboring drones, meaning the drone's actual altitude is higher, then the drone receives a negative z-offset; if the drone's z-value is greater than that of its neighboring drones, then the drone receives a positive z-offset; when the altitudes are equal, the vertical direction is determined according to the drone number or a preset priority. The contributions from all neighboring drones are superimposed and limited to obtain the altitude-layered offset: The final obstacle avoidance position increment is: Example 8: Obstacle Avoidance Passage Transfer During Formation Changes When the formation is in a formation change mode and there is no conflict with other aircraft, this embodiment selectively restores or suppresses obstacle avoidance channels based on the type of the change axis. "Giving up" here means temporarily not outputting control quantities for the obstacle avoidance channel during the control cycle. If the change axis is a lateral transposition, the lateral component of the horizontal obstacle avoidance increment is discarded, only the longitudinal component is retained, and the altitude layer offset remains valid, allowing the aircraft to complete lateral crossing under altitude layer protection. If the change axis is a longitudinal rearrangement, the longitudinal component is discarded, only the lateral component is retained, and the altitude layer offset remains valid, preventing longitudinal obstacle avoidance from hindering the rearrangement of positions. If the change axis is a height overlap, the complete two-dimensional horizontal obstacle avoidance increment is retained, and the altitude layer offset is disabled, allowing the horizontal ORCA to resolve conflicts. If there is no formation change, or if a conflict with another UAV is detected, the default obstacle avoidance strategy is adopted, i.e., only the lateral obstacle avoidance component is retained, and the altitude layer remains valid.
[0050] Through the aforementioned channel transfer mechanism, the obstacle avoidance layer can maintain safety constraints without blocking the desired formation for an extended period during formation swapping or rearrangement.
[0051] Example 9: Control Fusion and Flight Control Command Issuance The control fusion layer reads intermediate control values from the route reference layer, formation keeping layer, and obstacle avoidance layer in each control cycle. During the straight-line flight phase, the control fusion layer generates a fused position using the guidance target point Pcmd as the reference position and the route planning airspeed vbase as the reference airspeed. And generate the merged airspeed: Then, upper and lower limits were imposed on the fusion airspeed: Then, limit the rate of change of airspeed. Let the output airspeed of the previous cycle be... The control cycle is The maximum airspeed change rate ,but: Therefore, when the first control cycle or the control cycle becomes abnormally long, the current limited airspeed is directly adopted and the limited state is reinitialized; during the normal cycle, the target airspeed is gradually approached according to the maximum airspeed change rate to reduce the airspeed and altitude coupling oscillations caused by the tracking lag of the fixed-wing TECS speed loop.
[0052] During the Dobbins turn tracking phase, the control fusion layer uses the Dobbins trajectory target point P. dub As a location field, along with the expected heading ψ dub Local curvature symbol λ(s) and turning airspeed v turn The fixed-wing trajectory tracking command is generated; when the flight controller supports the circular turning interface, the circular segment can also include the corresponding center and radius. At this time, the formation position offset is already included in the initial pose and target pose generated by the Dubins path, and the control fusion layer no longer superimposes the formation position offset to avoid disrupting the continuous curvature turning trajectory.
[0053] For fixed-wing and compound-wing UAVs in fixed-wing flight mode, the control fusion layer generates offboard commands for fixed-wing waypoint or fixed-wing hovering modes and issues them to the flight controller. The fixed-wing flight controller can use L1 lateral guidance to track waypoints or hovering circles, and TECS or equivalent energy control to track airspeed and altitude. Because this embodiment issues targets through a single fusion output, the flight controller will not simultaneously receive conflicting route targets, formation targets, and obstacle avoidance targets.
[0054] Example 10: Parameter Examples When the mission flight path reaches the last waypoint and ceases to loop, the fixed-wing UAV does not hover but instead enters a terminal hover near the last waypoint. The hovering radius can be set to 150 m, and the hovering airspeed can be limited to between 20 m / s and 30 m / s. When the mission is to hover and regroup, the formation maintenance layer uses an angular spacing balancing algorithm instead of ordinary longitudinal spacing control. Let the hovering center be... The radius of rotation is The azimuth angle of this machine is The distances between the adjacent two corners are respectively and The speed adjustment amount is: in It indicates clockwise rotation. This indicates a counter-clockwise rotation. If all data from neighboring machines is unavailable, the target angle will be evenly distributed according to its number. As a fallback target, calculate the angle deviation. The speed adjustment amount at this time is: As an optional implementation parameter, the parameter configuration shown in Table 2 below can be used: Table 2 Example 11 In conjunction with the above embodiments, the flight control computing device of this embodiment executes a fixed-wing UAV formation flight path following and obstacle avoidance control method, including the following steps: Based on the lateral offset of the aircraft in the formation configuration, the original waypoints in the predetermined route are offset to generate formation offset waypoints. A fixed-wing flight path guidance algorithm is adopted to generate a flight path following target point based on the current formation offset segment, the aircraft's position, and preset guidance parameters; the flight path following target point is corrected with adaptive gain based on the lateral trajectory error of the aircraft relative to the flight path to generate a guidance target point. Based on the current formation offset segment and the next formation offset segment, the initial pose and target pose are constructed. Under the constraint of the minimum turning radius of the fixed wing, a set of Dobins candidate paths is generated. The feasible path with the shortest total length is selected as the turning trajectory. The Dobins trajectory target point, expected heading, path segment type and local curvature sign are sampled and output according to the path arc length. At the same time, the turning airspeed is fed forward to compensate based on the lateral offset of the aircraft and the local curvature sign. During flight, the position and speed of neighboring aircraft in the formation are acquired, the longitudinal spacing error and longitudinal relative speed between the aircraft and the neighboring aircraft in the flight path are calculated, and the longitudinal speed adjustment amount of the formation is generated through a proportional-derivative controller. Based on the reciprocal speed obstacle method, the collision-free horizontal speed that satisfies the collision avoidance constraint of the adjacent aircraft is solved in the horizontal plane. The difference between this speed and the desired speed is decomposed into a longitudinal component along the flight path and a lateral component perpendicular to the flight path. The longitudinal component is discarded by default, and only the lateral component is retained to generate the horizontal obstacle avoidance position increment. At the same time, the height layer offset is calculated based on the three-dimensional spatial distance between the local aircraft and the adjacent aircraft, which together with the horizontal obstacle avoidance position increment constitutes the obstacle avoidance position increment. Using the guidance target point or the Dubins trajectory target point as the reference position, the longitudinal speed adjustment of the formation is superimposed on the reference airspeed, and the obstacle avoidance position increment is superimposed on the reference position. After limiting the airspeed change rate, the final control command is formed and sent to the flight controller.
[0055] The offsetting of the original waypoints employs a skewed geometric algorithm: Let the lateral offset of the machine be... For waypoints Take its entry segment direction unit vector unit vector of the outgoing segment direction Corresponding normal vector , The cosine of the two included angles Then the formation waypoints are offset. for: when When the value is less than a preset threshold, it degenerates to using only one-sided normal vector bias.
[0056] The fixed-wing flight path guidance algorithm is either a forward-looking distance (LOS) guidance algorithm or a Lookahead forward-looking point tracking algorithm. The calculation of the lateral trajectory error vector includes: projecting the aircraft's position onto a straight line segment formed by the offset waypoints of adjacent formations to obtain a projection point; the vector difference between the aircraft's position and the projection point is the lateral trajectory error vector. The adaptive gain k... cte Based on the magnitude |e of the lateral trajectory error vector cte | Smooth adjustment, and use the tanh hyperbolic tangent activation function to determine the normalized convergence coefficients: Where, k min With k max Let β be the gain boundary, β be the slope factor of the tanh function, e0 be the center of gain change, and ρ(e cte ) represents the normalized convergence coefficient; the guidance target point is the flight path following target point minus k. cte The lateral trajectory error vector is times larger.
[0057] The fixed-wing turning trajectory is generated using a Dubins curve, including: based on the initial pose q of the current formation offset segment. s and the target attitude q of the next formation offset segment g At the minimum turning radius R of the fixed wing min Construct a set of candidate paths S={LSL, RSR, LSR, RSL, RLR, LRL} under constraints, calculate the normalized segment length and total length of each candidate path, and select the feasible path with the shortest total length that satisfies the segment boundary as the turning track: Where, q s =(P s , ψ s P represents the initial pose of the Dubins path. s ψ is the starting position. s q is the starting heading; g =(P g , ψ g Let P be the target pose. g For the target position, ψg For the target heading; v nom For nominal cruising airspeed, φ max The maximum allowable roll angle for a fixed wing is given by n, where g is the acceleration due to gravity. L (ψ) and n R (ψ) represents the unit normal vectors for left and right turns corresponding to the heading ψ, respectively; C s L C s R C g L C g R These are the centers of the starting left-turn circle, the starting right-turn circle, the ending left-turn circle, and the ending right-turn circle, respectively; S feas To provide a set of candidate paths that satisfy the constraints of geometric tangent, segment length, and minimum radius, σ For the selected Durbins path type, ℓ σ,1 、ℓ σ,2 、ℓ σ,3 These are the normalized lengths of the three components of the path, L. σ This represents the actual length of the candidate path.
[0058] The switching arc length of the Durbins path is s1=R min ℓ σ ,1 s2=R min (ℓ σ ,1 +ℓ σ ,2 The route reference layer switches between the first circular arc segment, the straight line segment, or the second circular arc segment based on s1 and s2, and outputs the corresponding trajectory sampling target point, desired heading, and local curvature symbol.
[0059] Optionally, the airspeed feedforward compensation during the Dubins turn is performed on a local curvature segment: Where s is the current arc length position of the local machine on the selected Durbins path, and λ(s) is the local curvature sign; b y B represents the lateral offset of the machine within the formation system. ref Δv serves as the lateral reference scale for the formation. max This is the maximum airspeed feedforward correction; v base As the reference airspeed, vmin and v max These are the minimum and maximum allowable airspeeds for the fixed wing, respectively, and clip(·) is the clipping function. This compensation allows the fixed wing located on the outside of the turn to accelerate appropriately, while the fixed wing located on the inside of the turn to decelerate appropriately.
[0060] Optionally, the formation longitudinal speed adjustment is generated as follows: Let the longitudinal offsets of the aircraft and its neighboring aircraft be respectively... , Then the expected vertical spacing Project the horizontal position difference between this aircraft and its neighboring aircraft onto the flight path direction to obtain the actual longitudinal spacing. Longitudinal spacing error Longitudinal relative velocity This represents the projection of the speed difference between the two aircraft onto the flight path; when the neighboring aircraft status is active, the speed increment contributed by a single neighboring aircraft is... The longitudinal speed adjustment of the formation is obtained by averaging all effective neighboring aircraft and limiting the amplitude.
[0061] Optionally, the reciprocal velocity obstacle method for solving the collision-free horizontal velocity in the horizontal plane includes: for each neighboring aircraft, constructing a half-plane constraint for the cut-off velocity obstacle based on relative position, relative velocity, joint protection radius, and time window, and solving for the collision-free velocity closest to the aircraft's desired velocity under all half-plane constraints using linear programming. ;Will The difference from the desired speed is decomposed into longitudinal components. and horizontal components By default, only the lateral component is retained. and will Multiply by the time constant The horizontal obstacle avoidance position increment is then obtained.
[0062] Optionally, the height layer offset The calculation is based on three-dimensional Euclidean distance: if the three-dimensional distance between the local machine and the neighboring machine is... Less than the trigger distance Then the layered amplitude The direction is based on relative height: in the NED coordinate system, the side with higher height (smaller z value) receives an upward (negative z-axis) offset, and the side with lower height receives a downward (positive z-axis) offset. When the heights are equal, the offset is determined by a preset identifier; the amplitude is then limited after superimposing the contributions of all neighboring cameras. The obstacle avoidance position increment is the horizontal obstacle avoidance position increment plus the height offset. sum.
[0063] Optionally, when the formation is in formation change mode and there are no external conflicts, obstacle avoidance channels may be selectively restored or suppressed according to the following rules based on the type of the change axis: If the transformation axis is a horizontal transposition, then the horizontal component in the horizontal obstacle avoidance increment is discarded, only the vertical component is retained, and the height layer offset is kept valid. If the transformation axis is a vertical rearrangement, the vertical component in the horizontal obstacle avoidance increment is discarded, only the horizontal component is retained, and the height layer offset remains valid. If the transformation axes are highly overlapping, the complete two-dimensional horizontal obstacle avoidance increment is retained, and the height layer offset is turned off; In the absence of transformation or with external group conflicts, by default only the lateral component in the horizontal obstacle avoidance increment is retained, and the height layer offset remains valid.
[0064] Optionally, when the mission mode is fixed-wing hovering and assembling, the longitudinal speed adjustment of the formation is replaced by an angular spacing balancing algorithm: assuming the hovering center is... The radius of rotation is , hovering direction factor (+1 represents clockwise, -1 represents counterclockwise), azimuth angle of this unit. Calculate the azimuth angle of each neighboring aircraft within the formation. The counterclockwise angular spacing is obtained. and clockwise angular spacing The speed adjustment amount is: The output is limited; if all data from neighboring machines is missing, the speed adjustment is generated based on the preset absolute uniform angle, the angle deviation, and the formula.
[0065] Optionally, the airspeed rate of change limiting is implemented according to the following rule: the airspeed command output in the previous cycle is recorded as... The current calculated reference airspeed is The cycle duration is The maximum allowable rate of change The actual output airspeed for: Furthermore, this embodiment also includes a fixed-wing UAV formation flight path following and obstacle avoidance control system, including a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the methods described above when executing the program.
[0066] Furthermore, this embodiment also discloses a multi-fixed-wing UAV formation system, including several fixed-wing UAVs, each UAV is equipped with the control system described above, each UAV shares position and speed information through mutual communication, and executes the method in a distributed manner, maintaining a predetermined formation configuration and achieving mutual obstacle avoidance when flying along the flight path or hovering and gathering.
[0067] It should be noted that the parameters in the above embodiments are merely examples, and those skilled in the art can adjust them according to specific aircraft types, flight speeds, communication delays, formation spacing, and safety margins. Changing the parameters does not affect the basic processing flow of route reference generation, formation longitudinal maintenance, reciprocal obstacle avoidance, altitude layering, and control fusion in this embodiment.
[0068] It should be noted that the above embodiments are illustrative of the invention and not restrictive, and that those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names.
Claims
1. A computing device for controlling the formation flight of unmanned aerial vehicles (UAVs), characterized in that, The flight control computing device is installed in each UAV in the formation and includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it performs the functions of the following modules: The flight path reference module is used to determine the reference flight path control variables of the UAV based on the formation flight mission; The formation-keeping module is used to determine the speed adjustment amount based on the position and speed of neighboring aircraft; The obstacle avoidance module is used to determine the obstacle avoidance position increment based on the relative motion state of adjacent machines; The control fusion module is used to obtain the aforementioned baseline flight path control quantities, speed adjustment quantities, and obstacle avoidance position increments. Based on different flight control stages and control priority strategies, it determines the control quantities to be executed by the UAV, and then generates flight control commands and sends them to the flight controller.
2. The apparatus according to claim 1, characterized in that, When the processor executes the computer program, it also implements a control blackboard module. The control blackboard module is used to uniformly obtain the above-mentioned control quantities from the route reference module, formation keeping module and obstacle avoidance module, and transmit them to the control fusion module.
3. The apparatus according to claim 1 or 2, characterized in that, The route reference module is also used to perform at least one of the following: Based on the lateral offset of the aircraft in the formation configuration, the original waypoints in the predetermined route are offset, and the formation offset waypoints are generated using the skew geometry algorithm. The flight path guidance algorithm is used to generate the flight path following target point based on the current formation offset segment, the machine's position, and preset guidance parameters; Based on the lateral trajectory error of the machine relative to the flight path, the flight path following target point is corrected with adaptive gain to generate a guidance target point; Based on the current formation offset segment and the next formation offset segment, the initial pose and target pose are constructed. Under the minimum turning radius constraint, a set of Dubins candidate paths is generated. The feasible path with the shortest total length is selected as the turning track. The target point, desired heading, path segment type and local curvature sign of the Dubins trajectory are sampled and output according to the path arc length. At the same time, the turning airspeed is fed forward to compensate based on the lateral offset of the machine and the local curvature sign.
4. The apparatus according to claim 1 or 2, characterized in that, The formation maintenance module is also used to perform: During flight, the position and speed of neighboring aircraft in the formation are acquired, the longitudinal spacing error and longitudinal relative speed between the aircraft and the neighboring aircraft in the flight path direction are calculated, and the longitudinal speed adjustment is generated through a proportional-derivative controller.
5. The apparatus according to claim 1 or 2, characterized in that, The obstacle avoidance module is also used to perform: Based on the reciprocal speed obstacle method, the collision-free horizontal velocity that satisfies the collision avoidance constraint of the adjacent aircraft is solved in the horizontal plane. The difference between the horizontal velocity and the desired velocity is decomposed into a longitudinal component along the flight path and a lateral component perpendicular to the flight path. The longitudinal component is discarded, and only the lateral component is retained to generate the horizontal obstacle avoidance position increment. At the same time, the height layer offset is calculated based on the three-dimensional spatial distance between the aircraft and the adjacent aircraft, which together with the horizontal obstacle avoidance position increment constitutes the obstacle avoidance position increment.
6. The apparatus according to claim 3, characterized in that, The flight path guidance algorithm includes a forward-looking distance-based LOS guidance algorithm or a forward-looking point tracking algorithm; The calculation of the lateral trajectory error includes: projecting the machine's position onto a straight line segment formed by the offset waypoints of adjacent formations to obtain a projection point; the vector difference between the machine's position and the projection point is the lateral trajectory error vector; the adaptive gain k cte The normalized convergence coefficients are determined by smoothing the magnitude |ecte| of the lateral trajectory error vector and using the tanh hyperbolic tangent activation function. Feedforward compensation of turning airspeed based on the lateral offset of the aircraft and the local curvature sign includes: Local curvature symbol airspeed compensation Turning airspeed Where s is the current arc length position of the local machine on the selected Durbins path. It is a left-turning arc segment. It is a right-turning arc segment. For a straight line segment, b y B represents the lateral offset of the machine within the formation system. ref Δv serves as the lateral reference scale for the formation. max This is the maximum airspeed feedforward correction; v base As the reference airspeed, v min and v max These are the minimum and maximum allowable airspeeds for the fixed wing, respectively, and clip(·) is the clipping function. This compensation allows the fixed wing located on the outside of the turn to accelerate appropriately, while the fixed wing located on the inside of the turn to decelerate appropriately.
7. The apparatus according to claim 4, characterized in that, The longitudinal speed adjustment is generated in the following manner: Let the longitudinal offsets of this machine and the adjacent machine be respectively , Then the expected vertical spacing ; Projecting the horizontal position difference between the aircraft and its neighboring aircraft onto the flight path direction yields the actual longitudinal spacing. , For the location of the adjacent aircraft, This is the location of the local machine. This is the unit vector for the horizontal flight path direction; Longitudinal spacing error ; Longitudinal relative velocity , is the projection of the speed difference between the two aircraft onto the flight path. For the speed of the adjacent machine, This refers to the machine's speed; When the neighboring machine's state is valid, the speed increment contributed by a single neighboring machine is: ,in and These are proportional gain and derivative gain, respectively. The longitudinal speed adjustment amount is obtained by averaging all effective adjacent machines and limiting the amplitude.
8. The apparatus according to claim 5, characterized in that, The height layer offset The calculation is based on three-dimensional Euclidean distance: If the three-dimensional distance between this machine and its neighboring machine Less than the trigger distance , This is the location of the local machine. For adjacent locations, then the layered amplitude... , This refers to the gain coefficient of the high-level layering. In the northeast coordinate system, the side with the smaller z-value of the altitude coordinate is shifted upward, and the side with the larger z-value of the altitude coordinate is shifted downward. When the altitudes are equal, the default identifier is used to determine the shift. The height offset is obtained by superimposing the contributions from all neighboring machines and limiting the amplitude. ; The obstacle avoidance position increment is the horizontal obstacle avoidance position increment plus the height offset. sum.
9. The apparatus according to claim 1, characterized in that, The control fusion module is also used to perform obstacle avoidance passage transfer in formation change mode: When the formation is in formation change mode and there are no external conflicts, obstacle avoidance channels are selectively restored or suppressed based on the type of the change axis: If the transformation axis is a horizontal transposition, the horizontal component in the horizontal obstacle avoidance increment is discarded, only the vertical component is retained, and the height layer offset is kept valid. If the transformation axis is vertically rearranged, the vertical component in the horizontal obstacle avoidance increment is discarded, only the horizontal component is retained, and the height layer offset is kept valid. If the transformation axes are highly overlapping, the complete two-dimensional horizontal obstacle avoidance increment is retained, and the height layer offset is turned off; In the absence of transformation or in the presence of external group conflicts, only the lateral component in the horizontal obstacle avoidance increment is retained, and the height layer offset remains valid. The transformation axis refers to the direction along which the relative positions of the UAVs are adjusted during the formation transformation process.
10. A method for calculating flight control of unmanned aerial vehicle (UAV) formations, executed by each UAV within the formation, characterized in that, The method includes: Based on the formation flight mission, determine the baseline flight path control parameters for the UAV; The speed adjustment amount is determined based on the position and speed of the adjacent machine; Determine the obstacle avoidance position increment based on the relative motion state of adjacent aircraft; The reference flight path control quantity, speed adjustment quantity, and obstacle avoidance position increment are obtained. Based on different flight control stages and control priority strategies, the control quantity to be executed by the UAV is determined, and then flight control commands are generated and sent to the flight controller.
