Yaw Stability Research of the Distributed Drive Electric Bus by Adaptive Fuzzy Sliding Mode Control

: The direct yaw moment control can effectively enhance the yaw stability of the vehicle under extreme conditions, which has become one of the essential technologies for the distributed driving electric bus. Due to the features of a large mass and high center of gravity of the bus, lateral instability is more likely to occur under extreme driving conditions. To reduce the uncertainty and interference in the yaw movement process of the bus, this paper targets the instability caused by the coupling problem between the sideslip angle and yaw rate. An adaptive fuzzy sliding mode control is proposed to execute direct yaw moment control. The weight coefﬁcient of the sideslip angle and the yaw rate is adjusted via fuzzy control in real time. The optimal direct yaw moment is ﬁnally obtained. A distribution method based on the vertical load proportion is adopted for the allocation of four motors’ torque. Under three typical working conditions, a joint simulation test was carried out. The simulation results demonstrate that the raised method decreases the amplitude of the sideslip angle by 20.90%, 12.75%, and 23.67% and the yaw rate is 8.62%, 6.89%, and 9.28%, respectively. The chattering and sudden changes in the additional yaw moment are also lessened. The control strategy can realize the control target, which effectively strengthens the yaw stability of the bus.


Introduction
The distributed driving electric bus play a significant role in urban public transportation. Electric buses have the advantage of being environmentally friendly, and also shows a very good dynamic performance [1]. However, the bus has the features of a large quality and high center of mass, which is prone to a loss of stability under extreme conditions, such as emergency steering. If this instability cannot be effectively controlled, serious traffic accidents will occur. Therefore, automobile safety control technology is particularly important. Traditional safety control technology is no longer able to meet the realistic requirements of a distributed drive electric bus. Hence, as an active control method, the function of direct yaw moment control (DYC) of the yaw stability of a bus under extreme conditions has attracted increasingly more attention [2,3].
A significant number of studies have been conducted on the DYC of electric vehicles at home and abroad [4][5][6][7][8]. Direct yaw moment control will generate additional yaw moment. Through the torque distribution method, the calculated additional torque is applied to the wheels. Liu et al. proposed a model-based motion control algorithm designed to change the plane motion state of the vehicle by generating torque increments on each wheel. To solve the optimal torque increment vector, a real-time constrained quadratic programming problem is adopted. This method converts the constraints related to the wheel torque limit, tire friction limit, and wheel skid requirement into the upper and lower limits of the tire longitudinal force increments [9]. Initially, feedback control was often adapted as a way to calculate the direct yaw moment of the upper controller [10,11]. Nonetheless, a satisfactory result still cannot be achieved under complex conditions. For this reason, a joint control parameters [30]. Zhang et al. proposed a fuzzy algorithm to calculate the sliding mode gain coefficient so that it can adjust to the change in the motion state of the vehicle, and improve the adaptability of the system [31]. Even though these studies considered the instability problem caused by coupling between the sideslip angle and yaw rate, they did not take into account the weight between them under different motion situations. This led to the inability to obtain the optimal weighting coefficient of the sideslip angle and yaw rate.
In view of the above research, this paper combines the advantages of fuzzy control and SMC, and designs an adaptive fuzzy sliding mode control (AFSMC) method. This method resolves the buffeting problem produced by the traditional SMC and settles the instability problem caused by the coupling relation between the sideslip angle and yaw rate. On the premise of improving handling stability of bus, AFSMC changes the weight coefficients of the sideslip angle and yaw rate through a fuzzy algorithm. This can decrease the chattering and harmful sudden changes and reinforce the system adaptability. It offers a basis for actual engineering applications.
This article also has the following parts: Section 2 establishes the two degrees of freedom (2-DOF) and seven degrees of freedom (7-DOF) vehicle model. Section 3 describes how the controller is designed in detail and the torque distribution method. Then, joint simulation tests are implemented, and the simulation results are analyzed and discussed. Section 4 summarizes the research of this article.

