Fault tolerance time interval determination method, device, vehicle and storage medium
By determining the vehicle model and operating status data, configuring simulation tests and building a PID controller, the problem that the vehicle system cannot accurately calculate the fault tolerance time interval is solved, a fast and accurate fault tolerance time interval solution is achieved, and the vehicle controller is provided with Maximum hazard mitigation time improves driver safety.
Patent Information
- Application Number
- CN202211336991.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-28
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-10-28
AI Technical Summary
Existing vehicle systems cannot accurately and effectively calculate fault tolerance time intervals, resulting in vehicles being unable to resolve hazardous events in a timely and effective manner, affecting driver safety.
By determining the vehicle type and operating status data that match the actual vehicle, the current vehicle is configured, and the preset simulation strategy is used for simulation testing, and the detection distance and detection time data of the laser sensor are intercepted to determine the fault tolerance time interval. This method includes building a PID controller and unexpected acceleration driving mode, adjusting the simulation acceleration to match the actual vehicle acceleration to ensure the accuracy of the simulation output.
It achieves fast and accurate solution of the fault tolerance time interval, provides the controller with the maximum hazard mitigation theoretical time, ensures that the vehicle can promptly and effectively adopt risk mitigation strategies when hazard events occur, and improves driver safety.
Smart Images

Figure CN115629555B
Abstract
Description
Technical Field
[0001] The present application relates to the field of functional safety technology of vehicles, and in particular to a method, device, vehicle and storage medium for determining a fault-tolerant time interval. Background Art
[0002] According to GB / T34590, it is translated as the fault tolerance time interval, that is, the time interval that the system failure can exist before the harmful event occurs. Figure 1 As shown in the overall time division framework, it can be seen that FTTI is divided into two parts: fault detection time and fault response time.
[0003] However, the current vehicle system is unable to accurately and effectively calculate the vehicle fault tolerance time interval, resulting in the vehicle controller being unable to effectively resolve the hazard in a timely manner, posing a threat to the driver's safety. Summary of the invention
[0004] The present application provides a method, device, vehicle and storage medium for determining a fault-tolerant time interval, which solves the problem that before a hazardous event occurs in the vehicle, the system is unable to accurately and effectively calculate the vehicle's fault-tolerant time interval, resulting in the vehicle being unable to promptly and effectively resolve the hazard. The application can quickly and accurately solve the fault-tolerant time interval, and provide the maximum theoretical time for resolving the hazard for the controller to execute the risk resolution strategy.
[0005] The first aspect of the present application provides a method for determining a fault-tolerant time interval, comprising the following steps: determining a vehicle model, body data, and operating status data that match an actual vehicle; configuring a current vehicle according to the vehicle model, body data, and operating status data that match the actual vehicle, and compiling a target scenario condition according to the current vehicle, a preset plurality of target vehicles, a road sensor, a laser sensor, and planning parameters of each target vehicle to obtain a .slx file; configuring the .slx file, and based on the configured .slx file, performing a simulation test on the current vehicle using a preset simulation strategy, and when the simulation test meets a preset end condition, intercepting the time from when the current vehicle switches to an unexpected acceleration driving mode to when the detection distance is 0 from the detection distance and detection time data of the laser sensor, and using the time as the fault-tolerant time interval.
[0006] According to the above technical means, the fault tolerance time interval can be solved quickly and accurately, providing the maximum hazard mitigation theoretical time for the controller to execute the risk mitigation strategy.
[0007] Furthermore, the simulation test of the current vehicle using a preset simulation strategy includes: controlling the current vehicle, the first target vehicle in front of the current vehicle, and the second target vehicle on the left side of the current vehicle to travel in accordance with a preset following driving mode; when the second target vehicle travels to the target position, controlling the second target vehicle to change lanes according to a single lane change to cut out to the lane where the current vehicle is located, and during the lane changing process of the second target vehicle, when it is detected that the lateral coordinate of the right front wheel of the second target vehicle is a preset value, controlling the current vehicle to switch to the unexpected acceleration driving mode.
[0008] According to the above technical means, a simulation test is performed on the current vehicle through a preset simulation strategy, so that the current vehicle enters the target state, so that when the preset conditions are met later, the fault response time interval can be calculated more accurately.
[0009] Furthermore, the preset end condition is that the current vehicle collides with the second target vehicle.
[0010] According to the above technical means, the time from the unexpected acceleration of the vehicle to the moment when the distance between the two vehicles is detected to be 0m is the fault detection time interval.
[0011] Furthermore, configuring the .slx file includes: obtaining the lateral coordinate of the right front wheel of the cut-out vehicle according to a plurality of preset coordinates and a yaw angle of the cut-out vehicle; and building the PID controller of the current vehicle and the unexpected acceleration driving mode based on the .slx file.
[0012] According to the above technical means, PID control has the advantages of simple structure, stable operation and convenient parameter adjustment. Here, PID control is used to build a double closed-loop PID control algorithm.
[0013] Furthermore, the vehicle body data includes at least one of vehicle-level parameters, power system parameters, transmission system parameters and tire parameters; the operating status data includes at least one of accelerator pedal opening, longitudinal acceleration, front motor speed and rear motor speed.
[0014] According to the above technical means, by obtaining the vehicle model, body data and operating status data matching the actual vehicle, the simulation output results are made more accurate.
[0015] Furthermore, after determining the vehicle model, the vehicle body data and the operating status data that match the actual vehicle, it also includes: determining the simulation acceleration according to the accelerator pedal opening; based on the preset first adjustment strategy, adjusting the curve of the simulation drive motor over time in the simulation system to the target state, adjusting the simulation acceleration according to the preset second adjustment strategy so that the simulation acceleration is equal to the actual vehicle acceleration, wherein the preset first adjustment strategy is: before the simulation acceleration reaches the maximum value of the simulation acceleration, if the simulation drive motor has a burr jitter phenomenon, then the slip rate in the relationship between the tire longitudinal force and the slip rate under different loads is increased according to a first preset increase multiple; within a preset interval, if the speed of the front simulation drive motor in the simulation drive motor is greater than the speed of the rear simulation drive motor, then the slip rate in the relationship between the tire longitudinal force and the slip rate under different loads is increased according to a second preset increase multiple; the step sizes of the front simulation drive motor and the rear simulation drive motor are equal, and within a preset time after the simulation acceleration reaches the maximum value of the simulation acceleration, if the simulation drive motor has a burr jitter phenomenon, then the slip rate in the relationship between the tire longitudinal force and the slip rate under different loads is increased according to a second preset increase multiple. , the slip rate in the relationship between the longitudinal force of the tire and the slip rate is reduced according to a first preset reduction multiple; the preset second adjustment strategy is: if the simulated acceleration is less than the actual vehicle acceleration, the operating parameters of the simulated drive motor are adjusted so that the simulated acceleration is equal to the actual vehicle acceleration; if the maximum value of the simulated acceleration is less than the maximum value of the actual vehicle acceleration, the torque of the preset speed range in the torque-speed curve of the simulated drive motor is adjusted according to a preset increase strategy; if the inflection point of the simulated acceleration is inconsistent with the inflection point of the actual vehicle acceleration, the simulated acceleration is adjusted according to the preset increase strategy. The rotation speed of the simulated drive motor is adjusted according to the causal relationship between the inflection point of the acceleration and the inflection point of the actual vehicle acceleration; if the simulated acceleration between the inflection point of the simulated acceleration and the inflection point of the actual vehicle acceleration is less than the actual vehicle acceleration, then the initial moment when the simulated acceleration is less than the actual vehicle acceleration is first determined, and the simulated motor rotation speed corresponding to the initial moment is adjusted based on a preset torque increase strategy; otherwise, the initial moment when the simulated acceleration is greater than the actual vehicle acceleration is first determined, and the simulated motor rotation speed corresponding to the initial moment is adjusted based on a preset torque reduction strategy.
[0016] According to the above technical means, it is ensured that the acceleration output by the simulation is basically consistent with the acceleration of the actual vehicle, thereby improving the accuracy of the fault tolerance time interval result.
[0017] The second aspect of the present application provides a fault-tolerant time interval determination device, including: a determination module, used to determine a vehicle model, body data and operating status data that matches an actual vehicle; a compilation module, used to configure a current vehicle according to the vehicle model, body data and operating status data that matches the actual vehicle, and compile a target scenario condition according to the current vehicle, a preset plurality of target vehicles, a road sensor, a laser sensor and planning parameters of each target vehicle to obtain a .slx file; a testing module, used to configure the .slx file, and based on the configured .slx file, perform a simulation test on the current vehicle using a preset simulation strategy, and when the simulation test meets a preset end condition, the time from when the current vehicle switches to an unexpected acceleration driving mode to when the detection distance is 0 is intercepted from the detection distance and detection time data of the laser sensor, and the time is used as the fault-tolerant time interval.
[0018] Furthermore, the test module is specifically used to: control the current vehicle, the first target vehicle in front of the current vehicle, and the second target vehicle on the left side of the current vehicle to travel in accordance with a preset following driving mode; when the second target vehicle travels to the target position, control the second target vehicle to change lanes according to a single lane change to cut out of the lane where the current vehicle is located, and during the lane changing process of the second target vehicle, when it is detected that the lateral coordinate of the right front wheel of the second target vehicle is a preset value, control the current vehicle to switch to the unexpected acceleration driving mode.
[0019] Furthermore, the preset end condition is that the current vehicle collides with the second target vehicle.
[0020] Furthermore, the test module is also used to: obtain the lateral coordinate of the right front wheel of the cut-out vehicle according to multiple preset coordinates and yaw angles of the cut-out vehicle; and build the PID controller of the current vehicle and the unexpected acceleration driving mode based on the .slx file.
[0021] Furthermore, the vehicle body data includes at least one of vehicle-level parameters, power system parameters, transmission system parameters and tire parameters; the operating status data includes at least one of accelerator pedal opening, longitudinal acceleration, front motor speed and rear motor speed.
[0022] Furthermore, after determining the vehicle model, the vehicle body data and the operating status data that match the actual vehicle, the determination module is also used to: determine the simulated acceleration according to the accelerator pedal opening; based on a preset first adjustment strategy, adjust the curve of the simulated drive motor in the simulation system over time to a target state, and then adjust the simulated acceleration according to a preset second adjustment strategy so that the simulated acceleration is equal to the actual vehicle acceleration, wherein the preset first adjustment strategy is: before the simulated acceleration reaches the maximum value of the simulated acceleration, if the simulated drive motor has burr jitter, then The slip rate in the relationship between the longitudinal force of the tire and the slip rate under different loads is increased according to a first preset increase multiple; within a preset interval, if the rotation speed of the front simulation drive motor in the simulation drive motor is greater than the rotation speed of the rear simulation drive motor, the slip rate in the relationship between the longitudinal force of the tire and the slip rate under the different loads is increased according to a second preset increase multiple; within a preset time after the step sizes of the front simulation drive motor and the rear simulation drive motor are equal and the simulation acceleration reaches the maximum value of the simulation acceleration, if the simulation drive motor has burr jitter phenomenon, the different Under load, the slip rate in the relationship between the longitudinal force of the tire and the slip rate is reduced according to a first preset reduction multiple; the preset second adjustment strategy is: if the simulated acceleration is less than the actual vehicle acceleration, the operating parameters of the simulated drive motor are adjusted so that the simulated acceleration is equal to the actual vehicle acceleration; if the maximum value of the simulated acceleration is less than the maximum value of the actual vehicle acceleration, the torque in the preset speed range in the torque-speed curve of the simulated drive motor is adjusted according to a preset increase strategy; if the inflection point of the simulated acceleration is inconsistent with the inflection point of the actual vehicle acceleration, the simulated acceleration is adjusted according to the preset increase strategy. The rotation speed of the simulated drive motor is adjusted according to the causal relationship between the inflection point of the true acceleration and the inflection point of the actual vehicle acceleration; if the simulated acceleration between the inflection point of the simulated acceleration and the inflection point of the actual vehicle acceleration is less than the actual vehicle acceleration, then the initial moment when the simulated acceleration is less than the actual vehicle acceleration is first determined, and the simulated motor rotation speed corresponding to the initial moment is adjusted based on a preset torque increase strategy; otherwise, the initial moment when the simulated acceleration is greater than the actual vehicle acceleration is first determined, and the simulated motor rotation speed corresponding to the initial moment is adjusted based on a preset torque reduction strategy.
[0023] A third aspect of the present application provides a vehicle, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method for determining the fault-tolerant time interval as described in the above embodiment.
[0024] The fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which is executed by a processor to implement the method for determining the fault-tolerant time interval as described in the above embodiment.
[0025] Therefore, the present application configures the current vehicle according to the vehicle model, body data and running status data that match the actual vehicle, and compiles the target scenario conditions according to the current vehicle, multiple preset target vehicles, road sensors, laser sensors and planning parameters of each target vehicle, obtains the .slx file, configures the .slx file, and based on the configured .slx file, uses the preset simulation strategy to simulate the current vehicle. When the simulation test meets the preset end conditions, the time from the current vehicle switching to the unexpected acceleration driving mode to the detection distance being 0 is intercepted from the detection distance and detection time data of the laser sensor, and the time is used as the fault tolerance time interval. Thus, the problem that the system cannot accurately and effectively calculate the vehicle fault tolerance time interval before a hazardous event occurs in the vehicle, resulting in the vehicle being unable to effectively and timely resolve the hazard, etc., can be solved quickly and accurately to solve the fault tolerance time interval, and provide the maximum theoretical time for the controller to execute the risk resolution strategy.
[0026] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0028] Figure 1 A flowchart of a method for determining a fault tolerance time interval provided according to an embodiment of the present application;
[0029] Figure 2 A schematic diagram of a time division framework of a fault tolerance time interval according to an embodiment of the present application;
[0030] Figure 3 A schematic diagram of a method for determining a fault tolerance time interval according to an embodiment of the present application;
[0031] Figure 4 is a schematic diagram of the relationship between the rotation speeds of the front and rear motors and time according to an embodiment of the present application;
[0032] Figure 5 A schematic diagram showing a comparison between the relationship between time and acceleration in a real vehicle mode and the relationship between time and acceleration in a simulation mode according to an embodiment of the present application;
[0033] Figure 6A schematic diagram showing a comparison between the relationship between time and speed in a real vehicle mode and the relationship between time and speed in a simulation mode according to an embodiment of the present application;
[0034] Figure 7 A schematic diagram of deriving the lateral y1 coordinate of the right front wheel of a target vehicle according to an embodiment of the present application;
[0035] Figure 8 A schematic diagram of the principle of a vehicle following controller according to an embodiment of the present application;
[0036] Fig. 9 A block diagram of a device for determining a fault tolerance time interval according to an embodiment of the present application;
[0037] Fig.10 It is a schematic diagram of the structure of a vehicle according to an embodiment of the present application.
[0038] Explanation of the reference numerals: 10 - fault-tolerant time interval determination device, 100 - determination module, 200 - compilation module, 300 - testing module, 1001 - memory, 1002 - processor, 1003 - communication interface. DETAILED DESCRIPTION
[0039] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0040] The following describes the fault tolerance time interval determination method, device, vehicle and storage medium of the embodiment of the present application with reference to the accompanying drawings. In view of the problem mentioned in the above background technology that before a hazardous event occurs in the vehicle, the system cannot accurately and effectively calculate the vehicle fault tolerance time interval, resulting in the vehicle being unable to timely and effectively resolve the hazard, the present application provides a fault tolerance time interval determination method, in which the vehicle model, body data and running status data matching the actual vehicle are determined; the current vehicle is configured according to the vehicle model, body data and running status data matching the actual vehicle, and the target scene working condition is compiled according to the current vehicle, multiple preset target vehicles, road sensors, laser sensors and planning parameters of each target vehicle to obtain a .slx file; the .slx file is configured, and based on the configured .slx file, the current vehicle is simulated and tested using a preset simulation strategy, and when the simulation test meets the preset end condition, the time from the current vehicle switching to the unexpected acceleration driving mode to the detection distance being 0 is intercepted from the detection distance and detection time data of the laser sensor, and the time is used as the fault tolerance time interval. This solves the problem that before a hazardous event occurs, the system is unable to accurately and effectively calculate the vehicle's fault tolerance time interval, resulting in the vehicle being unable to promptly and effectively resolve the hazard. It can quickly and accurately solve the fault tolerance time interval and provide the maximum theoretical time for the controller to execute the risk mitigation strategy.
[0041] Specifically, Figure 1 A flowchart of a method for determining a fault-tolerant time interval provided in an embodiment of the present application.
[0042] like Figure 1 As shown, the method for determining the fault tolerance time interval includes the following steps:
[0043] In step S101, the vehicle model, body data and operating status data matching the actual vehicle are determined.
[0044] Optionally, in some embodiments, the body data includes at least one of vehicle-level parameters, power system parameters, transmission system parameters and tire parameters; the operating status data includes at least one of accelerator pedal opening, longitudinal acceleration, front motor speed and rear motor speed.
[0045] Specifically, Figure 3 As shown, the embodiment of the present application selects a vehicle model that matches the actual vehicle in the dynamics software Carsim, such as a sedan, SUV (Off-Road Vehicle, sport utility vehicle), etc., and inputs the available actual vehicle body data into Carism, including vehicle-level parameters, power system parameters, transmission system parameters, and tire parameters. The default Carsim model is selected for the parameters that cannot be obtained.
[0046] Among them, the vehicle-level parameters include: curb weight, front axle unsprung mass, rear axle unsprung mass, left front wheel load, right front wheel load, left rear wheel load, right rear wheel load, wheelbase, front wheel track, rear wheel track, vehicle length, vehicle width, vehicle height, vehicle center of mass height, wheel moment of inertia, moment of inertia of vehicle mass, inertia product of vehicle mass, equivalent point of action of aerodynamics in vehicle coordinate system, equivalent frontal area, equivalent vehicle length, air density, aerodynamic coefficient, etc.; power system parameters include: maximum motor power, maximum torque, motor layout, motor moment of inertia, damping, Stiffness, delay time, motor torque and motor speed curve, efficiency and motor speed and motor output torque curve, pedal opening and vehicle speed and torque relationship curve, etc.; transmission system parameters include: front main reducer transmission ratio, rear main reducer transmission ratio, stiffness, damping, input shaft moment of inertia, left half shaft moment of inertia, right half shaft moment of inertia, transmission efficiency, etc.; braking system parameters include: brake transmission delay, pedal transmission ratio, master cylinder diameter, master cylinder decompression hysteresis time, master cylinder boost hysteresis time, braking torque distribution ratio (master cylinder & wheel cylinder), braking torque and wheel cylinder pressure relationship, wheel cylinder pressure and braking torque relationship , the relationship between brake pressure and brake cylinder volume, etc.; steering system parameters include: steering column inertia, steering system inertia, steering column damping, steering column hysteresis, hysteresis angle, kingpin shaft lateral offset, kingpin inclination angle, kingpin shaft longitudinal offset, kingpin caster angle, steering gear ratio, steering system damping, steering system friction (hysteresis), steering hysteresis length, torsion bar stiffness, steering system C characteristic curve, etc.; front suspension parameters include: front axle unsprung mass, friction steering coefficient, tire rotational inertia, front wheel track, suspension center lateral offset, wheel camber angle, wheel toe angle, wheel hop when static load, etc.; rear suspension parameters include: Including: unsprung mass of rear axle, friction steering coefficient, tire moment of inertia, rear wheel track, lateral offset of suspension center, wheel camber angle, wheel hop under static load, etc.; tire parameters include: tire model, tire reference vertical force, tire equivalent rolling radius, free radius, equivalent spring stiffness, maximum vertical load, rolling resistance coefficient, rolling resistance coefficient related to speed, tire width, 1 / 3 of the tire rolling distance required to establish longitudinal force, 1 / 3 of the tire rolling distance required to establish lateral force / righting torque, minimum speed limit, tire contact patch length, tire contact patch width, longitudinal force-slip ratio Fx-slip ratio, lateral force-sideslip angle Fy-slipangle, righting torque-sideslip angle Mz-slip angle, Camber thrust coefficient-Vertical load, etc.
[0047] Furthermore, the input variable of Carsim is defined as the accelerator pedal opening IMP_THROTTLE_ENGINE, and the output variables of the actual vehicle are defined as the longitudinal acceleration Ax, the front motor speed AV_MT_D1, and the rear motor speed AV_MT_D2. They are then debugged together with Matlab to facilitate the observation of Carsim input and output data and parameter modification. The accelerator pedal opening IMP_THROTTLE_ENGINE of the Carsim module of Matlab\Simulink is set to the maximum stroke opening, and the acceleration output by the Carsim simulation is compared with the acceleration of the actual vehicle.
[0048] Furthermore, after determining the vehicle model, vehicle body data and operating status data that match the actual vehicle, it also includes: determining the simulation acceleration according to the accelerator pedal opening; based on the preset first adjustment strategy, adjusting the curve of the simulation drive motor over time in the simulation system to the target state, and then adjusting the simulation acceleration according to the preset second adjustment strategy so that the simulation acceleration is equal to the actual vehicle acceleration, wherein the preset first adjustment strategy is; before the simulation acceleration reaches the maximum value of the simulation acceleration, if the simulation drive motor has a burr jitter phenomenon, then the slip rate in the relationship between the tire longitudinal force and the slip rate under different loads is increased according to a first preset increase multiple; within a preset interval, if the speed of the front simulation drive motor in the simulation drive motor is greater than the speed of the rear simulation drive motor, then the slip rate in the relationship between the tire longitudinal force and the slip rate under different loads is increased according to a second preset increase multiple; when the step sizes of the front simulation drive motor and the rear simulation drive motor are equal, and within a preset time after the simulation acceleration reaches the maximum value of the simulation acceleration, if the simulation drive motor has a burr jitter phenomenon, The slip rate in the relationship between the longitudinal force of the tire and the slip rate under different loads is reduced according to the first preset reduction multiple; the preset second adjustment strategy is: if the simulated acceleration is less than the actual vehicle acceleration, the operating parameters of the simulated drive motor are adjusted so that the simulated acceleration is equal to the actual vehicle acceleration; if the maximum value of the simulated acceleration is less than the maximum value of the actual vehicle acceleration, the torque in the preset speed range in the torque-speed curve of the simulated drive motor is adjusted according to the preset increase strategy; if the inflection point of the simulated acceleration is inconsistent with the inflection point of the actual vehicle acceleration, the speed of the simulated drive motor is adjusted according to the anteroposterior relationship between the inflection point of the simulated acceleration and the inflection point of the actual vehicle acceleration; if the simulated acceleration between the inflection point of the simulated acceleration and the inflection point of the actual vehicle acceleration is less than the actual vehicle acceleration, the initial moment when the simulated acceleration is less than the actual vehicle acceleration is first determined, and the simulated motor speed corresponding to the initial moment is adjusted based on the preset torque increase strategy; otherwise, the initial moment when the simulated acceleration is greater than the actual vehicle acceleration is first determined, and the simulated motor speed corresponding to the initial moment is adjusted based on the preset torque reduction strategy.
[0049] Specifically, let Carsim run the simulation and adjust the curves of the front and rear motors over time until they are basically coincident, such as Figure 4 As shown in the figure, the following situations may occur during the debugging process:
[0050] The first case is: before the acceleration output by the Carsim simulation reaches the maximum value, the jitter phenomenon is obvious. In the Carsim tire parameter configuration interface, the overall slip rate is multiplied by an expansion multiple in the relationship diagram between the tire longitudinal force and the slip rate under different loads.
[0051] The second situation is: in a certain range, the front motor rotates faster than the rear motor. In the Carsim tire parameter configuration interface, the tire longitudinal force will be multiplied by an overall expansion factor in the relationship diagram between the tire longitudinal force and the slip rate under different loads.
[0052] The third situation is: the front and rear motor speeds are basically the same in each step, but the acceleration output by the Carsim simulation has obvious jitters just after reaching the maximum value and for a period of time thereafter. In the Carsim tire parameter configuration interface, in the relationship diagram between the tire longitudinal force and the slip rate under different loads, multiply the overall tire longitudinal force by a reduction factor.
[0053] Furthermore, by adjusting the curves of the front and rear motors over time to basically coincide, the acceleration smoothness of the Carsim simulation output and the curves of the front and rear motors over time can be guaranteed to basically coincide. Next, the acceleration output of the Carsim simulation needs to be adjusted to basically coincide with the acceleration of the actual vehicle. During the debugging process, there are the following situations:
[0054] The first case is: if the acceleration output by Carsim simulation is slower than the acceleration response of the real vehicle, then reduce the 'Time constant of dynamics' parameter of the front and rear drive motors of Carsim, otherwise increase it.
[0055] The second case is: if the maximum acceleration output by the Carsim simulation is smaller than the maximum acceleration response of the actual vehicle, then increase the corresponding torque from 0 to 500 rpm in the torque-speed curve of the Carsim drive motor, otherwise decrease it.
[0056] The third case is: the acceleration inflection point output by the Carsim simulation is earlier than the corresponding inflection point of the acceleration of the actual vehicle. First, find the speed n corresponding to the front and rear motor speeds output by Carsim according to the acceleration inflection point output by the Carsim simulation. In the torque-speed curve of the Carsim drive motor, increase the corresponding torque before the speed reaches n, and decrease it otherwise.
[0057] The fourth case is: between the two inflection points of the acceleration output by the Carsim simulation and the acceleration of the actual vehicle, if the acceleration output by the Carsim simulation is smaller than the acceleration of the actual vehicle, then find the moment when the acceleration is just smaller than that of the actual vehicle, corresponding to the speed n of the front and rear motors output by Carsim. In the torque-speed curve of the Carsim drive motor, increase the speed corresponding to the torque when the speed is around n, otherwise decrease it.
[0058] The final debugging effect is as follows Figure 5 , Figure 6 As shown, at this time, the acceleration of the simulation output is adjusted to basically coincide with the acceleration of the actual vehicle.
[0059] In step S102, the current vehicle is configured according to the vehicle model, body data and operating status data matching the actual vehicle, and the target scene conditions are compiled according to the current vehicle, multiple preset target vehicles, road sensors, laser sensors and planning parameters of each target vehicle to obtain a .slx file.
[0060] Specifically, the scenario simulation software PreScan in the embodiment of the present application builds a scenario condition, selects a vehicle model with a length and width similar to the actual vehicle, and can also construct the required vehicle appearance dimensions. The embodiment of the present application selects a model of aLexus GS 450h F, and the two target vehicles select a model of a Mazda RX8.
[0061] Furthermore, add road sensors to the vehicle to detect the distance between the center of mass of the vehicle and the left and right lane lines, and provide input for the lane keeping controller model of the vehicle; add laser sensors to detect the distance between the head of the vehicle and the rear of the target vehicle directly in front. The dynamics model of this vehicle selects the Carsim dynamics model, and does not use the dynamics model that comes with PreScan, and adds a simulation animation perspective. Plan a driving path for the target vehicle that needs to be cut out, and change lanes according to the double lane change of the GB / T40521.1-2021 passenger car emergency lane change test lane. Specify the initial position and speed of the target vehicle that needs to be cut out, add the target vehicle that the current vehicle initially follows, and set the speed of the target vehicle. Set the simulation step size to 20Hz, compile the scene, and generate an .slx file.
[0062] Among them, the scene target condition is: the current vehicle is following the target vehicle in front steadily at 60km / h. After a period of time, a target vehicle cuts into the adjacent lane. The vehicle detects that the right front wheel of the target vehicle is about to cross the line. The vehicle's accelerator pedal travel is set to the maximum travel, and the vehicle accelerates unexpectedly.
[0063] In step S103, the .slx file is configured, and based on the configured .slx file, a simulation test is performed on the current vehicle using a preset simulation strategy. When the simulation test meets the preset end conditions, the time from when the current vehicle switches to the unexpected acceleration driving mode to when the detection distance is 0 is intercepted from the detection distance and detection time data of the laser sensor, and the time is used as the fault tolerance time interval.
[0064] Optionally, in some embodiments, configuring the .slx file includes: obtaining the lateral coordinates of the right front wheel of the cut-out vehicle according to the multiple preset coordinates and yaw angle of the cut-out vehicle; and building the PID controller and unexpected acceleration driving mode of the current vehicle based on the .slx file. The multiple preset coordinates are length, width, and center of mass coordinates.
[0065] like Figure 7 As shown, the lateral coordinate y1 of the right front wheel of the current vehicle is derived based on the length, width, center of mass coordinates, and yaw angle of the cut-out vehicle. The mathematical model is as follows:
[0066]
[0067] Among them, y 1 is the lateral coordinate of the right front wheel of the target vehicle, y 0 is the lateral coordinate of the target vehicle's center of mass, w is the target vehicle's width, L is the distance from the target vehicle's center of mass to the vehicle's front, α is the target vehicle's heading angle, β is the custom angle, and
[0068] Furthermore, the method of building the PID controller of the current vehicle is:
[0069] Let the current vehicle and the preceding vehicle drive stably at the specified desired distance. The outer loop controls the following vehicle distance, and the inner loop controls the following vehicle speed. The principle is as follows: Figure 8 shown.
[0070] (1) Use road sensors to collect the distance difference between the center of mass of the vehicle and the left and right lane lines in real time, build a PID controller, and give the control rate output by the controller to the Carsim input port - the steering wheel angle to ensure that the vehicle drives along its lane.
[0071] (2) Filter out the actual distance between the vehicle and the preceding vehicle from the data collected by the laser sensor.
[0072] The method to build the current vehicle's unexpected acceleration driving mode is: set the accelerator pedal opening value input to Carsim to 0.99, and the vehicle will accelerate according to the acceleration of 100 kilometers per hour.
[0073] Optionally, in some embodiments, a preset simulation strategy is used to perform a simulation test on the current vehicle, including: controlling the current vehicle, a first target vehicle in front of the current vehicle, and a second target vehicle on the left side of the current vehicle to travel in a preset following driving mode; when the second target vehicle travels to the target position, controlling the second target vehicle to change lanes according to a single lane change to cut out of the lane where the current vehicle is located, and during the lane changing process of the second target vehicle, when it is detected that the lateral coordinate of the right front wheel of the second target vehicle is a preset value, controlling the current vehicle to switch to an unexpected acceleration driving mode.
[0074] Specifically, first, the current vehicle, the first target vehicle in front, and the second target vehicle on the left are controlled to travel in a preset following driving mode for a period of time. After the second target vehicle on the left runs to the designated position, lane change is performed according to a single shift to cut out of the lane where the current vehicle is located. During the lane changing process of the second target vehicle on the left, when it is detected that the lateral coordinate y1 of the right front wheel of the second target vehicle on the left is equal to 0m, that is, when it is about to cross the line, the current vehicle driving mode is switched to an unexpected acceleration driving mode, so that the vehicle accelerates according to the acceleration of 100 kilometers.
[0075] Optionally, in some embodiments, the preset end condition is that the current vehicle collides with the second target vehicle.
[0076] It should be understood that when the laser sensor detects that the distance between the current vehicle and the second target vehicle is 0m, that is, the current vehicle and the second target vehicle just collide, the simulation stops. By analyzing the data of the laser sensor detection distance and time, the time between the current vehicle just switching to the unexpected acceleration driving mode and the moment when the detection distance is 0m is intercepted, which is the fault tolerance time interval value of the current working condition, and the result is 0.89s.
[0077] According to the method for determining the fault-tolerant time interval proposed in the embodiment of the present application, the current vehicle is configured according to the vehicle model, body data and operating status data that match the actual vehicle, and the target scenario working condition is compiled according to the current vehicle, multiple preset target vehicles, road sensors, laser sensors and planning parameters of each target vehicle to obtain a .slx file, configure the .slx file, and based on the configured .slx file, perform a simulation test on the current vehicle using a preset simulation strategy. When the simulation test meets the preset end condition, the time from when the current vehicle switches to the unexpected acceleration driving mode to when the detection distance is 0 is intercepted from the detection distance and detection time data of the laser sensor, and the time is used as the fault-tolerant time interval. Thus, the problem that the system cannot accurately and effectively calculate the vehicle fault-tolerant time interval before a hazardous event occurs in the vehicle, resulting in the vehicle being unable to effectively and timely resolve the hazard, etc., can be solved quickly and accurately, and the fault-tolerant time interval can be solved, providing the maximum theoretical time for resolving the hazard for the controller to execute the risk resolution strategy.
[0078] Next, a device for determining a fault-tolerant time interval according to an embodiment of the present application will be described with reference to the accompanying drawings.
[0079] Fig. 9 It is a block diagram of a device for determining a fault-tolerant time interval according to an embodiment of the present application.
[0080] like Fig. 9 As shown, the fault tolerance time interval determination device 10 includes: a determination module 100 , a compilation module 200 and a testing module 300 .
[0081] Among them, the determination module 100 is used to determine the vehicle model, body data and operating status data that match the actual vehicle; the compilation module 200 is used to configure the current vehicle according to the vehicle model, body data and operating status data that match the actual vehicle, and compile the target scenario conditions according to the current vehicle, multiple preset target vehicles, road sensors, laser sensors and planning parameters of each target vehicle to obtain an .slx file; the test module 300 is used to configure the .slx file, and based on the configured .slx file, use a preset simulation strategy to perform a simulation test on the current vehicle, and when the simulation test meets the preset end conditions, the time from the current vehicle switching to the unexpected acceleration driving mode to the detection distance being 0 is intercepted from the detection distance and detection time data of the laser sensor, and the time is used as the fault tolerance time interval.
[0082] Optionally, in some embodiments, the test module 300 is specifically used to: control the current vehicle, the first target vehicle in front of the current vehicle, and the second target vehicle on the left side of the current vehicle to travel in a preset following driving mode; when the second target vehicle travels to the target position, control the second target vehicle to change lanes according to a single lane change to cut out of the lane where the current vehicle is located, and during the lane changing process of the second target vehicle, when it is detected that the lateral coordinate of the right front wheel of the second target vehicle is a preset value, control the current vehicle to switch to an unexpected acceleration driving mode.
[0083] Optionally, in some embodiments, the preset end condition is that the current vehicle collides with the second target vehicle.
[0084] Optionally, in some embodiments, the test module 300 is further used to: obtain the lateral coordinate of the right front wheel of the cut-out vehicle according to multiple preset coordinates and yaw angles of the cut-out vehicle; and build a PID controller and an unexpected acceleration driving mode of the current vehicle based on the .slx file.
[0085] Optionally, in some embodiments, the body data includes at least one of vehicle-level parameters, power system parameters, transmission system parameters and tire parameters; the operating status data includes at least one of accelerator pedal opening, longitudinal acceleration, front motor speed and rear motor speed.
[0086] Optionally, in some embodiments, after determining the vehicle model, vehicle body data and operating status data that match the actual vehicle, the determination module 100 is also used to: determine the simulated acceleration according to the accelerator pedal opening; based on the preset first adjustment strategy, adjust the curve of the simulated drive motor over time in the simulation system to the target state, and then adjust the simulated acceleration according to the preset second adjustment strategy so that the simulated acceleration is equal to the actual vehicle acceleration, wherein the preset first adjustment strategy is: before the simulated acceleration reaches the maximum value of the simulated acceleration, if the simulated drive motor has burr jitter phenomenon, then the slip rate in the relationship between the longitudinal force of the tire and the slip rate under different loads is increased according to the first preset increase multiple; within the preset interval, if the speed of the front simulated drive motor in the simulated drive motor is greater than the speed of the rear simulated drive motor, then the slip rate in the relationship between the longitudinal force of the tire and the slip rate under different loads is increased according to the second preset increase multiple; when the step sizes of the front simulated drive motor and the rear simulated drive motor are equal, and within the preset time after the simulated acceleration reaches the maximum value of the simulated acceleration, if the simulated drive motor has If there is a burr jitter phenomenon, the slip rate in the relationship between the longitudinal force of the tire and the slip rate under different loads is reduced according to a first preset reduction multiple; the preset second adjustment strategy is: if the simulated acceleration is less than the actual vehicle acceleration, the operating parameters of the simulated drive motor are adjusted so that the simulated acceleration is equal to the actual vehicle acceleration; if the maximum value of the simulated acceleration is less than the maximum value of the actual vehicle acceleration, the torque in the preset speed range in the torque-speed curve of the simulated drive motor is adjusted according to the preset increase strategy; if the inflection point of the simulated acceleration is inconsistent with the inflection point of the actual vehicle acceleration, the speed of the simulated drive motor is adjusted according to the anteroposterior relationship between the inflection point of the simulated acceleration and the inflection point of the actual vehicle acceleration; if the simulated acceleration between the inflection point of the simulated acceleration and the inflection point of the actual vehicle acceleration is less than the actual vehicle acceleration, the initial moment when the simulated acceleration is less than the actual vehicle acceleration is first determined, and the simulated motor speed corresponding to the initial moment is adjusted based on the preset torque increase strategy; otherwise, the initial moment when the simulated acceleration is greater than the actual vehicle acceleration is first determined, and the simulated motor speed corresponding to the initial moment is adjusted based on the preset torque reduction strategy.
[0087] It should be noted that the above explanation of the embodiment of the method for determining a fault-tolerant time interval is also applicable to the device for determining a fault-tolerant time interval of this embodiment, and will not be described in detail here.
[0088] According to the fault tolerance time interval determination device proposed in the embodiment of the present application, the current vehicle is configured according to the vehicle model, body data and operating status data that match the actual vehicle, and the target scene working condition is compiled according to the current vehicle, multiple preset target vehicles, road sensors, laser sensors and planning parameters of each target vehicle to obtain a .slx file, configure the .slx file, and based on the configured .slx file, the current vehicle is simulated and tested using a preset simulation strategy. When the simulation test meets the preset end condition, the time from when the current vehicle switches to the unexpected acceleration driving mode to when the detection distance is 0 is intercepted from the detection distance and detection time data of the laser sensor, and the time is used as the fault tolerance time interval. Thus, the problem that the system cannot accurately and effectively calculate the vehicle fault tolerance time interval before a hazardous event occurs in the vehicle, resulting in the vehicle being unable to effectively and timely resolve the hazard, etc., can be solved quickly and accurately, and the fault tolerance time interval can be solved, providing the maximum theoretical time for the controller to execute the risk resolution strategy.
[0089] Fig.10 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. The vehicle may include:
[0090] A memory 1001 , a processor 1002 , and a computer program stored in the memory 1001 and executable on the processor 1002 .
[0091] When the processor 1002 executes the program, the fault tolerance time interval determination method provided in the above embodiment is implemented.
[0092] Furthermore, the vehicle also includes:
[0093] The communication interface 1003 is used for communication between the memory 1001 and the processor 1002 .
[0094] The memory 1001 is used to store computer programs that can be executed on the processor 1002 .
[0095] The memory 1001 may include a high-speed RAM (Random Access Memory) memory, and may also include a non-volatile memory, such as at least one disk memory.
[0096] If the memory 1001, the processor 1002 and the communication interface 1003 are implemented independently, the communication interface 1003, the memory 1001 and the processor 1002 can be connected to each other through a bus and communicate with each other. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.10 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0097] Optionally, in a specific implementation, if the memory 1001, the processor 1002 and the communication interface 1003 are integrated on a chip, the memory 1001, the processor 1002 and the communication interface 1003 can communicate with each other through an internal interface.
[0098] The processor 1002 may be a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.
[0099] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above method for determining a fault tolerance time interval.
[0100] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0101] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0102] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0103] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array, a field programmable gate array, etc.
[0104] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0105] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A method for determining a fault tolerance time interval, characterized in that: The following steps are involved: Determine the vehicle model, body data and operating status data that match the actual vehicle; The current vehicle is configured according to the vehicle model matched with the actual vehicle, the vehicle body data and the operating status data, and the target scene working condition is compiled according to the current vehicle, a plurality of preset target vehicles, a road sensor, a laser sensor and planning parameters of each target vehicle to obtain a .slx file; as well as The .slx file is configured, and based on the configured .slx file, a simulation test is performed on the current vehicle using a preset simulation strategy, and when the simulation test meets a preset end condition, the time from when the current vehicle switches to the unexpected acceleration driving mode to when the detection distance is 0 is intercepted from the detection distance and detection time data of the laser sensor, and the time is used as a fault tolerance time interval; The using a preset simulation strategy to perform a simulation test on the current vehicle includes: Controlling the current vehicle, a first target vehicle in front of the current vehicle, and a second target vehicle on the left side of the current vehicle to travel according to a preset following vehicle driving mode; When the second target vehicle travels to the target position, the second target vehicle is controlled to change lanes according to a single lane change to cut out to the lane where the current vehicle is located, and when the lateral coordinate of the right front wheel of the second target vehicle is detected to be a preset value during the lane change process of the second target vehicle, the current vehicle is controlled to switch to the unexpected acceleration driving mode; The preset end condition is that the current vehicle collides with the second target vehicle.
2. The method according to claim 1, characterized in that The configuration of the .slx file includes: Obtaining the lateral coordinate of the right front wheel of the cut-out vehicle according to a plurality of preset coordinates and a yaw angle of the cut-out vehicle; Based on the .slx file, build the PID controller of the current vehicle and the unexpected acceleration driving mode.
3. The method according to any one of claims 1 to 2, characterized in that: The vehicle body data includes at least one of vehicle-level parameters, power system parameters, transmission system parameters and tire parameters; The operating status data includes at least one of an accelerator pedal opening, a longitudinal acceleration, a front motor speed, and a rear motor speed.
4. The method according to claim 3, characterized in that After determining the vehicle model, the vehicle body data and the running status data that match the actual vehicle, the method further includes: Determining a simulated acceleration according to the accelerator pedal opening; Based on the preset first adjustment strategy, after adjusting the curve of the simulated driving motor over time in the simulation system to the target state, the simulated acceleration is adjusted according to the preset second adjustment strategy so that the simulated acceleration is equal to the actual vehicle acceleration, wherein the preset first adjustment strategy is; Before the simulated acceleration reaches the maximum value of the simulated acceleration, if the simulated drive motor has a burr vibration phenomenon, the slip rate in the relationship between the tire longitudinal force and the slip rate under different loads is increased according to a first preset increase multiple; Within a preset interval, if the rotation speed of the front simulation drive motor among the simulation drive motors is greater than the rotation speed of the rear simulation drive motor, the slip rate in the relationship between the tire longitudinal force and the slip rate under the different loads is increased according to a second preset increase multiple; When the step sizes of the front simulation drive motor and the rear simulation drive motor are equal and the simulation acceleration reaches the maximum value of the simulation acceleration within a preset time period, if the simulation drive motor has a burr jitter phenomenon, then the slip rate in the relationship between the tire longitudinal force and the slip rate under different loads is reduced according to a first preset reduction multiple; The preset second adjustment strategy is: If the simulated acceleration is less than the actual vehicle acceleration, adjusting the operating parameters of the simulated drive motor so that the simulated acceleration is equal to the actual vehicle acceleration; If the maximum value of the simulated acceleration is less than the maximum value of the actual vehicle acceleration, the torque in the preset speed range in the torque-speed curve of the simulated drive motor is adjusted according to a preset increase strategy; If the inflection point of the simulated acceleration is inconsistent with the inflection point of the actual vehicle acceleration, adjusting the rotation speed of the simulated drive motor according to the causal relationship between the inflection point of the simulated acceleration and the inflection point of the actual vehicle acceleration; If the simulated acceleration between the inflection point of the simulated acceleration and the inflection point of the real vehicle acceleration is less than the real vehicle acceleration, then the initial moment when the simulated acceleration is less than the real vehicle acceleration is first determined, and the simulated motor speed corresponding to the initial moment is adjusted based on the preset torque increase strategy; otherwise, the initial moment when the simulated acceleration is greater than the real vehicle acceleration is first determined, and the simulated motor speed corresponding to the initial moment is adjusted based on the preset torque reduction strategy.
5. A device for determining a fault tolerance time interval, characterized in that: include: A determination module is used to determine the vehicle model, body data and running status data that match the actual vehicle; A compiling module, used for configuring the current vehicle according to the vehicle model matched with the actual vehicle, the vehicle body data and the running status data, and compiling the target scene working condition according to the current vehicle, a plurality of preset target vehicles, a road sensor, a laser sensor and planning parameters of each target vehicle to obtain a .slx file; as well as A test module is used to configure the .slx file, and based on the configured .slx file, perform a simulation test on the current vehicle using a preset simulation strategy, and when the simulation test meets a preset end condition, intercept the time from when the current vehicle switches to the unexpected acceleration driving mode to when the detection distance is 0 from the detection distance and detection time data of the laser sensor, and use the time as the fault tolerance time interval; the test module is specifically used to: Controlling the current vehicle, a first target vehicle in front of the current vehicle, and a second target vehicle on the left side of the current vehicle to travel according to a preset following vehicle driving mode; When the second target vehicle travels to the target position, the second target vehicle is controlled to change lanes according to a single lane change to cut out to the lane where the current vehicle is located, and when the lateral coordinate of the right front wheel of the second target vehicle is detected to be a preset value during the lane change process of the second target vehicle, the current vehicle is controlled to switch to the unexpected acceleration driving mode; The preset end condition is that the current vehicle collides with the second target vehicle.
6. A vehicle, characterized in that: Including memory and processor; The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the method for determining the fault tolerance time interval as described in any one of claims 1 to 4.
7. A computer-readable storage medium storing a computer program, characterized in that: When the program is executed by a processor, the method for determining the fault-tolerant time interval as described in any one of claims 1 to 4 is implemented.
