Abstract
Dynamic window algorithm (DWA) is a local path-planning algorithm, which can be used for obstacle avoidance through speed selection and obtain the optimal path, but the algorithm mainly plans the path for fixed obstacles. Based on DWA algorithm, this paper proposes an improved DWA algorithm based on space-time correlation, namely, space-time dynamic window approach. In SDWA algorithm, a DWA associated with obstacle position and time is proposed to achieve the purpose of path planning for moving obstacles. Then, by setting the coordinates of the initial moving obstacle and identifying safety distance, we can define the shape of the obstacle and the path planning of the approach segment in thunderstorm weather based on the SDWA model was realized. Finally, the superior performance of the model was verified by setting moving obstacles for path planning and selecting the aircraft approach segment in actual thunderstorm weather. The results showed that SDWA has good path-planning performance in a dynamic environment. Its path-planning results were very similar to an actual aircraft performing thunderstorm-avoidance maneuvers, but with more smooth and economical trajectory. The proposed SDWA model had great decision-making potential for approach segment planning in thunderstorm weather.
1. Introduction
To ensure the flight safety of the aircraft, the path planning of the approach segment in thunderstorm weather is mainly to reasonably design the diversion route for aircrafts that may encounter thunderstorms on future route within a defined period of time. During approach, the aircraft's altitude decreases and is susceptible to thunderstorm hazards [1–5]. Thunderstorms produce violent updrafts and downdrafts; flying into it will cause serious damage to the aircraft. There is a large amount of super cooled water in the thunderstorm, which can result in icing on the exterior and thus hinders aircraft landing. Meanwhile, air collision will produce electric shock that can damage the protruding parts of the fuselage and electronic equipment [6, 7]. Therefore, how to effectively plan the path in thunderstorm weather is of great significance [8, 9].
Path planning is widely used in engineering. In the past few decades, a variety of path-planning models have been proposed according to different angles. Path planning for fixed obstacles includes intelligent algorithm path planning, such as ant colony algorithm [10–13], traditional path-planning algorithms, such as artificial potential field method [14–16], and hybrid path-planning algorithms, such as potential field ant colony fusion method [17], Genetic fuzzy algorithm [18], and fuzzy neural network algorithm [19]. Path planning of moving obstacles includes Jiang Zhongyu's “Improved dynamic a × algorithm combined with time window” [20], Wu Chuanjun's “moving obstacle path planning based on dynamic spatiotemporal environment impact model and grid” [21], and Chen Jinfeng's “artificial potential field method combined with rolling window” [22]. For the approach segment path planning in civil aviation thunderstorm weather, the traditional algorithm [23, 24] is mainly used to plan the path of aircraft with thunderstorm on the route.
The dynamic window approach is a path-planning algorithm that drives objects by simulating trajectories at different speeds, evaluating the trajectories, and selecting the speed under the optimal trajectory in the current window [25]. It can deal with a series of obstacle avoidance problems of fixed obstacles. In recent years, people have proposed a series of variants of DWA algorithm, such as DWA algorithm [26–28] combined with a × algorithm, which has good application effects in solving path-planning problems in complex environments.
Due to the fixed height of the aircraft in the approach segment, a problem concerning the diversion path of the approach segment in thunderstorm weather is in fact a path-planning problem. However, thunderstorms are often dynamically unpredictable; using the traditional DWA algorithm is merely insufficient. Therefore, this paper designs a Dynamic Window Algorithm (SDWA) for path planning of moving obstacles through polynomial fitting of obstacle positioning and time in a single window, so as to efficiently and timely plan the diversion path in advance for thunderstorms that will appear on the route. As an example, the effectiveness of the algorithm is verified by taking the diversion of approach segment under actual thunderstorm weather at Taipei Taoyuan Airport.
2. The Establishment and Simulation of the Model
2.1. Establishment of SDWA
SDWA algorithm mainly includes the establishment of aircraft motion model and dynamic obstacle environment. The main process is shown in Figure 1.