Two Degrees of Freedom Bus Model
To easily explain the characteristics of yaw motion of the vehicle, we construct a bus model to simplify the linear 2-DOF model. The values of the parameters derived from this model are used as reference values for subsequent controllers. The input to this model is the front wheel angle. These two degrees of freedom are lateral motion along the y-axis and yaw rotation around the z-axis, respectively.
The model has the following assumptions: (1) The vehicle only makes plane motion.
(2) The roll angle, pitch angle, and vertical displacement are all zero.
(3) The longitudinal speed is constant. (4) Only the lateral and yaw motions are considered, so the influence of the shift of the longitudinal axle load is ignored. Figure 1 shows the force analysis. The dynamic equations of the vehicle motion are: where ν x is the longitudinal speed; ν y is the lateral speed; r is the yaw rate; δ is the front steering wheel angle; and β is the sideslip angle of the center of mass. Table 1 shows the definitions and values of the other basic parameters of the distributed drive electric bus. The model has a few virtues, for instance, low complexity, simple structure, and good real-time performance. It can commendably describe the relevance between the handling stability and yaw rate and sideslip angle of the vehicle. Therefore, it can be regarded as an ideal state of motion. The values of the parameters obtained from this model are used as the ideal values in the controller as a reference.
In the steady state, the desired sideslip angle and desired yaw rate are: where r d is the desired yaw rate and β d is the desired sideslip angle. K is the insufficient steering coefficient: Taking into account the nonlinear characteristics of tires, the desired value would be limited by the road adhesion coefficient. According to the empirical formula: where r max is the maximum of the yaw rate and β max is the maximum of the sideslip angle. Finally, the desired yaw rate r d and the desired sideslip angle β d can be obtained:   The model has a few virtues, for instance, low complexity, simple structure, and good real-time performance. It can commendably describe the relevance between the handling stability and yaw rate and sideslip angle of the vehicle. Therefore, it can be regarded as an ideal state of motion. The values of the parameters obtained from this model are used as the ideal values in the controller as a reference.
In the steady state, the desired sideslip angle and desired yaw rate are:   For convenience in the design, this 7-DOF model requires some assumptions: (1) The front and rear tires are identical.
(2) The front steering wheel angles of both sides are the same when the vehicle is turning.
(3) The influence of elastic damping on the transmission system is not considered.

Seven Degrees of tℎ Freedom Bus Model
Figure 2 is the coordinate system and force analysis of the vehicle. A nonlinear seven DOF model is set up. The seven degrees of freedom include the movement along the x axis, movement along the y-axis, rotation around the z-axis, and rotation of the fou wheels around their respective axes. The dynamic equation is as follows: where Fx* is the longitudinal force acting on each wheel and Fy* is the lateral force actin on each wheel. This paper will utilize this model to design the yaw moment controller to calculat the additional yaw moment. Figure 3 displays the main components of the direct yaw control structure. The fir is the upper controller that calculates the optimal additional yaw moment. The contro method adopted by the upper controller must ensure that the motion state parameters o The dynamic equation is as follows:

The Direct Yaw Control Structure of the Bus
where F x* is the longitudinal force acting on each wheel and F y* is the lateral force acting on each wheel. This paper will utilize this model to design the yaw moment controller to calculate the additional yaw moment. Figure 3 displays the main components of the direct yaw control structure. The first is the upper controller that calculates the optimal additional yaw moment. The control method adopted by the upper controller must ensure that the motion state parameters of the bus can follow the ideal value of the reference model under high-speed sharp turns and other situations. The additional yaw moment obtained by the upper controller needs input to the lower controller. On this basis, the lower controller needs to utilize a reasonable method to distribute the additional torque to the four motors. At the same time, the speed feedback controller calculates the required drive torque of the vehicle. Vehicle models, tire models, and power transmission models all use the models in TruckSim. The 2-DOF vehicle reference model, adaptive fuzzy sliding mode controller, torque distribution controller, and other controller structures are designed with Simulink. and other situations. The additional yaw moment obtained by the upper controller n input to the lower controller. On this basis, the lower controller needs to utilize a rea able method to distribute the additional torque to the four motors. At the same time speed feedback controller calculates the required drive torque of the vehicle. Vehicle m els, tire models, and power transmission models all use the models in TruckSim. T DOF vehicle reference model, adaptive fuzzy sliding mode controller, torque distribu controller, and other controller structures are designed with Simulink.

