To verify the effectiveness of the designed failure control strategy, this study uses both simulated software and hardware-in-the-loop simulation methods. The simulations are based on the most common driving conditions of vehicles such as straight-line driving and single-lane changing. The stability control effect of the vehicle is analyzed under various failure conditions, including complete and partial failures of a single motor, dual motors on the same axis, and dual motors on opposite sides of the vehicle.
3.1. Software-in-the-Loop Simulation Results
The software-in-the-loop simulation verification of the designed fault-tolerant control strategy for the distributed-drive system mainly includes the verification of the active fault diagnostic of the drive system and the verification of the fault-tolerant control strategy after identifying the failure. Since the simultaneous failure of the two motors on the same axis is an automatic change of the vehicle from four-wheel drive to two-wheel drive, it is not further verified here.
The actual output torque and the expected output torque of the drive motor shown in
Figure 5 are used as inputs to verify the effectiveness of the fault diagnostic. The results are shown in
Figure 8, which shows that in most cases, the value of
σ is greater than or equal to 0.95, and occasionally it is less than 0.95. However, due to the short duration, the motor can still operate normally, and the failure factor remains at 1, indicating that the motor is in a normal operating state. This verifies that the fault diagnosis has good robustness and can avoid misjudgments caused by torque losses due to temporary signal fluctuations.
Based on the actual torque output expectation collected from the wheel hub motor in
Figure 5, noise and fault signals are added to simulate the actual torque output of the motor, as shown in
Figure 9. At 4 s, the motor fails, and the drive motor is unable to provide the expected output torque for a long time. The fuzzy controller determines that it has failed, and based on the accumulated diagnosis results, analyzes that it has failed. Therefore, at 4.01 s, the fault diagnosis output result becomes 0, indicating that the motor has failed, as shown in
Figure 10. At the same time, when the fault diagnostic output indicates that the motor has failed, it is assumed that the motor may continue to fail in the future. To avoid further damage to the motor caused by frequent failures in the future, the diagnostic result is locked and the power output of the motor is turned off.
To verify the control effect when a single motor fails, verification was conducted separately for the straight-line driving condition and the single-lateral-lane-shift driving condition. The simulation control group did not deal with the failure situation. The parameters of the two simulation conditions are shown in
Table 3. The left front wheel drive motor failed, and the fault factor is shown in
Figure 11. A brief torque loss occurred at 0.5 s, and the motor failed for a long time after 1 s.
In the straight-line driving condition, the steering wheel angle remains unchanged at 0°, and the simulation stops at a longitudinal displacement of 200 m. The simulation results are shown in
Figure 12. In
Figure 12a, the final speed of the optimized control group at the end of the simulation is 59.21 km/h, while that of the uncontrolled group is 58.38 km/h. By reconstructing the torque of the normal working motor, the driving force lost by the failed motor can be compensated. Therefore, the final speed of the optimized control group is higher, as shown in
Figure 12c, while the uncontrolled group in
Figure 12d maintains its original torque output.
Figure 12b shows that reconstructing the torque can keep the vehicle in a straight line, with a maximum lateral offset of 0.1 m, while the maximum lateral offset of the uncontrolled vehicle has reached 5.98 m, significantly deviating from the expected straight-line trajectory.
Figure 12e shows the deviation in the yaw rate between the two groups of vehicles under the current simulation conditions, which is within a small range. The stability performance of both groups of vehicles is good. Since the control strategy proposed in this paper is more focused on tracking the yaw rate within the stable region, the average deviation in the optimized control group’s yaw rate is 0.0002 rad/s, while that of the uncontrolled group is 0.0047 rad/s. The optimized control group’s tracking of the yaw rate is more accurate.
The steering wheel angle in the single-lane-shift condition is shown in
Figure 13:
The simulation results of the single-motor failure single-lane-shift condition are shown in
Figure 14. From
Figure 14a, it can be seen that the final speed of the optimized control group is 50.55 km/h, while that of the uncontrolled group is 50.27 km/h. Both groups of vehicles can maintain their speed almost unchanged during the driving process. In
Figure 14b, the maximum lateral offset of the optimized control group during the single-lane-shift process is 0.67 m compared to the normal driving, which can keep the expected trajectory of the single-lane shift, while that of the uncontrolled group is 1.01 m, and the trajectory has already deviated from the expected single-lane-shift trajectory. The lateral deviation will gradually increase with time.
Figure 14c,d show the torque output of each wheel of the two groups of vehicles. The optimized control group detects the failure of the left front motor, isolates and shuts off its power output, and adjusts the torque of the remaining motors to ensure driving stability.
Figure 14e shows the deviation in the yaw rate of the two groups of vehicles during driving, with an average value of 0.016 rad/s for the optimized control group and 0.022 rad/s for the uncontrolled group. Adopting failure control can improve the yaw stability of the vehicle during turning.
The effectiveness of the failure control strategy for double-motor failure with different axles and sides is verified, where the failed motors are the left front wheel motor and the right rear wheel motor. The simulation results of the straight-line driving condition are shown in
Figure 15. From
Figure 15a, it can be seen that the final speed of the optimized control group is 60.31 km/h, while that of the uncontrolled group is 54.63 km/h, because two motors have failed, the uncontrolled group has lost a significant amount of power, and the optimized control group can compensate for the lost driving force by the normal working motors, thus achieving a higher final speed. In
Figure 15b, the maximum lateral offset of the optimized control group is 0.02 m, while that of the uncontrolled group is 2.11 m, indicating that reconstructing the torque can keep the vehicle in a straight line, while the uncontrolled vehicle will have a much larger lateral deviation. However, due to the normal working of the remaining motors, a certain lateral force moment will still be generated, resulting in a relatively smaller lateral deviation compared to the case of single-motor failure.
Figure 15e shows the deviation in the yaw rate of the two groups of vehicles, with an average deviation of 0.0001 rad/s for the optimized control group and 0.0016 rad/s for the uncontrolled group, similar to the performance with single-motor failure. The optimized control group can better track the expected yaw rate, and both groups of vehicles are within the stable region.
To make the comparison more obvious, the duration of the single-lane-shift condition simulation is set to 20 s, and the simulation results are shown in
Figure 16. From
Figure 16a, it can be seen that the final speed of the optimized control group is 52.24 km/h, while that of the uncontrolled group is 48.38 km/h. Similar to the straight-line driving condition, the uncontrolled group will lose some power, and the optimized control group can meet the driver’s power demand. In
Figure 16b, the lateral deviation in the optimized control group compared to normal driving during the driving process is 0.52 m, which can maintain the expected single-lane-shift trajectory, while that of the uncontrolled group is 1.84 m, and the trajectory has already deviated from the expected single-lane-shift trajectory. The lateral deviation will gradually increase with time.
Figure 16c,d show the torque output of each wheel of the two groups of vehicles. The optimized control group adjusts the torque of the other two normal working motors on the diagonal to improve driving stability.
Figure 16e shows the deviation in the yaw rate of the two groups of vehicles during driving, with an average value of 0.0083 rad/s for the optimized control group and 0.01 rad/s for the uncontrolled group. Adopting failure control can improve the yaw stability of the vehicle during turning.
The simulation results for the two failure modes under straight-line driving and single-lane-shift driving conditions are presented in
Table 4. This failure control strategy effectively diagnoses the occurrence of failures, exhibits robust performance, and successfully isolates the failed motors while reconstructing the torque of the remaining motors based on the specific failure mode, ensuring both driving stability and power demand.
3.2. Hardware-in-the-Loop Simulation Results
To further verify the effectiveness of the failure control strategy in an actual vehicle control unit (VCU), HIL testing was conducted. In this paper, a hardware-in-the-loop simulation platform based on NI PXI and CARSIM RT was constructed, as shown in
Figure 17. The platform is seamlessly integrated with the Simulink control model in SIL for co-simulation. It consists of three main parts: the host computer, the tested VCU hardware, and the industrial PC cabinet equipped with real-time processors and digital-to-analog input and output boards.
Due to the inconsistency between the simulation cycle and the communication cycle of HIL testing, the threshold for fault determination needs to be adjusted during HIL testing to adapt to the actual controller. The minimum sampling period of the constructed HIL testing platform was recorded as 10 ms. Therefore, the judgment period was set to 100 ms. If the number of times when σ was less than 0.95 during the judgment period exceeded eight, it was determined that the drive motor had failed and isolation processing was needed.
The actual output torque of the drive motor shown in
Figure 5 and the expected output torque were used as inputs to the fault diagnostic tool for HIL testing, as shown in
Figure 9. The test result is shown in
Figure 18.
Figure 18a is the output
σ of the designed fault diagnostic tool, while
Figure 18b always outputs
kl = 1, indicating that the motor is in normal working condition. The HIL test results have demonstrated that the designed fault diagnostic tool has good robustness which can avoid misjudgment caused by torque loss due to transient signal fluctuations. For
Figure 18c,d, when the motor fails at 4 s, the drive motor cannot provide the expected output torque for a long time. The fuzzy controller determines that the motor has failed, and based on the cumulative judgment result, the fault diagnostic output results indicate that it has failed at 4.08 s. This is consistent with the simulation results. The HIL test results have demonstrated that the designed fault diagnostic tool can still diagnose whether the motor has failed in a timely and accurate manner in actual controllers. Compared with the simulation results, the influence of signal fluctuations is reduced due to the different sampling frequencies of the controller and the CAN communication frequency, which is the reason why the threshold needs to be adjusted according to the sampling frequency of the controller and the CAN communication frequency.
To verify the consistency between HIL testing and the simulation results, the test was conducted using the operating conditions in
Table 3. The HIL test under the condition of a single-motor failure in straight-line driving is shown in
Figure 19. The results of the HIL test are consistent with the simulation results; when the lateral angular velocity deviation is in a small range in a stable situation, the average value of the lateral angular velocity deviation optimized by the control group is 0.0005 rad/s, while that of the uncontrolled group is 0.0047 rad/s. The control group can track the lateral angular velocity more accurately. By reconstructing the torque of the non-failed motor, the expected power of the driver can be guaranteed, and the final speed of the optimized control group is higher than that of the uncontrolled group. At the same time, adopting failure control can ensure that the vehicle travels along the expected straight trajectory, with a maximum lateral deviation of 0.01 m, whereas the maximum lateral deviation of the uncontrolled vehicle is 5.99 m.
The simulation of a single-motor failure in a single-lane-shift condition is shown in
Figure 20. Both groups of vehicles can maintain a speed of around 50 km/h, but the trajectory of the uncontrolled vehicle gradually deviates from the expected single-lane-shift trajectory, while the optimized control group can continue to travel on the expected trajectory through adjustment of the torque of each wheel.
Figure 20e shows the lateral angular velocity deviation of the two groups of vehicles while driving. The average value of the optimized control group is 0.016 rad/s, while that of the uncontrolled group is 0.022 rad/s. Compared with the uncontrolled group, the optimized control group can reduce the deviation from the expected lateral angular velocity and improve the stability during turning, which is consistent with the simulation results.
The simulation of a straight-line driving condition with dual-motor failure on opposite sides is shown in
Figure 21. In
Figure 21a, the final speed of the optimized control group is 60.32 km/h, while that of the uncontrolled group is 54.64 km/h. The optimized control group can maintain the expected power. It can be seen from
Figure 21b that the maximum lateral deviation of the optimized control group is 0.072 m, which is slightly increased compared to the simulation results, but it can still prevent the vehicle from running off the road. The maximum lateral deviation of the uncontrolled group is 2.111 m, and the vehicle gradually deviates from the straight-line-driving trajectory. Both groups of vehicles are stable. The average lateral angular velocity deviation of the optimized control group is 0.0002 rad/s, while that of the uncontrolled group is 0.0016 rad/s. The lateral angular velocity deviation is improved compared to the uncontrolled group.
The simulation of a single-lane-shift working condition with dual motor failure on opposite sides is shown in
Figure 22. Similar to the straight-line driving condition in
Figure 22a, the uncontrolled group will lose some power and the vehicle speed gradually decreases. The final speed is 48.38 km/h, while the optimized control group can meet the driver’s power requirements, and the final speed is 52.27 km/h. In
Figure 22b, the optimized control group can still maintain the expected single-lane-shift trajectory, while the trajectory of the uncontrolled group vehicle has deviated. With time, it will gradually deviate from the expected trajectory.
Figure 22e shows the lateral angular velocity deviation of the two groups of vehicles while driving. Both groups of vehicles are in a stable operating region. Due to the two normal working motors on both sides, the uncontrolled group can provide some additional lateral torque, which makes it more stable compared to the single motor failure condition. The average lateral angular velocity deviation of the optimized control group is 0.0082 rad/s, while that of the uncontrolled group is 0.01 rad/s. Adopting failure control can improve the driving stability after dual-motor failure on opposite sides, and the lateral angular velocity deviation is smaller, which is consistent with the simulation results.
The hardware-in-the-loop (HIL) test results for the two failure modes in the respective working conditions are presented in
Table 5. These results are consistent with the simulation findings, validating the efficacy of the proposed failure control strategy for the distributed-four-wheel-drive system. The strategy can effectively diagnose drive-system faults in the actual VCU. It can also isolate the faulty motor according to the failure condition and restructure the torque of the remaining non-faulty motors, thus improving the driving stability of the vehicle, maintaining the expected power, and enabling the vehicle to follow the intended driving trajectory.