2.1.1. Establishment of the Aircraft Motion Model
(1) Establishment of Aircraft Motion Equation. Due to the limitation of flight procedure, the aircraft cannot escape the protected area of the flight route. However, in the departure and arrival segments, the flight altitude is relatively low and can be easily affected by thunderstorm weather, forcing the aircraft to reroute. Therefore, this paper focuses on how to obtain the predicted flight trajectory before an aircraft encountering a thunderstorm.
In the approach segment, the aircraft has strict requirements on the altitude of rise and descend adjustments. Therefore, the diversion measures for thunderstorm clouds in the approach segment are mainly fly-around-motion [29]:where is the linear velocity of the aircraft at time and is the angular velocity of the aircraft. The aircraft trajectory is described, as shown in Figure 2:

When the distance between two adjacent moments is small enough, the trajectory can be regarded as a straight-line flight:
Therefore, the coordinates of the aircraft at a certain time (i.e., the accumulation of the previous displacements) and the yaw angle of the aircraft can be expressed as
(2) Aircraft Motion parameters. There are infinite groups of velocities in two-dimensional space; due to the influence of aircraft itself and the thunderstorm, the velocity can be constrained by the following restrictions:(1)Speed limit under self-performance guarantee:(2)Aircraft is limited by its own engine performance: where and are the maximum braking linear acceleration and angular acceleration that the aircraft can provide at and and are the maximum driving linear acceleration and angular acceleration of the aircraft at .(3)Based on the distance limit between the aircraft and the thunderstorm.
In order to avoid the thunderstorm during the approach segment, the aircraft will decelerate with the maximum braking acceleration:where is the minimum distance between the aircraft and the thunderstorm at .
(3) Aircraft speed evaluation function.(1)Establishment of evaluation function index:the speed evaluation index of aircraft is mainly determined by three indexes, as shown in Table 1.(2)Normalization of indicators: since the three indexes are of different dimensions, they are normalized [30] as follows: is the index of trajectories in the current dynamic window algorithm [31] and is all trajectories in the current dynamic window.(3)Speed evaluation function.
Based on the existing evaluation index, the proportion is set to establish a comprehensive evaluation function:
Among , in this paper, the safety distance from thunderstorm cloud is the main evaluation index .
2.1.2. Setting of Dynamic Obstacles
(1) Setting of Initial Position of Obstacle. When the aircraft arrives at the approach segment, the location of thunderstorm can be described as follows:
(2) Obstacle Moving Trajectory Equation. After the aircraft arrives at the approach segment, the moving trajectory of obstacles can be described by establishing the trajectory equation related to t, and the trajectory equation is as follows:
2.2. Matlab Model Simulation
According to the established aircraft motion model, Matlab is used for simulation [32] to observe whether the predicted route of the aircraft to avoid thunderstorm is reasonable. Here, the shape of thunderstorm is set as a round thunderstorm with a circular trajectory (that is, moving obstacles are composed of four adjacent points in the simulation process). The specific algorithm flow is shown in Figure 3, and the parameters are shown in Table 2.

The simulation results are shown in Figure 4.

It can be seen from Figure 4 that the thunderstorm moves in a circular area with (2, 2.5) as the center and 50 km as the radius. The aircraft flies at the initial heading angle π⁄ 4. The model was successfully used to avoid the moving thunderstorm, which verified the feasibility of the model and compared with other path-planning algorithms in dynamic environment; this method makes use of the dynamic characteristics of DWA, and the algorithm has fast solution speed and high efficiency.
3. Flight Example Verification
To verify the reliability of the model, this paper takes the BR721 flight on PVG-TPE of TPE approach segment on June 6, 2021, as an example, as shown in Figure 5.