Adaptive Fuzzy Sliding Mode Controller
This article poses the AFSMC method to reduce the instability and disturbance o steering stability control system of the bus. Usually, the coefficient of the sliding m surface function cannot be changed after it is determined, and this means that the ve status parameters cannot follow the reference value well. Moreover, the traditional does not consider the weight factor between the sideslip angle and the yaw angle in ferent situations in real time, which makes it difficult to meet the actual needs. Co quently, this paper applies the AFSMC method to change the weight coefficient o coupling relationship between the sideslip angle and yaw rate adaptively to improv performance of the dynamic control system.

Sliding Mode Controller
The first step in designing a sliding mode controller is to determine the sliding m surface function. The choice of the sliding mode surface function is related to the accu of the control system. According to the actual needs, this paper designs the sliding m surface function as: where k1 and k2 are positive constants, k1 > 0, k2 > 0. e is the linear sum of the sideslip a error and yaw angle error, which is defined as the system tracking error: where φ is the yaw angle and φd is the desired yaw angle. λ represents the control w factor between the sideslip angle and yaw rate, 0 < λ < 1.
The first-order derivation and the second-order derivation of the system trackin ror e are obtained:

Adaptive Fuzzy Sliding Mode Controller
This article poses the AFSMC method to reduce the instability and disturbance of the steering stability control system of the bus. Usually, the coefficient of the sliding mode surface function cannot be changed after it is determined, and this means that the vehicle status parameters cannot follow the reference value well. Moreover, the traditional SMC does not consider the weight factor between the sideslip angle and the yaw angle in different situations in real time, which makes it difficult to meet the actual needs. Consequently, this paper applies the AFSMC method to change the weight coefficient of the coupling relationship between the sideslip angle and yaw rate adaptively to improve the performance of the dynamic control system.

Sliding Mode Controller
The first step in designing a sliding mode controller is to determine the sliding mode surface function. The choice of the sliding mode surface function is related to the accuracy of the control system. According to the actual needs, this paper designs the sliding mode surface function as: where k 1 and k 2 are positive constants, k 1 > 0, k 2 > 0. e is the linear sum of the sideslip angle error and yaw angle error, which is defined as the system tracking error: where ϕ is the yaw angle and ϕ d is the desired yaw angle. λ represents the control weight factor between the sideslip angle and yaw rate, 0 < λ < 1.
The first-order derivation and the second-order derivation of the system tracking error e are obtained: Thus, the derivative of the sliding mode surface function can be obtained as the following formula: Add the additional yaw moment M zc to the balance equation of the yaw motion of Equation (6): where P is expressed as: Substituting Equation (11) into Equation (10) and making Equation (10) equal to zero: To satisfy Equation (13), the equivalent control law of AFSMC is shown as: The selection principle of the approaching law is to make the system state points that ar far from the sliding mode surface have a larger approaching speed. As a result of this, the system can converge quickly. However, a too large approaching speed will cause the chattering problem in the system.
According to the empirical formula, the following formula is selected as the reaching law function: where η is thee positive constant, η > 0. The final control law of AFSMC can be obtained: The process of proving the stability of the control system based on the Lyapunov stability theory is as follows. According to the definition of the Lyapunov function: The formula is obtained by deriving it with respect to time: Substituting Equation (10) into Equation (18) and then substituting Equation (11) into: Substituting Equation (16) into Equation (19), finally the value is obtained: According to the above proof, the system state can eventually converge along the sliding mode surface, and the designed controller will eventually tend to be stable.

Fuzzy Controller
In this section, we utilize the designed sliding mode surface function to jointly control the sideslip angle and yaw rate. The weighting coefficients of e β and e ϕ are constant, which cannot meet the different requirements of the bus in the actual situation. The weight coefficient λ should be able to be adjusted adaptively according to the vehicle dynamics state. The sliding mode control system has high adaptability. Therefore, fuzzy control is adopted to adjust the weight coefficient λ.
Fuzzy control is a nonlinear control method without an accurate mathematical model. The fuzzy controller fuzzifies the input variables, and fuzzy reasoning is performed on the input variables after fuzzification through fuzzy control rules. Finally, the output variables are obtained after defuzzification processing. Figure 4 displays the structure diagram of the fuzzy controller.
According to the above proof, the system state can eventually converge along the sliding mode surface, and the designed controller will eventually tend to be stable.

