Vehicle lateral control method, device, equipment and medium
The yaw angular velocity compensation value is obtained through bench testing, and the vehicle kinematic model is used to calculate the difference to correct the yaw angular velocity, which solves the problems of vehicle sensor detection error and computational resource consumption, and improves the efficiency and accuracy of vehicle lateral control.
Patent Information
- Application Number
- CN202311006687.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-10
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2043-08-10
AI Technical Summary
When the existing technology uses vehicle-mounted sensors to detect yaw angular velocity, there are errors caused by deviations and noise, and the real-time calculation of yaw angular velocity consumes computing resources and is cumbersome to operate.
Dynamically simulate multiple driving states of the vehicle through the bench test, obtain the yaw angular velocity compensation value, and store it in table form. The fourth yaw angular velocity calculated using the vehicle kinematic model and the third yaw angular velocity in the bench test The difference between them is used as a compensation value to correct the first yaw angular velocity of the vehicle in the driving state and reduce real-time calculations.
Save computing resources, improve the efficiency of lateral control, reduce complexity, and achieve rapid and accurate correction of vehicle lateral control.
Smart Images

Figure CN116788264B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle control technology, and in particular to a vehicle lateral control method, device, equipment and medium. Background Art
[0002] The yaw rate is an important parameter for the lateral control of the vehicle. In the related technology, the yaw rate can be obtained by detecting the vehicle-mounted sensor. When using the vehicle-mounted sensor, the deviation and noise of the sensor itself will cause a certain error, so the yaw rate needs to be corrected.
[0003] In the related art, the error of yaw rate can be calculated according to the current position of the vehicle and the preset motion trajectory, or the yaw rate can be calculated in real time through the vehicle dynamics model. However, these methods have the problems of consuming computing resources and complicated operation. Summary of the invention
[0004] The present application provides a vehicle lateral control method, device, equipment and medium, which can save computing resources.
[0005] A first aspect of the present application discloses a vehicle lateral control method for an electronic device, comprising: obtaining a first yaw velocity of the vehicle in a first driving state; determining a yaw velocity compensation value corresponding to the first driving state, wherein the yaw velocity compensation value is used to correct the first yaw velocity, and the yaw velocity compensation value is calculated by the difference between a third yaw velocity obtained in a bench test and a fourth yaw velocity calculated using a vehicle kinematic model; correcting the first yaw velocity according to the yaw velocity compensation value to obtain a second yaw velocity; and performing lateral control on the vehicle according to the second yaw velocity.
[0006] In a possible implementation of the first aspect above, the process of calculating the yaw rate compensation value includes calculating the fourth yaw rate under a plurality of different operating conditions in the bench test, wherein the parameters of the plurality of different operating conditions include one or more of wheel speed, acceleration, and turning angle; obtaining the third yaw rate corresponding to the plurality of different operating conditions in the bench test; and calculating and generating the yaw rate compensation value based on the difference between the third yaw rate and the fourth yaw rate.
[0007] In a possible implementation of the first aspect above, the yaw rate compensation value is stored in the form of a table, and the table includes parameters of the multiple different operating conditions and corresponding yaw rate compensation values.
[0008] In a possible implementation of the first aspect above, the parameters of the multiple different operating conditions in the table are set with a predetermined variation range, variation gradient and linear interpolation order.
[0009] In a possible implementation of the first aspect above, determining the yaw rate compensation value corresponding to the first driving state includes obtaining a fifth yaw rate based on an initial compensation value and the fourth yaw rate; calculating a difference between the third yaw rate and the fifth yaw rate; and when the difference between the third yaw rate and the fifth yaw rate satisfies a predetermined threshold range, saving the initial compensation value as the yaw rate compensation value under the current operating conditions.
[0010] In a possible implementation of the first aspect above, it also includes, when the difference between the third yaw angular velocity and the fifth yaw angular velocity does not satisfy the predetermined threshold range, adjusting the initial compensation value until the difference between the third yaw angular velocity and the fifth yaw angular velocity satisfies the predetermined threshold range.
[0011] In a possible implementation of the first aspect, when the difference is greater than 0, the initial compensation value is increased in equal steps.
[0012] In a possible implementation of the first aspect, when the difference is less than 0, the initial compensation value is decreased in equal steps.
[0013] In a possible implementation of the first aspect above, the process of calculating the yaw rate compensation value includes testing a sixth yaw rate in the bench test, wherein the accuracy of the third yaw rate is higher than the accuracy of the sixth yaw rate; calculating an average value of the fourth yaw rate and the sixth yaw rate; and calculating the yaw rate compensation value based on the difference between the third yaw rate and the average value.
[0014] In a possible implementation of the first aspect above, correcting the first yaw rate according to the yaw rate compensation value includes correcting the first yaw rate based on the yaw rate compensation value and a static yaw rate compensation value of the vehicle when it is static.
[0015] In a possible implementation of the first aspect above, determining the yaw rate compensation value corresponding to the first driving state also includes obtaining the operating condition corresponding to the first driving state; and obtaining the yaw rate compensation value under the operating condition of the vehicle according to the table.
[0016] A second aspect of the present application discloses a vehicle lateral control device, the device comprising: an acquisition module, configured to acquire a first yaw velocity of the vehicle when it is in a driving state; a determination module, configured to determine a yaw velocity compensation value corresponding to the first driving state, wherein the yaw velocity compensation value is used to correct the first yaw velocity, and the yaw velocity compensation value is calculated by the difference between a third yaw velocity obtained in a bench test and a fourth yaw velocity calculated using a vehicle kinematic model; a correction module, configured to correct the first yaw velocity according to the yaw velocity compensation value to obtain a second yaw velocity; and a control module, configured to perform lateral control of the vehicle according to the second yaw velocity.
[0017] The third aspect of the present application discloses a computer-readable medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the method described in the first aspect of the present application.
[0018] The fourth aspect of the present application discloses an electronic device, comprising a memory storing computer-executable instructions and a processor; when the instructions are executed by the processor, the device implements the method according to the first aspect of the present application.
[0019] The fifth aspect of the present application discloses a computer program product, which implements the method of the first aspect of the present application when the computer program is executed by a processor.
[0020] A sixth aspect of the present application discloses a car, comprising the vehicle lateral control device as described in the second aspect of the present application.
[0021] In the embodiment provided by the present application, a first yaw velocity of the vehicle in a first driving state and a yaw velocity compensation value corresponding to the first driving state are respectively obtained, and the yaw velocity compensation value is calculated by the difference between the third yaw velocity measured in the bench test and the fourth yaw velocity calculated. The first yaw velocity is corrected using the difference as the yaw velocity compensation value, and the corrected yaw velocity is then used to perform lateral control on the vehicle. Different driving states of the vehicle are simulated by bench testing to obtain yaw velocity compensation values corresponding to different driving states. In the actual driving of the vehicle, the existing yaw velocity compensation value is used to directly correct the current yaw velocity value without the need to calculate the yaw velocity in real time, thereby saving computing resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A schematic diagram of an application scenario of the vehicle lateral control method of the present application;
[0023] Figure 2 A schematic flow chart of a vehicle lateral control method according to an embodiment of the present application;
[0024] Figure 3 A schematic diagram of a test bench according to an embodiment of the present application;
[0025] Figure 4 A schematic diagram of a calculation process of a yaw rate compensation value according to an embodiment of the present application;
[0026] Figure 5 A schematic diagram of a process for determining a yaw rate compensation value according to an embodiment of the present application;
[0027] Figure 6 A schematic diagram of a process for determining a yaw rate compensation value according to an embodiment of the present application;
[0028] Figure 7 A schematic diagram of a process for determining a yaw rate compensation value according to an embodiment of the present application;
[0029] Figure 8 A schematic diagram of a vehicle lateral control device according to an embodiment of the present application;
[0030] Fig. 9 A block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0031] The present application is further described below in conjunction with specific embodiments and drawings. It is understood that the illustrative embodiments of the present disclosure include but are not limited to vehicle lateral control methods, devices and media, and the specific embodiments described herein are only for the purpose of explaining the present application, rather than limiting the present application. In addition, for ease of description, only some, but not all, structures or processes related to the present application are shown in the drawings.
[0032] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0033] The vehicle lateral control method of the present application can be applied to Figure 1 The application scenario shown. Figure 1 In the example, the vehicle 110 is traveling on the road 120. The lateral control of the vehicle refers to controlling the steering of the vehicle 110. The steering of the vehicle includes straight driving, left turning driving, right turning driving, etc. The steering control can be achieved by controlling the steering wheel of the vehicle 110.
[0034] In the lateral control of a vehicle, the yaw rate is one of the important parameters, wherein the yaw rate refers to the angular velocity of the vehicle rotating around the z-axis perpendicular to the ground.
[0035] The yaw rate can be obtained based on the vehicle-mounted sensor. Due to the deviation and noise of the vehicle-mounted sensor itself, there will be a certain error in the yaw rate obtained directly by sensing, so it is necessary to correct the yaw rate obtained by sensing. In some embodiments, the error of the yaw rate can be calculated based on the current position of the vehicle and the preset motion trajectory, and the yaw rate is compensated according to the error to obtain the compensated yaw rate, and then the lateral control of the vehicle is performed. In other embodiments, the real-time yaw rate can also be calculated by vehicle dynamics methods using parameters such as the four-wheel speed, steering wheel angle, and acceleration of the vehicle. When the vehicle is actually driving, the position of the vehicle and the above parameters are all changing in real time. These methods have the problems of consuming computing resources and complicated operation.
[0036] In order to solve the above problem, an embodiment of the present application provides a vehicle lateral control method: using a bench test to dynamically simulate multiple driving states of the vehicle, and obtaining yaw rate compensation values under the simulated multiple driving states. During the actual driving process of the vehicle, it is only necessary to find the yaw rate compensation value corresponding to the actual driving state to quickly obtain the compensated value, without the need to calculate the yaw rate in real time, thereby saving computing resources and improving the efficiency of lateral control.
[0037] The following combination Figure 2 , the details of the embodiment of the vehicle lateral control method according to the present application are described. Figure 2 As shown, a vehicle lateral control method 200 according to an embodiment of the present application includes the following steps.
[0038] In S210 , a first yaw angular velocity of the vehicle in a first driving state is acquired.
[0039] The electronic device to which the vehicle lateral control method 100 is applied may be any one of the vehicle itself, the vehicle's computer, the vehicle's server, the vehicle's onboard terminal, the vehicle's processor, and the vehicle's chip, without limitation herein.
[0040] In some embodiments, the yaw rate of the vehicle in the driving state may be detected by a sensor provided on the vehicle, and the sensor transmits the detected yaw rate to the electronic device, which acquires the yaw rate of the vehicle in the driving state.
[0041] In S220, a yaw rate compensation value corresponding to the first driving state is determined, wherein the yaw rate compensation value is used to correct the first yaw rate, and the yaw rate compensation value is calculated by the difference between a third yaw rate obtained in the bench test and a fourth yaw rate calculated using a vehicle kinematic model.
[0042] The yaw rate compensation value is obtained based on a difference between a third yaw rate obtained in a bench test and a fourth yaw rate obtained by calculation, wherein the fourth yaw rate is obtained by calculation using a vehicle kinematics model.
[0043] Figure 3 A schematic diagram of a test bench 300 of an embodiment of the present application is shown. The test bench 300 includes a mounting fixed plate 301, a car model 302, a rotating motor 303, a transmission shaft assembly 304 and a sensor module 305. The rotating motor 303 includes four rotating motors simulating wheels, the transmission shaft assembly 304 includes a transmission shaft and a universal joint, and the sensor module 305 includes a plurality of sensors, which may include one or more of a vehicle wheel speed sensor, an acceleration sensor, a steering angle sensor and a yaw rate sensor.
[0044] In the bench test, the rotation of the four motors in the rotating motor 303 simulates the wheel movement, and the posture of the car 302 can be adjusted by the transmission shaft and the universal joint in the transmission shaft assembly 304. Based on the vehicle kinematic model, the car model can be regarded as a rigid body, so that the driving state of the vehicle can be simulated. The corresponding vehicle power signal can be collected by the sensor module 305. The third yaw angular velocity can be directly obtained based on the yaw angle sensor detection in the sensor module 305. Based on the signals collected by other sensors in the sensor module 305, such as wheel speed, acceleration, steering angle, etc., the fourth yaw angular velocity can be calculated using the vehicle kinematic model.
[0045] The yaw rate compensation value corresponding to the first driving state may refer to a driving state of a simulated vehicle in a bench test that is the same as or close to the first driving state.
[0046] In S230 , the first yaw rate is corrected according to the yaw rate compensation value to obtain a second yaw rate.
[0047] Yaw angular velocity compensation values of various simulated driving states have been obtained in the bench test. When the vehicle is actually driving in the first driving state, the first yaw angular velocity is corrected according to the yaw angular velocity compensation value of the corresponding simulated driving state to obtain the second yaw angular velocity, i.e., the corrected yaw angular velocity.
[0048] In S240 , lateral control is performed on the vehicle according to the second yaw rate.
[0049] The vehicle is laterally controlled based on the corrected yaw rate.
[0050] In method 200, a first yaw velocity of the vehicle in a first driving state is obtained, and a yaw velocity compensation value corresponding to the first driving state is obtained, wherein the yaw velocity compensation value is calculated by the difference between the third yaw velocity measured in the bench test and the fourth yaw velocity calculated. The first yaw velocity is corrected using the difference as the yaw velocity compensation value, and the corrected yaw velocity is then used to perform lateral control on the vehicle. Method 200 simulates different driving states of the vehicle through bench testing to obtain yaw velocity compensation values corresponding to different driving states. In actual driving of the vehicle, the existing yaw velocity compensation value is used to directly correct the current yaw velocity value without the need to calculate the yaw velocity in real time, thereby saving computing resources and reducing the complexity of lateral control.
[0051] An embodiment of the present application provides a calculation process 400 of the yaw rate compensation value in a bench test, see Figure 4 , comprising the following steps.
[0052] In S410, a fourth yaw rate under a plurality of different operating conditions in a bench test is calculated, wherein parameters of the plurality of different operating conditions include one or more of wheel speed, acceleration, and turning angle.
[0053] As mentioned above, the bench test can simulate various driving conditions of the vehicle. In the bench test, multiple operating conditions can be set to correspond to various driving conditions of the vehicle. The parameters of multiple different operating conditions include one or more of wheel speed, acceleration, and turning angle.
[0054] In some examples, the operating condition can be determined based on the front wheel speed, rear wheel speed, front wheel angle, longitudinal acceleration, and lateral acceleration. The corresponding yaw rate can be calculated based on the front wheel speed, rear wheel speed, front and rear wheel speeds, front wheel angle, and lateral acceleration. On this basis, the corresponding yaw rate is weighted averaged or directly averaged to obtain a fourth yaw rate. The calculation of the corresponding yaw rate using the parameters of each operating condition in the bench test is a conventional calculation method, which will not be repeated here.
[0055] In S420, a third yaw angular velocity corresponding to a plurality of different operating conditions is obtained in a bench test.
[0056] Under different working conditions, the corresponding third yaw rate is detected by using a yaw rate sensor. In some embodiments, the third yaw rate can be detected by using a vehicle-grade yaw rate sensor. In other embodiments, a sensor with higher detection accuracy than the vehicle-grade yaw rate sensor can be used to detect the third yaw rate. The yaw rate detected by the higher-precision sensor can be used as a reference standard in the calibration method to improve the accuracy of the yaw rate compensation value.
[0057] In S430 , a yaw rate compensation value is calculated and generated according to the difference between the third yaw rate and the fourth yaw rate.
[0058] For each operating condition in the bench test, two corresponding yaw angular velocity can be obtained, namely, the third yaw angular velocity detected by the yaw angle sensor and the fourth yaw angular velocity calculated by the vehicle kinematic model, and then the yaw angular velocity compensation value under the operating condition can be obtained based on the difference between the two.
[0059] In some embodiments, when calculating the yaw rate compensation value, the control variable method is used for data processing. That is, the relationship logic between one influencing signal and the yaw rate compensation value is calibrated each time, and other signals are set as constants. For example, the wheel speed and acceleration can be controlled as constants, the fourth yaw rate at different turning angles can be calculated, and the difference between the current third yaw rate and the fourth yaw rate can be calculated to obtain the yaw rate compensation value at different turning angles. Similar means are used for processing the yaw rate compensation value at different wheel speeds or the yaw rate compensation value at different accelerations.
[0060] In some embodiments, the yaw rate compensation values under different working conditions are stored in the form of a table, which includes parameters of multiple different working conditions and corresponding yaw rate compensation values. In some examples, an automatic calibration program script can be set to calculate the yaw rate compensation values under different working conditions. Predetermined ranges of change and gradients of change can be set for different parameters. For example, when calculating the yaw angle compensation values under different wheel speeds, the wheel speed range can be set to 0-200km / h. In addition, the wheel speed can be set in intervals of 10km / h each time, that is, 0km / h, 10km / h, 20km / h...200km / h. In some examples, different gradients of change can be set in different intervals according to actual conditions or external requirements. Similar methods can be used for different wheel speeds and turning angles.
[0061] In the bench test, the fourth yaw rate can not only be calculated from the signal collected by the sensor, but also directly detected by the yaw rate sensor. On this basis, the yaw rate compensation value is calculated. For example, Figure 5 A method 500 for determining a yaw rate compensation value according to an embodiment of the present application is shown, and includes the following steps.
[0062] In S510 , a sixth yaw rate in the bench test is tested, wherein the accuracy of the third yaw rate is higher than the accuracy of the sixth yaw rate.
[0063] Under different working conditions, different yaw rate sensors are used to detect the corresponding third yaw rate and sixth yaw rate. For example, in the bench test, sensor A and sensor B are used, sensor B is a common vehicle yaw rate sensor, and sensor A is a yaw rate sensor with higher detection accuracy. The high detection accuracy here can refer to a lower uncertainty in the value detected by the sensor. The third yaw rate can be detected by sensor A, and the sixth yaw rate can be detected by sensor B.
[0064] In S520 , an average value of the fourth yaw rate and the sixth yaw rate is calculated.
[0065] Based on the sensor module in the bench test, not only can the yaw rate under a certain working condition be calculated according to the kinematic model, but the corresponding yaw rate can also be directly tested according to the two sensor models. The average of the calculated yaw rate and the yaw rate obtained by the common sensor test is the calculated yaw rate under the working condition.
[0066] In S530 , a yaw rate compensation value is calculated according to a difference between the third yaw rate and the average value.
[0067] The third yaw rate detected by the sensor with high detection accuracy is used as a reference value, and the difference between the reference value and the calculated value in S520 is used as a yaw rate compensation value.
[0068] In bench testing, the method of using two yaw rate sensors with different accuracies can increase the convergence and accuracy of the calculation when calculating the compensation value.
[0069] After obtaining the yaw rate compensation value table under different working conditions, the yaw rate compensation value of the vehicle under the corresponding driving state can be obtained according to the table. Figure 6 . Figure 6 A method 600 for determining a yaw rate compensation value according to an embodiment of the present application is shown, and includes the following steps.
[0070] In S610, an operating condition corresponding to the first driving state is obtained.
[0071] Since the bench test simulates various driving states of the vehicle, when the vehicle is driving in a first driving state, the corresponding operating conditions in the bench test can be determined based on parameters in the first driving state, such as wheel speed, acceleration, and turning angle.
[0072] In S620 , it is determined whether there is an operating condition in the table that is the same as the operating condition corresponding to the first driving state.
[0073] When the vehicle is actually driving, the various parameters in the driving state are not necessarily exactly the same as the various parameters in different working conditions of the bench test. For example, the wheel speed in the vehicle driving state is 65km / h, while the wheel speed set in the bench test is 0km / h, ... 60km / h, 70km / h... 200km / h. In this case, in order to cover the actual driving state as much as possible, the yaw rate compensation value table can include the yaw rate compensation value between two adjacent set values calculated by the interpolation method. For example, after obtaining the yaw rate compensation value at the wheel speed of 60km / h and 70km / h, the yaw rate compensation value at 61km / h, 62km / h, ..., 69km / h is calculated by the interpolation method. In the yaw rate compensation value table, the linear interpolation order can be set to generate the interpolation so that the table can cover as many working conditions as possible, thereby improving the efficiency of the yaw rate correction.
[0074] If the operating condition corresponding to the first driving state can be found in the table (including the interpolation in the table), the process proceeds to S630; otherwise, the process proceeds to S640.
[0075] In S630 , the yaw rate compensation value under the working condition of the vehicle is directly obtained according to the table.
[0076] After the corresponding operating conditions are determined, the corresponding yaw rate compensation value can be directly determined according to the yaw rate compensation value table.
[0077] In S640, a yaw rate compensation value is determined according to an operating condition in the table that is similar to the operating condition corresponding to the first driving state.
[0078] In some examples, for example, the wheel speed in the vehicle driving state is 82 km / h, while the wheel speeds in the table are 0 km / h, ... 80 km / h, 85 km / h, 90 km / h .... In this case, a yaw rate compensation value at 80 km / h close to 82 km / h can be selected. An approximate range can be set, for example, if the error between the actual operating condition parameters and the operating condition parameters in the table is within a range of 3%, the actual operating condition parameters are approximated to the operating condition parameters in the table.
[0079] In some other examples, when the vehicle is in an actual driving state and the operating condition parameter value in the yaw rate compensation value table is not found, the yaw rate compensation value in the driving state can be calculated by interpolation method based on adjacent parameters in the yaw rate compensation value table.
[0080] In some embodiments, Figure 4-5 In the method shown in FIG. 1 , when determining the yaw angle compensation value based on the difference between the yaw angular velocity detection value and the yaw angle calculation value, the difference can be directly used as the compensation value. In some other examples, an indirect method can be used to determine the compensation value. For example, in Figure 7 A flow chart of a method 700 for determining a yaw rate compensation value corresponding to a first driving state according to an embodiment of the present application is shown, and includes the following steps.
[0081] In S701 , a fifth yaw rate is obtained based on the initial compensation value and the fourth yaw rate.
[0082] The initial compensation value r0 can be set according to the requirements, and the initial compensation value should meet the range limit, that is, the minimum yaw rate compensation value ≤ the initial yaw rate compensation value ≤ the maximum yaw rate compensation value. The compensated yaw rate can be obtained by adding the set initial compensation value r0 and the fourth yaw rate r4, that is, the fifth yaw rate r5 = r0 + r4. The minimum yaw rate compensation value and the maximum yaw rate compensation value can be determined according to actual requirements.
[0083] In S702 , a difference between the third yaw rate and the fifth yaw rate is calculated.
[0084] For each operating condition in the bench test, the difference Δ=r3-r5=r3-r0-r4 between the detected third yaw rate r3 and the compensated fifth yaw rate r5 is calculated.
[0085] In S703 , it is determined whether the difference between the third yaw rate and the fifth yaw rate satisfies a predetermined threshold range.
[0086] In this step, it is determined whether the difference Δ calculated in S702 meets the range requirement, that is, the minimum yaw rate difference ≤ yaw rate difference ≤ maximum yaw rate difference. If the difference Δ meets this condition, the process proceeds to S704; if the difference Δ does not meet this condition, the process proceeds to S705. For example, the minimum yaw rate difference is -0.2 rad / s, the maximum yaw rate difference is 0.2 rad / s, and the calculated yaw rate difference is 0.1 rad / s. In this case, the yaw rate difference meets the range requirement, and the process proceeds to S704. If the yaw rate difference is -0.25 rad / s or 0.25 rad / s, the process proceeds to S705.
[0087] In S704 , the initial compensation value is saved as the yaw rate compensation value under the current working condition.
[0088] When the difference Δ satisfies a predetermined threshold range, the initial compensation value is saved and output.
[0089] In S705 , it is determined whether the difference between the third yaw rate and the fifth yaw rate is greater than zero.
[0090] When the difference Δ (Δ=r3-r5=r3-r0-r4) does not meet the predetermined threshold range, the initial compensation value r0 needs to be adjusted. The basis for the adjustment is to determine the magnitude of the third yaw rate r3 and the compensated fifth yaw rate r5, that is, to determine whether the difference Δ between the two is greater than 0. If the difference Δ is greater than 0, proceed to S706; if the difference Δ is less than 0, proceed to S707.
[0091] In S706, the initial compensation value is increased in equal steps.
[0092] If the yaw rate difference Δ is 0.25 rad / s, the initial compensation value r0 can be incremented in equal steps. For example, the initial compensation value r0 is increased by 0.05 rad / s, and the process returns to S701-S702 to obtain a new yaw rate difference Δ'=0.2 rad / s. Then, it is determined whether the new yaw rate difference Δ' meets the predetermined threshold range, and the process of method 700 is looped until the initial compensation value is adjusted to the new yaw rate difference Δ' meets the predetermined threshold range, and the updated compensation value is output.
[0093] In S707, the initial compensation value is decreased in equal steps.
[0094] If the yaw rate difference Δ is -0.25 rad / s, the initial compensation value r0 can be decreased in equal steps. For example, the initial compensation value r0 is decreased by 0.05 rad / s, and the process returns to S701-S702 to obtain a new yaw rate difference Δ'=-0.2 rad / s. Then, it is determined whether the new yaw rate difference Δ' meets the predetermined threshold range, and the process of method 700 is looped until the initial compensation value is adjusted to the new yaw rate difference Δ' meets the predetermined threshold range, and the updated compensation value is output.
[0095] When the vehicle is stationary, due to factors such as zero drift of the yaw rate sensor itself, it is necessary to calculate the static yaw rate compensation value. In some examples, the yaw rate values sent by the vehicle CAN bus in several cycles (for example, 5 cycles) can be obtained and the average value can be calculated. The average value can be used as the yaw rate compensation value when the vehicle is static.
[0096] When the vehicle is in a driving state, the yaw rate of the current driving state can be corrected based on the static yaw rate compensation value and the above yaw rate compensation value. That is, the yaw angle correction of the vehicle in the driving state adopts a combination of static correction and dynamic correction methods. When determining the deviation compensation value, by combining it with different states of the vehicle, the sufficiency and comprehensiveness of determining the test deviation compensation value can be improved, thereby improving accuracy and reliability.
[0097] In some embodiments, when the dynamic signal is collected by the sensor on the vehicle, the received signal may be subjected to linear filtering. For example, the current wheel speed detected by the wheel speed sensor is Whlspd, which must satisfy the following equations (1) and (2).
[0098] Whlspdmin≤Whlspd≤Whlspdmin (1)
[0099] ΔWhlspdmin≤|ΔWhlspd|≤ΔWhlspdmax (2)
[0100] Among them, ΔWhlspd is the wheel speed difference between the previous and next two cycles, Whlspdmin and Whlspdmin are the minimum and maximum wheel speeds respectively, and ΔWhlspdmin and ΔWhlspdmax are the minimum and maximum wheel speed differences.
[0101] Similar linear filtering can be performed on other dynamic signals, such as lateral acceleration, longitudinal acceleration, turning angle, and yaw rate. When the received dynamic signals meet the preset range, these signals are valid signals and can be used in the calculation process of the yaw rate compensation value. Otherwise, these signals are invalid signals and the output is 0.
[0102] Figure 8 A schematic diagram of a vehicle lateral control device 800 in an embodiment of the present application is shown. The device 800 includes the following modules.
[0103] The acquisition module 810 is configured to acquire a first yaw angular velocity of the vehicle when the vehicle is in a driving state.
[0104] The determination module 820 is configured to determine a yaw rate compensation value corresponding to the first driving state, wherein the yaw rate compensation value is used to correct the first yaw rate, and the yaw rate compensation value is calculated by the difference between a third yaw rate obtained in the bench test and a fourth yaw rate calculated using the vehicle kinematic model.
[0105] The correction module 830 is configured to correct the first yaw rate according to the yaw rate compensation value to obtain a second yaw rate.
[0106] The control module 840 is configured to perform lateral control on the vehicle according to the second yaw rate.
[0107] The vehicle lateral control device provided in the embodiment of the present application can be used to execute the technical solution of the vehicle lateral control method in the above embodiment. Its implementation principle and technical effect are similar and will not be repeated here.
[0108] Reference now Fig. 9 , which is a block diagram of an electronic device 900 according to an embodiment of the present application. The electronic device 900 may include one or more processors 902, a system control logic 908 connected to at least one of the processors 902, a system memory 904 connected to the system control logic 908, a non-volatile memory (NVM) 906 connected to the system control logic 908, and a network interface 910 connected to the system control logic 908.
[0109] The processor 902 may include one or more single-core or multi-core processors. The processor 902 may include any combination of general-purpose processors and special-purpose processors (e.g., graphics processors, application processors, baseband processors, etc.). In the embodiments of the present invention, the processor 902 may be configured to execute the following: Figure 2-8 One or more of the various embodiments shown.
[0110] In some embodiments, system control logic 908 may include any suitable interface controller to provide any suitable interface to at least one of processors 902 and / or any suitable device or component in communication with system control logic 908 .
[0111] In some embodiments, the system control logic 908 may include one or more memory controllers to provide an interface to the system memory 904. The system memory 904 may be used to load and store data and / or instructions. In some embodiments, the memory 904 of the device 900 may include any suitable volatile memory, such as a suitable dynamic random access memory (DRAM).
[0112] NVM / memory 906 may include one or more tangible, non-transitory computer-readable media for storing data and / or instructions. In some embodiments, NVM / memory 906 may include any suitable non-volatile memory such as flash memory and / or any suitable non-volatile storage device, such as at least one of a HDD (Hard Disk Drive), a CD (Compact Disc) drive, and a DVD (Digital Versatile Disc) drive.
[0113] NVM / storage 906 may include a portion of storage resources installed on a device of apparatus 900, or it may be accessible to the apparatus but not necessarily a part of the apparatus. For example, NVM / storage 906 may be accessed over a network via network interface 910.
[0114] In particular, system memory 904 and NVM / storage 906 may include, respectively, a temporary copy and a permanent copy of instructions 920. Instructions 920 may include instructions that, when executed by at least one of processors 902, cause device 900 to perform the following operations: Figure 2 , 4 In some embodiments, the instructions 920 , hardware, firmware and / or software components thereof may be additionally / alternatively placed in the system control logic 908 , the network interface 910 and / or the processor 902 .
[0115] The network interface 910 may include a transceiver for providing a radio interface for the device 900, thereby communicating with any other suitable device (such as a front-end module, an antenna, etc.) through one or more networks. In some embodiments, the network interface 910 may be integrated with other components of the device 900. For example, the network interface 910 may be integrated with at least one of the processor 902, the system memory 904, the NVM / storage 906, and a firmware device (not shown) having instructions. When at least one of the processors 902 executes the instructions, the device 900 implements Figure 2-7 One or more of the various embodiments shown.
[0116] The network interface 910 may further include any suitable hardware and / or firmware to provide a multiple-input multiple-output radio interface. For example, the network interface 910 may be a network adapter, a wireless network adapter, a telephone modem and / or a wireless modem.
[0117] In one embodiment, at least one of the processors 902 may be packaged together with logic for one or more controllers of the system control logic 908 to form a system in package (SiP). In one embodiment, at least one of the processors 902 may be integrated on the same die with logic for one or more controllers of the system control logic 908 to form a system on chip (SoC).
[0118] The device 900 may further include an input / output (I / O) device 912. The I / O device 912 may include a user interface to enable a user to interact with the device 900; and a peripheral component interface design to enable peripheral components to interact with the device 900.
[0119] In some embodiments, the user interface may include, but is not limited to, a display (e.g., an LCD display, a touch screen display, etc.), a speaker, a microphone, one or more cameras (e.g., a still image camera and / or a video camera), a flashlight (e.g., an LED flash), and a keyboard.
[0120] In some embodiments, the peripheral component interface may include, but is not limited to, a non-volatile memory port, an audio jack, and a power interface.
[0121] Each method implementation mode of the present application can be implemented in the form of software, magnetic components, firmware, etc.
[0122] Program code can be applied to input instructions to perform the functions described herein and generate output information. The output information can be applied to one or more output devices in a known manner. For purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.
[0123] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described herein is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.
[0124] One or more aspects of at least one embodiment may be implemented by representative instructions stored on a computer-readable storage medium, which represent various logic in a processor, and when the instructions are read by a machine, cause the machine to fabricate logic for performing the techniques described herein. These representations, known as "IP cores," may be stored on a tangible computer-readable storage medium and supplied to multiple customers or manufacturing facilities to load into a manufacturing machine that actually manufactures the logic or processor.
[0125] An embodiment of the present application discloses a computer-readable medium storing one or more programs executable by one or more processors to implement the vehicle lateral control method of the present application.
[0126] An embodiment of the present application discloses a computer program product, including a computer program, which implements the vehicle lateral control method of the present application when executed by a processor.
[0127] An embodiment of the present application discloses a vehicle, comprising the vehicle lateral control device of the present application and a sensor. The sensor is used to collect dynamic signals of the vehicle.
[0128] The above is a description of the implementation mode of the present application by specific specific embodiments. Those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. Although the description of the present application will be introduced in conjunction with the preferred embodiment, this does not mean that the features of this invention are limited to this implementation mode. On the contrary, the purpose of introducing the invention in conjunction with the implementation mode is to cover other options or modifications that may be extended based on the claims of the present application. In order to provide an in-depth understanding of the present application, the following description will include many specific details. The present application can also be implemented without using these details. In addition, in order to avoid confusion or blurring the focus of the present application, some specific details will be omitted in the description. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.
[0129] Furthermore, various operations will be described as multiple discrete operations in a manner that is most helpful for understanding the illustrative embodiments; however, the order of description should not be construed as implying that these operations are necessarily order dependent. In particular, these operations do not need to be performed in the order presented.
[0130] Unless the context dictates otherwise, the terms "comprising," "having," and "including" are synonymous. The phrase "A / B" means "A or B." The phrase "A and / or B" means "(A and B) or (A or B)."
[0131] As used herein, the term "module" or "unit" may refer to, be or include: an application specific integrated circuit (ASIC), an electronic circuit, a (shared, dedicated or group) processor and / or memory that executes one or more software or firmware programs, a combinational logic circuit and / or other suitable components that provide the described functionality.
[0132] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, instructions may be distributed over a network or by other computer-readable media. Therefore, machine-readable media may include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, but not limited to, floppy disks, optical disks, optical disks, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROMs), random access memories (RAMs), erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, flash memory, or a tangible machine-readable memory for transmitting information through the Internet via electrical, optical, acoustic, or other forms of propagation signals (e.g., carrier waves, infrared signals, digital signals, etc.). Therefore, machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a machine (e.g., computer) readable form.
[0133] In the accompanying drawings, some structural or method features are shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. In some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a specific figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.
[0134] It should be understood that although the terms "first", "second", etc. may be used here to describe various units or data, these units or data should not be limited by these terms. These terms are used only to distinguish one feature from another. For example, without departing from the scope of the exemplary embodiment, a first feature may be referred to as a second feature, and similarly, a second feature may be referred to as a first feature.
[0135] It should be noted that in this specification, similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0136] While the present invention has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention.
Claims
1. A vehicle lateral control method, used in electronic equipment, characterized in that: include: Acquire a first yaw angular velocity of the vehicle in a first driving state; determining a yaw rate compensation value corresponding to the first driving state, wherein the yaw rate compensation value is used to correct the first yaw rate, and the yaw rate compensation value is calculated by a difference between a third yaw rate obtained by a bench test and a fourth yaw rate calculated by using a vehicle kinematics model; Correcting the first yaw angular velocity according to the yaw angular velocity compensation value to obtain a second yaw angular velocity; as well as Lateral control is performed on the vehicle according to the second yaw rate.
2. The method according to claim 1, characterized in that The process of calculating the yaw rate compensation value includes: calculating the third yaw rate under a plurality of different operating conditions in the bench test, wherein the parameters of the plurality of different operating conditions include one or more of wheel speed, acceleration, and turning angle; acquiring the third yaw angular velocity corresponding to the plurality of different operating conditions in the bench test; as well as The yaw rate compensation value is calculated and generated according to a difference between the third yaw rate and the fourth yaw rate.
3. The method according to claim 2, characterized in that The yaw rate compensation value is stored in the form of a table, wherein the table includes parameters of the plurality of different operating conditions and corresponding yaw rate compensation values; The determining of the yaw rate compensation value corresponding to the first driving state further includes: Acquiring an operating condition corresponding to the first driving state; as well as A yaw rate compensation value under the working condition of the vehicle is obtained according to the table.
4. The method according to claim 3, characterized in that In the table, the parameters of the multiple different operating conditions are set with a predetermined variation range, variation gradient and linear interpolation order.
5. The method according to claim 1, characterized in that Correcting the first yaw rate according to the yaw rate compensation value includes correcting the first yaw rate based on the yaw rate compensation value and a static yaw rate compensation value of the vehicle when the vehicle is static.
6. A vehicle lateral control method, used in electronic equipment, characterized in that: include: Acquire a first yaw angular velocity of the vehicle in a first driving state; determining a yaw rate compensation value corresponding to the first driving state, wherein the yaw rate compensation value is used to correct the first yaw rate; the process of determining the yaw rate compensation value comprises: obtaining a fifth yaw rate based on an initial compensation value and a fourth yaw rate calculated using a vehicle kinematic model; calculating a difference between a third yaw rate obtained in a bench test and the fifth yaw rate; and when the difference between the third yaw rate and the fifth yaw rate meets a predetermined threshold range, saving the initial compensation value as the yaw rate compensation value under the current working condition; when the difference between the third yaw rate and the fifth yaw rate does not meet the predetermined threshold range, adjusting the initial compensation value until the difference between the third yaw rate and the fifth yaw rate meets the predetermined threshold range; wherein when the difference is greater than 0, increasing the initial compensation value in equal steps; and when the difference is less than 0, decreasing the initial compensation value in equal steps; Correcting the first yaw rate according to the yaw rate compensation value to obtain a second yaw rate; and Lateral control is performed on the vehicle according to the second yaw rate.
7. A vehicle lateral control method, used in electronic equipment, characterized in that: include: Acquire a first yaw angular velocity of the vehicle in a first driving state; determining a yaw rate compensation value corresponding to the first driving state, wherein the yaw rate compensation value is used to correct the first yaw rate; the process of calculating the yaw rate compensation value comprises: testing a sixth yaw rate in a bench test; calculating an average value of a fourth yaw rate and the sixth yaw rate calculated using a vehicle kinematic model; and calculating the yaw rate compensation value according to a difference between a third yaw rate tested in the bench test and the average value, wherein the accuracy of the third yaw rate is higher than the accuracy of the sixth yaw rate; Correcting the first yaw rate according to the yaw rate compensation value to obtain a second yaw rate; and Lateral control is performed on the vehicle according to the second yaw rate.
8. A vehicle lateral control device, characterized in that: The device comprises: an acquisition module, configured to acquire a first yaw angular velocity of the vehicle in a first driving state; a determination module configured to determine a yaw rate compensation value corresponding to the first driving state, wherein the yaw rate compensation value is used to correct the first yaw rate, and the yaw rate compensation value is calculated by a difference between a third yaw rate obtained by a bench test and a fourth yaw rate calculated by using a vehicle kinematics model; a correction module, configured to correct the first yaw rate according to the yaw rate compensation value to obtain a second yaw rate; and A control module is configured to perform lateral control on the vehicle according to the second yaw rate.
9. A computer-readable storage medium, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: The device comprises a memory storing computer executable instructions and a processor; when the instructions are executed by the processor, the device implements the method according to any one of claims 1 to 7.
