4.2.1. Design of Flight Guidance Algorithm Based on Heading Prediction and Fuzzy Decision-Making Method
To tackle the difficulties of traditional flight guidance algorithms, an improved guidance algorithm is proposed and can be given as follows:
where
is the current grid heading that can be obtained by grid mechanization.
denotes the desired grid heading at the current UAV position that can be calculated by Equations (26) and (27).
is the predicted grid heading at the UAV position T seconds later.
,
, and
are the gains. The expression of the sigmoid function can be given as Equation (35).
Since the predicted grid heading is introduced in this algorithm, the FMS with this algorithm can guide the UAV to change its heading in advance, thereby improving the tracking accuracy of the UAV in polar regions.
The sigmoid functions and are introduced to account for the proportions of the current grid heading error and the predicted grid heading error T seconds later in the control signal. It determines whether correcting the current heading error or controlling the future heading is more important. Since the calculation of the grid heading is based on the premise that the UAV must fly along the great ellipse route precisely, if XTK is excessively large, the prediction will be inaccurate. In this situation, the proportion of the current grid heading should be larger than that of the prediction to avoid worsening the heading and position error caused by inaccurate prediction. The sigmoid functions can account for the proportion dynamically depending on XTK. If XTK is excessively large, the proportion of the current grid heading error approaches 1, while the proportion of the prediction nears 0; therefore, the impact of inaccurate prediction could be avoided. In contrast, if XTK is 0, both of the proportions are 0.5, enabling the UAV to both maintain its current heading and predict its future heading. The tolerance for XTK varies with the flight task requirements; therefore, is introduced to adjust the tolerance for XTK. The value of is determined based on the statistics of flight trials. Suppose the required tolerance of XTK is ; then the basic principle for tuning is shown as follows:
(1) First, roughly determine the boundary of : The proportions ratio should be larger than 10 when to avoid the XTK from exceeding the tolerance and the proportions ratio should be less than 3 when to improve the guidance accuracy in a steady state. Consequently, the upper and lower limits of can be determined.
(2) Second, fine-tune based on trials: Place the vehicle meters away from the great ellipse route at the concave side and then guide the vehicle along the great ellipse route, tuning to minimize the average XTK during the whole flight.
However, if the look-ahead time of prediction, namely T, is set as a fixed value, the guidance accuracy may not be ideal. On the one hand, the specific value of T is tuned by the trial-and-error method, but the process of trial-and-error is inefficient and cannot find the optimal value of T. On the other hand, the guidance algorithm with fixed predictive time lacks the flexibility to respond to varied situations in polar regions. For example, when a UAV encounters a wind disturbance or has deviated from the planned route, the top priority is to keep the UAV flight steady and track the current route rather than predicting. And the prediction accuracy may not be ideal. Therefore, T should be selected as a smaller value in this situation to ensure flight safety. Conversely, when the circumstance is steady, T should be larger to improve the guidance accuracy. As a result, T should be variable and adjusted dynamically depending on the situation. However, the situation is complex and there is no specific relationship between T, XTK, and wind speed; therefore, the adjustment can only rely on human experience. The fuzzy decision-making method mirrors human decision processes. It computes outputs based on abstract, fuzzy input–output relationships rather than precise mathematical ones, making it well suited for solving these problems [
27]. The design process of the fuzzy decision system is shown as follows:
(1) Choice of Fuzzy Decision Framework
We choose the Mamdani framework as the fuzzy decision framework. As one of the most classical types of fuzzy decision systems, the Mamdani framework operates with both inputs and outputs as fuzzy sets, typically using IF–THEN rules.
(2) Design of Input Variables and Output Variable
Since the predicted heading is calculated based on the assumption that the UAV is close to the route, the crosswind velocity , which may interfere with future positions, and XTK, which indicates the degree of deviation, are selected as the input variables, with their domains and , respectively. The look-ahead time of prediction, namely T, is the output variable with its domain [0, Ts], where Ts is the setting time of the heading channel of the UAV. The fuzzy subset has 10 members {ZO, PSS, PS, PSB, PMS, PM, PMB, PBS, PB, PBB}.
(3) Design of Membership Function
The Gaussian, triangular, trapezoid, and sigmoid functions are selected to design member functions. The membership function of XTK, crosswind velocity, and look-ahead time T are shown in
Figure 7. (1) With respect to the selection of the membership function for T, the decision-making method PBB is risky when the prediction is not precise, so the Gaussian function is selected to avoid extreme decision-making. In order to ensure flight safety, the shape of ZO should be as narrow and sharp as possible, such that the defuzzificated output T can be as low as possible every time the ZO decision is made. Thus, the trapezoidal membership function is selected as the ZO membership function. (2) For XTK, when its value is small, the impact track deviation has on the prediction performance is negligible. Therefore, the Z-shaped membership function (zmf) is selected for the ZO fuzzy set to construct a dead zone. Conversely, when XTK is large, the sigmoid function is selected for the PB fuzzy set. (3) For crosswind, its influence on prediction accuracy is always present regardless of its magnitude. Furthermore, prediction becomes largely ineffective when the crosswind is excessively strong. Hence, a trapezoidal membership function is used for the PB fuzzy set.
Given that other situations are approximately symmetrical, to facilitate analysis, the triangular function is selected. We treated the range of each membership function as a parameter to be optimized and used the PSO algorithm for this purpose. It bears mentioning that the domain and range of membership functions are normalized by the linear method while optimizing.
(4) Design of Fuzzy Rules
The fuzzy rule follows basic engineering: The larger the XTK and crosswind velocity, the smaller the look-ahead time of prediction should be. In addition, since flight safety is the top priority, if either XTK or crosswind velocity is PB, T should be ZO to ensure the flight steadiness first. Therefore, the specific fuzzy rule is shown in
Table 5.
(5) Design of the Defuzzification Method
The centroid method is selected as the defuzzification method and expressed in Equation (36).
where z is the output of defuzzification and
is the membership function of z.
4.2.2. Parameter Tuning for Fuzzy Decision-Making Module Based on Improved Particle Swarm Optimization (PSO) Algorithm
Although some parameters in the fuzzy decision-making module, such as the number and form of membership functions, can be set empirically, other parameters, such as the center positions and domains of membership functions, are more complex to adjust, often yielding suboptimal results. Thus, an improved concave function fitness-based particle swarm optimization (C-F PSO) algorithm is introduced to optimize the center positions and domains of membership functions.
The complete PSO algorithm comprises encoding, fitness function construction, and update strategies. A detailed introduction to the algorithm is provided in [
22,
28]. In this study, variable wind disturbances are introduced in each simulation and the integral of the absolute value of XTK is selected as the fitness function in Equation (37).
This section focuses specifically on update strategies, and the standard particle update formulas are summarized below. The corresponding parameters are defined in
Table 6.
where the inertial weight
is a crucial parameter in the particle updating process, characterizing the particle’s ability to sustain its motion and expand its search. To balance rapid search in the early stage with convergence in the later stage, a linear adaptive adjustment strategy for
is commonly used:
As the number of iterations increases, the inertia weight decreases linearly. This allows the PSO algorithm to maintain strong global exploration initially and shift to accurate local convergence in later stages.
However, unlike optimization for fixed operating condition problems, variable wind disturbances are introduced in each simulation to enhance the robustness of the fuzzy decision-making module against different wind disturbance situations. In this varying-condition optimization process where the situation differs per iteration, an inertia weight
(adjusted by Equation (38)) that is too small in the later stages would cause the PSO algorithm to effectively ignore some wind disturbance scenarios. This can easily lead to convergence to a local optimum and compromise robustness against diverse wind conditions. To address this issue, a dynamic adjustment method for the inertia weight based on a concave function model is introduced (C-F adjustment strategy) to balance global exploration and local convergence capabilities.
where b is a control factor used to adjust the attenuation rate. Assuming
, the inertia weight curves of the linear adaptive adjustment (Equation (38)) and concave function adaptive adjustment (Equation (39)) are shown in
Figure 8.
Compared to the linear adaptive strategy, the proposed C-F approach enables more effective exploration of the search space in early iterations. This configuration helps particles quickly locate better solutions while avoiding convergence to local optima. As the iterations progress, the inertia weight rapidly decreases, prompting particles to focus more on their best positions while maintaining their search and adaptation capabilities for new scenarios. The detailed flowchart of the progress of C-F PSO is shown in
Figure 9.