Fuzzy Controller
In this section, we utilize the designed sliding mode surface function to jointly control the sideslip angle and yaw rate. The weighting coefficients of eβ and eφ are constant, which cannot meet the different requirements of the bus in the actual situation. The weight coefficient λ should be able to be adjusted adaptively according to the vehicle dynamics state. The sliding mode control system has high adaptability. Therefore, fuzzy control is adopted to adjust the weight coefficient λ.
Fuzzy control is a nonlinear control method without an accurate mathematical model. The fuzzy controller fuzzifies the input variables, and fuzzy reasoning is performed on the input variables after fuzzification through fuzzy control rules. Finally, the output variables are obtained after defuzzification processing. Figure 4 displays the structure diagram of the fuzzy controller. This section designs a fuzzy controller that takes the tracking error of the yaw angle and sideslip angle as the input variables and the weight coefficient λ as the output variable, and sets up five linguistic variables to describe the fuzzification process. They are NB (negative big), NS (negative small), ZO (zero), PS (positive small), and PB (positive big). The designed corresponding fuzzy rules are shown in Table 2. The quantitative domain of the input and output variables of the fuzzy control system are defined as follows: This section designs a fuzzy controller that takes the tracking error of the yaw angle and sideslip angle as the input variables and the weight coefficient λ as the output variable, and sets up five linguistic variables to describe the fuzzification process. They are NB (negative big), NS (negative small), ZO (zero), PS (positive small), and PB (positive big). The designed corresponding fuzzy rules are shown in Table 2. The quantitative domain of the input and output variables of the fuzzy control system are defined as follows: The three-dimensional surface of the fuzzy control output variables λ is shown in Figure 5. The three-dimensional surface of the fuzzy control output variables λ is shown in Figure 5.

Torque Distribution Controller
The additional yaw moment calculated by the AFSMC controller requires a reasonable distribution method. There is dynamic load transfer based on the longitudinal and lateral acceleration when the bus is driving, especially during turning. The maximum longitudinal force on the tire is directly related to the road adhesion coefficient and vertical force.
Therefore, this paper proposes a torque distribution strategy based on the dynamic load proportion in the vertical direction of the wheel. Tire vertical forces are not equal, and the greater the vertical force, the greater the required torque applied to the wheels, and vice versa. The longitudinal force obtained from the AFSMC controller can be distributed in light of the vertical load proportion of each wheel. Under the circumstances, the longitudinal force of each wheel can be effectively utilized.
Based on the statements, it can suppose that: where cl and cr are the ratio of the vertical load on the left and right wheel. Their definitions are as follows: The direct yaw moment and total longitudinal force of the vehicle are:

Torque Distribution Controller
The additional yaw moment calculated by the AFSMC controller requires a reasonable distribution method. There is dynamic load transfer based on the longitudinal and lateral acceleration when the bus is driving, especially during turning. The maximum longitudinal force on the tire is directly related to the road adhesion coefficient and vertical force. Therefore, this paper proposes a torque distribution strategy based on the dynamic load proportion in the vertical direction of the wheel. Tire vertical forces are not equal, and the greater the vertical force, the greater the required torque applied to the wheels, and vice versa. The longitudinal force obtained from the AFSMC controller can be distributed in light of the vertical load proportion of each wheel. Under the circumstances, the longitudinal force of each wheel can be effectively utilized.
Based on the statements, it can suppose that: where c l and c r are the ratio of the vertical load on the left and right wheel. Their definitions are as follows: The direct yaw moment and total longitudinal force of the vehicle are: Combined with Equations (21) and (23), we can obtain the longitudinal force of each wheel: Then, the additional torque of each wheel can be obtained multiplied by the wheel radius. Finally, the resulting values are imported into the TruckSim model.

Simulation Results and Discussions
In this section, joint simulation tests of TruckSim and Simulink are performed to verify the effectiveness of AFSMC under a variety of working conditions. Then, we compare the control effect of the AFSMC method with the traditional SMC method. The simulation conditions are: the bus is simulated and tested on flat land of 1 km 2 , regardless of the influence of air resistance, slope resistance, etc., and only the road friction resistance is considered. The bus initial speed v d is 80 km/h and the road adhesion coefficient µ is 0.85. The rolling resistance coefficient is 1. The simulation time is 10 s. The block diagram of the simulation test flow is shown in Figure 6.
Then, the additional torque of each wheel can be obtained multiplied by the wh radius. Finally, the resulting values are imported into the TruckSim model.