In the picture, the weather radar echo over TPE is red, and flight BR721 will encounter thunderstorm according to the original planned route over TPE. Therefore, the time-dependent displacement parameter equation can be generated by predicting the thunderstorm trajectory, which can be brought into the DWA model of this paper for collision prediction and rerouting planning.
3.1. Establishing Thunderstorm Displacement Parameter Equation
Through the observation of weather radar echo map over TPE at different times (as shown in Figure 6), thunderstorms can be found moving to the east over the northwest of TPE. The thunderstorm displacement images displayed by weather radar echo within 210 minutes are superimposed by graphic software, and the thunderstorm displacement trajectory is shown in Figure 7.


To fit the thunderstorm trajectory equation, taking TPE as the starting point, the direction to the east as the X-axis, and the direction to the north as the Y-axis, a rectangular coordinate system is established to obtain the thunderstorm displacement model, as shown in Figure 8.

The thunderstorm trajectory can be found as a curve through the model diagram. Therefore, the parameter equation of thunderstorm trajectory can be obtained by polynomial regression fitting. The thunderstorm coordinates at each time are shown in Table 3:
The above data were fitted by polynomial regression [33], and the fitting formula was as follows:
The fitting results are shown in Figures 9 and 10.


Through the comparison of fitting results, to avoid overfitting, the and coordinates are fitted by third-order polynomial as the parameter equation of thunderstorm displacement trajectory; the parameter equation is as follows:
3.2. Simulation
The parameters [34], thunderstorm shape, and displacement equation are brought into the model and simulated by MATLAB. The simulation data are shown in Table 4.
The simulated thunderstorm position and aircraft position are shown in Table 5, and the results are shown in Figure 11:

It can be seen from Figure 11 that the aircraft successfully avoided the moving thunderstorm from the beginning of approach to the end, and its simulated track (blue) is smoother and more operable and economical than the actual track (red) [35], which provides a new and effective method for approach segment path planning in thunderstorm weather.
4. Conclusion
In this paper, an improved spatiotemporal dynamic window approach is proposed. The algorithm can deal with the path-planning problem in an dynamic environment by associating the location of obstacles in a single window with time. In SDWA, the traditional DWA algorithm is used for fixed obstacle avoidance along the path, and the location of obstacles in each window is refreshed by time-related location function. Next, move the obstacles under the continuous window along/on with the target trajectory to complete the construction of the dynamic environment. Meanwhile, to solve the trajectory-planning problem of the approach segment in thunderstorm weather, aiming at the complex shape of thunderstorm, SDWA describes the thunderstorm shape through the setting of obstacle point set, sets relevant motion parameters with reference to the performance of relevant civil aircraft, and sets parameters such as safety distance in combination with relevant requirements for safe flight of civil aircraft. Through the regression analysis of thunderstorm displacement trajectory and time, the thunderstorm displacement trajectory equation is established and applied to constructing a dynamic environment. Finally, SDWA is used to plan the trajectory of the approach segment in thunderstorm weather. The simulated diversion track and the actual diversion track are shown in Figure 12 (blue is the actual motion track and red is the simulation track).

The results show that the SDWA algorithm has good obstacle avoidance performance, which makes reasonable trajectory planning for the aircraft with thunderstorm weather on the route and has highly application to the actual circumstance, and the trajectory is smoother and more economical. Therefore, SDWA provides a safe and efficient method to solve the problem of approach segment path planning under thunderstorm weather. In the future, research should further combine GPS positioning system or Beidou navigation system to improve the implementation accuracy of simulation route [36–38]. Under the new route system, it can further improve the efficiency and safety of diversion planning in thunderstorm weather [39].
However, when SDWA deals with an extremely complicated weather, it may fall into a local loop of the path due to the problem of parameters’ setting, resulting in obtaining the optimal path difficultly. Therefore, the model can be further optimized by combining the optimization algorithm in the future.
Data Availability
All the data in the study are available.
Conflicts of Interest
The authors declare that there are no conflicts of interest regarding the publication of this paper.
Acknowledgments
The authors are very grateful for the support of the youth fund by Civil Aviation Flight University of China (Q2020-118) and construction of advantageous characteristic subject of Transportation Engineering (Central Universities establish the first-class university of the world (subject) in 2021 and the special Project for Guiding Characteristic Development) (D202103).