Simulation Results and Discussions
In this section, joint simulation tests of TruckSim and Simulink are performed to v ify the effectiveness of AFSMC under a variety of working conditions. Then, we comp the control effect of the AFSMC method with the traditional SMC method. The simulati conditions are: the bus is simulated and tested on flat land of 1 km 2 , regardless of influence of air resistance, slope resistance, etc., and only the road friction resistance considered. The bus initial speed vd is 80 km/h and the road adhesion coefficient μ is 0. The rolling resistance coefficient is 1. The simulation time is 10 s. The block diagram of simulation test flow is shown in Figure 6.

Step Response Test
The steering wheel angle is input in a step form at a certain vehicle speed. The sponse characteristics of the vehicle are evaluated with parameters, such as the yaw r and sideslip angle of the center of mass. Figure 7a shows that the steering wheel angle increases from 0 to 180 deg in 1 s. shown in Figure 7b, the value of the traditional SMC method shows many sudd changes. The value of the yaw moment changes drastically from the 2nd second to 3 second, increasing from 0 to around 40,000 Nm. This may be because the traditional SM method is sensitive to disturbances before reaching the sliding surface. When the vehi turns, a large transient abrupt change occurs. On the contrary, the AFSMC method do not have a sudden change. The change in the yaw moment is not so drastic and m stable from the second second to the third second. The AFSMC method is more conduc for the stability of the bus during the steering process.

Step Response Test
The steering wheel angle is input in a step form at a certain vehicle speed. The response characteristics of the vehicle are evaluated with parameters, such as the yaw rate and sideslip angle of the center of mass. Figure 7a shows that the steering wheel angle increases from 0 to 180 deg in 1 s. As shown in Figure 7b, the value of the traditional SMC method shows many sudden changes. The value of the yaw moment changes drastically from the 2nd second to 3rd second, increasing from 0 to around 40,000 Nm. This may be because the traditional SMC method is sensitive to disturbances before reaching the sliding surface. When the vehicle turns, a large transient abrupt change occurs. On the contrary, the AFSMC method does not have a sudden change. The change in the yaw moment is not so drastic and more stable from the second second to the third second. The AFSMC method is more conducive for the stability of the bus during the steering process.
The sideslip angle and yaw rate of the bus are shown in Figure 7c,d. Uncontrolled vehicles lose stability after the fifth second. The AFSMC method and the SMC method finally reach stability. The sideslip angle is maintained at about −3 deg, and the yaw rate is maintained at about 19 deg. The AFSMC method and SMC method achieve the control purpose. Compared with the SMC method, the AFSMC method has a faster response speed and achieves system stability earlier. The peak values of the yaw rate and sideslip angle are smaller. The peak values of the yaw rate and sideslip angle decreased by 8.62% and 20.90%, respectively, as shown in Table 3. They reflect the superiority of the proposed AFSMC method.
From the simulation results of the step response test, we conclude that the AFSMC method can improve the sudden change in the yaw moment during the steering process of the vehicle. It not only prevents the occurrence of dangerous situations, such as instability during vehicle steering, but also effectively reduces the peak value of the sideslip angle and yaw rate. and 20.90%, respectively, as shown in Table 3. They reflect the superiority of the proposed AFSMC method.
From the simulation results of the step response test, we conclude that the AFSMC method can improve the sudden change in the yaw moment during the steering process of the vehicle. It not only prevents the occurrence of dangerous situations, such as instability during vehicle steering, but also effectively reduces the peak value of the sideslip angle and yaw rate.

Sine Wave Response Test
The sine wave test is a commonly used test method to test the stability of the vehicle steering control system. As shown in Figure 8a, the steering wheel angle is the sine wave.
Comparing the additional yaw moment in Figure 8b, the SMC method has sudden changes in many places, for example, at the first second, third second, and fifth second. This may be because when the bus is turning, the motion state changes drastically. Once the traditional SMC is designed, the coefficient cannot be changed. The SMC method cannot adjust the switching gain in real time. It is very sensitive to changes, leading to multiple mutations. Although there is still a small amount of the chattering phenomenon of the additional yaw moment when the AFSMC method is adopted, the chattering amplitude is significantly reduced. Furthermore, the sudden change phenomenon basically disappears, and the yaw moment value changes more smoothly. methods, which is closer to the ideal value. The AFSMC method has a better control effect than the SMC method.
It can be concluded from the sine wave response test that the AFSMC method can reduce the peak value of the sideslip angle and yaw rate, which can be controlled within a relatively small value during the entire steering process. The sudden changes in the value of the yaw moment are also improved, which can reduce the impact on the motor and is beneficial to prolonging the life of the motor.

Fishhook Response Test
The fishhook response test is commonly used to test the stability of a vehicle. It is used to evaluate the safety in a rollover test. Figure 9a shows the steering wheel angle input.
The additional yaw moment obtained by the AFSMC and SMC methods is shown in Figure 9b. The SMC method has many numerical sudden changes. As opposed to this, the AFSMC method does not. Although the additional yaw moment utilizing the AFSMC method shows a chattering phenomenon from the 6th second to 10th second, the chattering amplitude of it is significantly reduced compared with the SMC method. The change in the additional yaw moment value of the AFSMC method is smoother from the beginning to the end. Since the system will adjust the weight coefficient according to the vehicle's motion state, when the instability trend is large, the follow-up control can be completed by actively adjusting the coefficient. Figure 9c shows that the sideslip angle of the bus can be limited between −4.71 and +3.51 deg using the AFSMC method. According to the curve in the figure, the uncontrolled vehicle lost stability and oversteered after the eighth second, causing the bus to deviate from the trajectory and even roll over. Although the SMC method also has a control effect, the peak value of the sideslip angle controlled by the AFSMC method decreased more significantly. As shown in Table 3, the peak value of the sideslip angle of the AFSMC method is 23.67% lower than that of the SMC method. We can conclude that the AFSM method has a better control effect than the SMC method in terms of the yaw rate in Figure  9d. Table 3 shows that the peak value of the yaw rate controlled by the AFSMC method is reduced by 9.28% compared to SMC. This method also has a better response speed compared to other methods.
It can be found from the fishhook response test that the proposed AFSMC strategy in this paper controls the value of the sideslip angle and yaw rate within a smaller range by As shown in Figure 8c, a bus using the AFSMC method can control the sideslip angle between −4.75 and +4.72 deg. Compared with the uncontrolled bus and SMC method, the dynamic performance is greatly improved. Although the SMC method also has a control effect, the peak value of the sideslip angle controlled by AFSMC is 12.75% lower than SMC shown in Table 3. As shown in Figure 8d, AFSMC has a better response speed. Moreover, Table 3 demonstrates that the peak value of the yaw rate is 6.89% smaller than the SMC methods, which is closer to the ideal value. The AFSMC method has a better control effect than the SMC method.
It can be concluded from the sine wave response test that the AFSMC method can reduce the peak value of the sideslip angle and yaw rate, which can be controlled within a relatively small value during the entire steering process. The sudden changes in the value of the yaw moment are also improved, which can reduce the impact on the motor and is beneficial to prolonging the life of the motor.

Fishhook Response Test
The fishhook response test is commonly used to test the stability of a vehicle. It is used to evaluate the safety in a rollover test. Figure 9a shows the steering wheel angle input.
The additional yaw moment obtained by the AFSMC and SMC methods is shown in Figure 9b. The SMC method has many numerical sudden changes. As opposed to this, the AFSMC method does not. Although the additional yaw moment utilizing the AFSMC method shows a chattering phenomenon from the 6th second to 10th second, the chattering amplitude of it is significantly reduced compared with the SMC method. The change in the additional yaw moment value of the AFSMC method is smoother from the beginning to the end. Since the system will adjust the weight coefficient according to the vehicle's motion state, when the instability trend is large, the follow-up control can be completed by actively adjusting the coefficient. The peak value of the sideslip angle and yaw rate obtained by the step test, the sine wave test, and the fishhook test were analyzed. The analysis results are shown in Figure  10. Compared with the SMC method, the peak values of the sideslip angle controlled by the AFSMC method are reduced by 20.90%, 12.75%, and 23.67%, respectively, under the three different simulation tests. The peak values of the yaw rate are reduced by 8.62%, 6.89%, and 9.28%, respectively. The peak values are reduced under different operating conditions, which shows the effectiveness of the proposed AFSMC method.  Figure 9c shows that the sideslip angle of the bus can be limited between −4.71 and +3.51 deg using the AFSMC method. According to the curve in the figure, the uncontrolled vehicle lost stability and oversteered after the eighth second, causing the bus to deviate from the trajectory and even roll over. Although the SMC method also has a control effect, the peak value of the sideslip angle controlled by the AFSMC method decreased more significantly. As shown in Table 3, the peak value of the sideslip angle of the AFSMC method is 23.67% lower than that of the SMC method. We can conclude that the AFSM method has a better control effect than the SMC method in terms of the yaw rate in Figure 9d. Table 3 shows that the peak value of the yaw rate controlled by the AFSMC method is reduced by 9.28% compared to SMC. This method also has a better response speed compared to other methods.
It can be found from the fishhook response test that the proposed AFSMC strategy in this paper controls the value of the sideslip angle and yaw rate within a smaller range by applying a more appropriate yaw moment. The number of sudden changes in the yaw moment value is also significantly reduced. The AFSMC method not only prevents the bus from turning over, but also improves the stability of the bus during the steering process compared to the SMC method. The peak value of the sideslip angle and yaw rate obtained by the step test, the sine wave test, and the fishhook test were analyzed. The analysis results are shown in Figure 10. Compared with the SMC method, the peak values of the sideslip angle controlled by the AFSMC method are reduced by 20.90%, 12.75%, and 23.67%, respectively, under the three different simulation tests. The peak values of the yaw rate are reduced by 8.62%, 6.89%, and 9.28%, respectively. The peak values are reduced under different operating conditions, which shows the effectiveness of the proposed AFSMC method.

Conclusions
This paper proposes an AFSMC method to perfect the driving stability of the bus, and the simulation results verified the effectiveness. The controller has a new sliding mode surface function, and adaptively controls its weight coefficients through the fuzzy algorithm. To distribute the additional yaw moment reasonably, the distribution method according to the vertical load proportion was adopted in this paper.
Through co-simulation analysis by TruckSim and Simulink, the simulation tests were implemented to verify the effectiveness of the proposed AFSMC method. The peak value of the sideslip angle controlled by the AFSMC method was 12.75~23.67% lower than that of the SMC method. The peak value of the yaw rate was 6.89~9.28% lower. At the same time, AFSMC also reduced the serious chattering problems that exist in traditional sliding mode control. Therefore, this method demonstrates a good control effect, which has considerable reference significance for the yaw stability control of a distributed drive electric bus.
The fuzzy rules and membership functions are completely based on experience. The accuracy of the system is not guaranteed. Hence, the weight coefficient of the sideslip angle and yaw rate is not accurate enough under extreme conditions, which is the key problem to be solved in the future work.

Conclusions
This paper proposes an AFSMC method to perfect the driving stability of the bus, and the simulation results verified the effectiveness. The controller has a new sliding mode surface function, and adaptively controls its weight coefficients through the fuzzy algorithm. To distribute the additional yaw moment reasonably, the distribution method according to the vertical load proportion was adopted in this paper.
Through co-simulation analysis by TruckSim and Simulink, the simulation tests were implemented to verify the effectiveness of the proposed AFSMC method. The peak value of the sideslip angle controlled by the AFSMC method was 12.75~23.67% lower than that of the SMC method. The peak value of the yaw rate was 6.89~9.28% lower. At the same time, AFSMC also reduced the serious chattering problems that exist in traditional sliding mode control. Therefore, this method demonstrates a good control effect, which has considerable reference significance for the yaw stability control of a distributed drive electric bus.
The fuzzy rules and membership functions are completely based on experience. The accuracy of the system is not guaranteed. Hence, the weight coefficient of the sideslip angle and yaw rate is not accurate enough under extreme conditions, which is the key problem to be solved in the future work.