Slope estimation method, device, electronic device and storage medium

By using the vehicle's driving acceleration and the optimal estimate of the slope at the previous moment, combined with Kalman gain and error covariance, the problem of unreliable slope estimates when the vehicle starts at low speed, acceleration, and deceleration is solved, and the accuracy of slope estimation is improved. Robustness and accuracy.

CN113792265BActive Publication Date: 2024-09-17CHINA FAW CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111060088.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-10
Publication Date
2024-09-17
Estimated Expiration
2041-09-10

AI Technical Summary

Technical Problem

When the vehicle starts at low speed, accelerates, and decelerates, the acceleration sensor value fluctuates seriously due to the instability of the vehicle itself, causing the problem of unreliable slope estimation.

Method used

By determining the slope prediction value at the current moment based on the vehicle's driving acceleration and the optimal estimate of the slope at the previous moment, and using Kalman gain and error covariance for slope estimation, combined with the difference between the slope measurement value and the predicted value, Determine the optimal slope estimate and improve the robustness of slope estimation.

Benefits of technology

Without increasing the complexity of the original slope estimation algorithm and sensor requirements, the robustness of the slope estimation algorithm in the case of vehicle body instability is improved, and a new idea is provided to improve the accuracy of slope estimation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113792265B
    Figure CN113792265B
Patent Text Reader

Abstract

The present invention discloses a slope estimation method, device, electronic device and storage medium, belonging to the field of computer technology. The method determines the slope prediction value of the vehicle at the current moment according to the driving acceleration of the vehicle at the current moment and the optimal estimated value of the slope of the vehicle at the previous moment; determines the error covariance of the slope prediction value of the vehicle at the current moment; determines the Kalman gain at the current moment according to the error covariance of the slope measurement value of the vehicle at the current moment and the error covariance of the slope prediction value of the vehicle at the current moment; determines the optimal estimated value of the slope of the vehicle at the current moment according to the Kalman gain at the current moment, the slope measurement value at the current moment, the slope prediction value at the current moment, the optimal estimated value of the slope at the previous moment, the slope estimation threshold, and the difference between the optimal estimated value of the slope at the previous moment and the slope prediction value at the current moment. A new idea is provided for slope estimation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of computer technology, and in particular to a slope estimation method, device, electronic device, and storage medium. Background Art

[0002] The current road slope estimation algorithms can be divided into methods based on kinematic models and methods based on dynamic models according to the different vehicle models used. The method based on the dynamic model uses the brake wheel cylinder pressure and the power source output torque as the estimator input, which is very dependent on the vehicle model. The parameters in the vehicle model are greatly affected by high-frequency noise, the estimation is unstable, and it is greatly affected by operations such as braking and shifting. The method based on the kinematic model uses a small number of sensors and is based on the longitudinal acceleration sensor signal. The signal in the vehicle coordinate system measured by it will be affected by the vehicle posture, especially when the vehicle starts at a low speed, accelerates, and decelerates. The vehicle posture is unstable, resulting in a certain deviation from the actual vehicle longitudinal acceleration, which has a certain impact on the accuracy of slope estimation. Summary of the invention

[0003] The present invention provides a slope estimation method, device, electronic device and storage medium to solve the problem that when a vehicle starts at a low speed, accelerates or decelerates, the acceleration sensor value fluctuates seriously due to the instability of the vehicle itself, which ultimately causes unreliable slope estimation.

[0004] In a first aspect, an embodiment of the present invention provides a slope estimation method, comprising:

[0005] Determine the predicted value of the slope of the vehicle at the current moment according to the driving acceleration of the vehicle at the current moment and the optimal estimated value of the slope of the vehicle at the previous moment;

[0006] Determine the error covariance of the predicted value of the slope of the vehicle at the current moment according to the error covariance of the optimal estimated value of the slope of the vehicle at the previous moment;

[0007] Determining a Kalman gain at a current moment according to an error covariance of a slope measurement value of the vehicle at a current moment and an error covariance of a slope prediction value of the vehicle at a current moment;

[0008] The optimal slope estimate of the vehicle at the current moment is determined based on the Kalman gain at the current moment, the slope measurement value at the current moment, the slope prediction value at the current moment, the optimal slope estimate value at the previous moment, the slope estimation threshold, and the difference between the optimal slope estimate value at the previous moment and the slope prediction value at the current moment.

[0009] In a second aspect, an embodiment of the present invention further provides a slope estimation device, comprising:

[0010] A slope prediction value determination module, used to determine the slope prediction value of the vehicle at the current moment according to the driving acceleration of the vehicle at the current moment and the optimal estimated value of the slope of the vehicle at the previous moment;

[0011] An error covariance determination module, used to determine the error covariance of the slope prediction value of the vehicle at the current moment according to the error covariance of the optimal estimated value of the slope of the vehicle at the previous moment;

[0012] A Kalman gain determination module, used to determine the Kalman gain at a current moment according to the error covariance of the slope measurement value of the vehicle at a current moment and the error covariance of the slope prediction value of the vehicle at a current moment;

[0013] The slope estimation value determination module is used to determine the optimal slope estimation value of the vehicle at the current moment based on the Kalman gain at the current moment, the slope measurement value at the current moment, the slope prediction value at the current moment, the optimal slope estimation value at the previous moment, the slope estimation threshold, and the difference between the optimal slope estimation value at the previous moment and the slope prediction value at the current moment.

[0014] In a third aspect, an embodiment of the present invention further provides an electronic device, including:

[0015] one or more processors;

[0016] A memory for storing one or more programs;

[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the slope estimation method provided by any embodiment of the present invention.

[0018] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a slope estimation method as provided in any embodiment of the present invention.

[0019] The technical solution of the embodiment of the present invention determines the predicted slope value of the vehicle at the current moment according to the driving acceleration of the vehicle at the current moment and the optimal estimated slope value of the vehicle at the previous moment, then determines the error covariance of the predicted slope value of the vehicle at the current moment according to the error covariance of the optimal estimated slope value of the vehicle at the previous moment, then determines the Kalman gain at the current moment according to the error covariance of the slope measurement value of the vehicle at the current moment and the error covariance of the slope prediction value of the vehicle at the current moment, and then determines the optimal estimated slope value of the vehicle at the current moment according to the Kalman gain at the current moment, the slope measurement value at the current moment, the predicted slope value at the current moment, the optimal estimated slope value at the previous moment, the slope estimation threshold, and the difference between the optimal estimated slope value at the previous moment and the predicted slope value at the current moment. The above technical solution solves the problem that the acceleration sensor value fluctuates seriously when the vehicle starts at a low speed, accelerates, or decelerates due to the instability of the vehicle itself, which ultimately causes unreliable slope estimation. Without increasing the complexity of the original slope estimation algorithm and the sensor requirements, the robustness of the slope estimation algorithm in the case of unstable vehicle body is improved, and a new idea for slope estimation is provided. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 is a flow chart of a slope estimation method provided by Embodiment 1 of the present invention;

[0021] Figure 2A is a flow chart of a slope estimation method provided by Embodiment 2 of the present invention;

[0022] Figure 2B This is a schematic diagram of a vehicle driving uphill provided by Embodiment 2 of the present invention;

[0023] Figure 3 is a structural schematic diagram of a slope estimation device provided in Embodiment 3 of the present invention;

[0024] Figure 4 It is a structural schematic diagram of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0025] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0026] Before introducing the embodiments of the present invention, the basic idea of ​​the present invention is first described, and the specific process is as follows:

[0027] First, based on the vehicle's driving acceleration, the vehicle's longitudinal acceleration sensor measurement results, the road slope, gravity acceleration, etc., a vehicle motion model of the vehicle's longitudinal acceleration sensor measurement results and the road slope is constructed. Specifically, the vehicle motion model can be determined by the following formula:

[0028]

[0029] Among them, a x Represents the vehicle's longitudinal acceleration sensor measurement results, represents the vehicle's driving acceleration, g represents the acceleration due to gravity, and i represents the road slope.

[0030] Then, the vehicle motion model is converted into a linear system state space model. Specifically, since the road slope changes slowly relative to the vehicle's own dynamic state, the time derivative can be approximated to zero, and the differential equation group can be obtained:

[0031]

[0032] Furthermore, the above equation is discretized to obtain the state space equation of the slope estimation system at time k, as follows:

[0033]

[0034] in, v represents the vehicle speed, i represents the road slope, represents the system input matrix, It is represented as the observation matrix, Expressed as a state transfer matrix, z k represents the observed value of the system, w k is the process noise, which represents the deviation between the system state space equation and the actual measurement process, v k is the measurement noise, which represents the accuracy error of the sensor.

[0035] Then, the slope estimation is performed based on the improved Kalman filter algorithm, mainly by improving the state update link in the Kalman filter algorithm. The specific description is given in the following embodiment.

[0036] Embodiment 1

[0037] Figure 1 This is a flow chart of a slope estimation method provided in Example 1 of the present invention. This embodiment is applicable to situations where a vehicle performs slope estimation when starting at a low speed, accelerating or decelerating. The method can be executed by a slope estimation device, which can be implemented by software and / or hardware and can be integrated into an electronic device that carries the slope estimation function, such as a vehicle controller.

[0038] like Figure 1As shown, the method may specifically include:

[0039] S110. Determine a predicted value of the slope of the vehicle at the current moment according to the driving acceleration of the vehicle at the current moment and the optimal estimated value of the slope of the vehicle at the previous moment.

[0040] In this embodiment, the above-mentioned slope estimation system state space equation can be combined to input the vehicle's driving acceleration at the current moment and the vehicle's optimal slope estimation value at the previous moment into the slope prediction model to obtain the vehicle's slope prediction value at the current moment. For example, the vehicle's slope prediction value at the current moment can be determined by the following formula:

[0041]

[0042] in, represents the slope prediction value at the current moment, It is represented as the optimal estimated value of the slope at the previous moment, A is represented as the state transfer matrix, B is represented as the system input matrix, u k Indicates the longitudinal acceleration sensor measurement result at the current moment, including the vehicle's driving acceleration at the current moment.

[0043] S120. Determine the error covariance of the predicted slope value of the vehicle at the current moment according to the error covariance of the optimal estimated value of the slope of the vehicle at the previous moment.

[0044] In this embodiment, the error covariance of the optimal estimated value of the slope of the vehicle at the previous moment is input into the error determination model to obtain the error covariance of the predicted value of the slope of the vehicle at the current moment. For example, the error covariance of the predicted value of the slope of the vehicle at the current moment can be determined by the following formula:

[0045]

[0046] in, It is expressed as the error covariance of the slope prediction value at the current moment, P k-1 denoted as the error covariance of the optimal estimated value of the slope at the previous moment, and Q denoted as the process noise covariance, which can be obtained by those skilled in the art through comparative experiments according to actual conditions.

[0047] S130. Determine the Kalman gain at the current moment according to the error covariance of the slope measurement value of the vehicle at the current moment and the error covariance of the slope prediction value of the vehicle at the current moment.

[0048] In this embodiment, the error covariance of the slope measurement value of the vehicle at the current moment and the error covariance of the slope prediction value of the vehicle at the current moment are input into the Kalman gain determination model, and the Kalman gain at the current moment is output. For example, the Kalman gain at the current moment can be determined by the following formula:

[0049]

[0050] Among them, K k Expressed as the Kalman gain at the current moment, It is expressed as the error covariance of the slope prediction value at the current moment, and R is the measurement variance obtained through long-term probability statistics of the sensor measurement data.

[0051] S140, determine the optimal estimated value of the slope of the vehicle at the current moment based on the Kalman gain at the current moment, the slope measurement value at the current moment, the slope prediction value at the current moment, the optimal estimated value of the slope at the previous moment, the slope estimation threshold, and the difference between the optimal estimated value of the slope at the previous moment and the slope prediction value at the current moment.

[0052] Optionally, if the absolute value of the difference between the optimal estimated value of the slope at the previous moment and the predicted value of the slope at the current moment is greater than the slope estimation threshold, the optimal estimated value of the slope at the current moment is determined according to the slope estimation threshold and the optimal estimated value of the slope at the previous moment. Specifically, if the optimal estimated value of the slope at the previous moment is less than the predicted value of the slope at the current moment, and the absolute value of the difference between the optimal estimated value of the slope at the previous moment and the predicted value of the slope at the current moment is greater than the slope estimation threshold, the optimal estimated value of the slope at the previous moment is summed with the slope estimation threshold, and the result of the sum is used as the optimal estimated value of the slope of the vehicle at the current moment. If the optimal estimated value of the slope at the previous moment is greater than the predicted value of the slope at the current moment, and the absolute value of the difference between the optimal estimated value of the slope at the previous moment and the predicted value of the slope at the current moment is greater than the slope estimation threshold, the optimal estimated value of the slope at the previous moment is subtracted from the slope estimation threshold, and the result of the subtraction is used as the optimal estimated value of the slope of the vehicle at the current moment.

[0053] Optionally, if the absolute value of the difference between the optimal estimated value of the slope at the previous moment and the predicted value of the slope at the current moment is less than the slope estimation threshold, the optimal estimated value of the slope at the current moment is determined based on the Kalman gain at the current moment, the slope measurement value at the current moment, and the predicted value of the slope at the current moment.

[0054] For example, the optimal estimated value of the slope at the current moment can be determined by the following formula:

[0055]

[0056] in, It is represented as the optimal estimated value of the slope at the current moment, Expressed as the optimal estimate of the slope at the previous moment, Δi max Denoted as the slope estimation threshold, Represented as the slope measurement value at the current moment, K k is represented by the Kalman gain at the current moment, H is represented by the observation matrix, It is expressed as the absolute value of the difference between the optimal slope estimate at the previous moment and the slope prediction value at the current moment is less than the slope estimation threshold, z k Represents the predicted slope value at the current moment.

[0057] After determining the optimal estimated value of the slope of the vehicle at the current moment, the error covariance of the optimal estimated value of the slope at the current moment is determined according to the Kalman gain at the current moment and the error covariance of the slope prediction value at the current moment, so as to determine the error covariance of the optimal estimated value of the slope at the next moment, that is, to update the error covariance of the optimal estimated value of the slope. Specifically, it can be determined by the following formula:

[0058]

[0059] Among them, P k It is represented as the error covariance of the optimal slope estimate at the current moment, I is the unit matrix, H is the observation matrix, K k Expressed as the Kalman gain at the current moment, It is expressed as the error covariance of the slope prediction value at the current moment, and R is the measurement variance obtained through long-term probability statistics of the sensor measurement data.

[0060] The technical solution of the embodiment of the present invention determines the predicted slope value of the vehicle at the current moment according to the driving acceleration of the vehicle at the current moment and the optimal estimated slope value of the vehicle at the previous moment, then determines the error covariance of the predicted slope value of the vehicle at the current moment according to the error covariance of the optimal estimated slope value of the vehicle at the previous moment, then determines the Kalman gain at the current moment according to the error covariance of the slope measurement value of the vehicle at the current moment and the error covariance of the slope prediction value of the vehicle at the current moment, and then determines the optimal estimated slope value of the vehicle at the current moment according to the Kalman gain at the current moment, the slope measurement value at the current moment, the predicted slope value at the current moment, the optimal estimated slope value at the previous moment, the slope estimation threshold, and the difference between the optimal estimated slope value at the previous moment and the predicted slope value at the current moment. The above technical solution solves the problem that the acceleration sensor value fluctuates seriously when the vehicle starts at a low speed, accelerates, or decelerates due to the instability of the vehicle itself, which ultimately causes unreliable slope estimation. Without increasing the complexity of the original slope estimation algorithm and the sensor requirements, the robustness of the slope estimation algorithm in the case of unstable vehicle body is improved, and a new idea for slope estimation is provided.

[0061] Embodiment 2

[0062] Figure 2A is a flow chart of a slope estimation method provided by Embodiment 2 of the present invention; Figure 2B This is a schematic diagram of a vehicle driving uphill provided by Example 2 of the present invention. Based on the above embodiment, further optimization is provided to provide an optional implementation scheme.

[0063] like Figure 2A As shown, the method may specifically include:

[0064] S210: Determine a predicted value of the slope of the vehicle at the current moment according to the driving acceleration of the vehicle at the current moment and the optimal estimated value of the slope of the vehicle at the previous moment.

[0065] S220. Determine the error covariance of the predicted slope value of the vehicle at the current moment according to the error covariance of the optimal estimated value of the slope of the vehicle at the previous moment.

[0066] S230: Determine the Kalman gain at the current moment according to the error covariance of the slope measurement value of the vehicle at the current moment and the error covariance of the slope prediction value of the vehicle at the current moment.

[0067] S240, determine the optimal estimated value of the slope of the vehicle at the current moment based on the Kalman gain at the current moment, the slope measurement value at the current moment, the slope prediction value at the current moment, the optimal estimated value of the slope at the previous moment, the slope estimation threshold, and the difference between the optimal estimated value of the slope at the previous moment and the slope prediction value at the current moment.

[0068] Optionally, the slope estimation threshold is determined in the following manner: determining the driving time required for the vehicle to go from a preparatory uphill state to an initial uphill state; determining the slope change rate of the slope road on which the vehicle is located based on the maximum slope of the road and the driving time; determining the slope estimation threshold based on the slope change rate, the slope change proportional coefficient, and the time interval between two adjacent slope estimates.

[0069] The uphill preparation state refers to the state where the front wheels of the vehicle have reached the bottom of the slope and are preparing to go uphill. Figure 2B The state of the vehicle in the middle dashed line; the so-called initial uphill state refers to the state when the rear wheels of the vehicle have just left the bottom of the slope and the vehicle is completely on the slope surface, such as Figure 2B The state of the vehicle in the solid middle line.

[0070] Specifically, twice the wheelbase of the vehicle is used as the driving path of the vehicle from the preparatory uphill state to the initial uphill state, such as Figure 2B , where L represents the vehicle wheelbase and v represents the vehicle speed. Then, according to the driving path and the vehicle speed, the driving time required for the vehicle to go from the preparatory uphill state to the initial uphill state is determined, for example, by the following formula:

[0071]

[0072] Among them, t slope It indicates the time required for the vehicle to travel from the preparatory uphill state to the initial uphill state, L indicates the vehicle wheelbase, and v indicates the vehicle speed.

[0073] After determining the driving time required for the vehicle to go from the preparatory uphill state to the initial uphill state, the slope change rate of the slope road where the vehicle is located is determined according to the maximum slope of the road and the driving time. For example, the maximum slope of the road is divided by the driving time, and the result of the division is used as the slope change rate of the slope road where the vehicle is located. Figure 2B As shown in max Indicates the maximum slope of the road.

[0074] After determining the slope change rate, the slope estimation threshold can be determined based on the slope change rate, the slope change proportional coefficient, and the time interval between two adjacent slope estimates. The result of multiplying the slope change rate, the slope change proportional coefficient, and the time interval between two adjacent slope estimates can be used as the slope estimation threshold.

[0075] Optionally, the slope change proportional coefficient can be set by those skilled in the art according to actual conditions. Since the wheels may slip when the vehicle starts at a low speed, accelerates or decelerates, which in turn causes the vehicle body pitch to be unstable, the longitudinal speed of the vehicle estimated based on the wheel speed is unstable, and ultimately causes the slope estimation result to fluctuate. In order to further ensure the stability and accuracy of the slope estimation, as an optional method of an embodiment of the present invention, the slope change proportional coefficient is determined according to the wheel slip level, and different slope change proportional coefficients correspond to different wheel slip levels.

[0076] For example, the wheel slip level can be determined in the following manner: determining the theoretical longitudinal acceleration according to the slope resistance and the acceleration resistance; determining the acceleration error according to the theoretical longitudinal acceleration and the actual longitudinal acceleration; and determining the wheel slip level according to the acceleration error and the slip judgment threshold. The slip judgment threshold can be set by those skilled in the art according to actual conditions.

[0077] The so-called slope resistance refers to the component force of gravity along the slope of the ramp when the wheel is traveling uphill, which is a resistance to the wheel traveling. It can be determined by the gravity acceleration, rolling resistance coefficient and vehicle weight. Optionally, the result of multiplying the gravity acceleration, rolling resistance coefficient and vehicle weight can be used as the slope resistance. For example, it can be determined by the following formula: f = mgf, where F f represents slope resistance, m represents vehicle weight, g represents gravitational acceleration, and f represents rolling resistance coefficient.

[0078] The so-called acceleration resistance refers to the inertial force that keeps the wheels moving at a constant speed. It can be determined by the vehicle's driving acceleration and vehicle weight. Optionally, the result of multiplying the vehicle's driving speed and vehicle weight can be used as the acceleration resistance. For example, it can be determined by the following formula: Among them, F j represents the acceleration resistance, m represents the vehicle weight, Indicates the vehicle's acceleration.

[0079] The so-called theoretical longitudinal acceleration refers to the acceleration of the vehicle in the direction of the ramp.

[0080] The so-called actual longitudinal acceleration refers to the longitudinal acceleration of the vehicle measured by the longitudinal acceleration sensor in the vehicle.

[0081] Optionally, the sum of the slope resistance and the acceleration resistance is divided by the vehicle weight, and the result of the division is used as the theoretical longitudinal acceleration. Then, the difference between the theoretical longitudinal acceleration and the actual longitudinal acceleration is used as the acceleration error. Furthermore, the wheel slip level is determined based on the acceleration error and the slip judgment threshold.

[0082] Exemplarily, the wheel slip level can be determined according to the acceleration error and the slip judgment threshold value. If the absolute value of the acceleration error is less than the first slip judgment threshold value, the wheel slip level is determined to be the first slip level; if the absolute value of the acceleration error is greater than the first slip judgment threshold value and less than the second slip judgment threshold value, or the absolute value of the acceleration error is greater than the third slip judgment threshold value, the wheel slip level is determined to be the second slip level; if the absolute value of the acceleration error is greater than the second slip judgment threshold value and less than the third slip judgment threshold value, the wheel slip level is determined to be the third slip level; wherein the third slip judgment threshold value is greater than the second slip judgment threshold value, and the second slip judgment threshold value is greater than the first slip judgment threshold value. The third slip judgment threshold value, the second slip judgment threshold value, and the first slip judgment threshold value can be set by those skilled in the art according to actual conditions.

[0083] It can be understood that by introducing the wheel slip level, the wheel slip situation can be identified in a timely and accurate manner, so as to accurately determine the slope change proportional coefficient, thereby improving the accuracy of the slope estimation threshold and thus improving the accuracy of the slope estimation.

[0084] The technical solution of the embodiment of the present invention determines the predicted slope value of the vehicle at the current moment according to the driving acceleration of the vehicle at the current moment and the optimal estimated slope value of the vehicle at the previous moment, then determines the error covariance of the predicted slope value of the vehicle at the current moment according to the error covariance of the optimal estimated slope value of the vehicle at the previous moment, then determines the Kalman gain at the current moment according to the error covariance of the slope measurement value of the vehicle at the current moment and the error covariance of the slope prediction value of the vehicle at the current moment, and then determines the optimal estimated slope value of the vehicle at the current moment according to the Kalman gain at the current moment, the slope measurement value at the current moment, the predicted slope value at the current moment, the optimal estimated slope value at the previous moment, the slope estimation threshold, and the difference between the optimal estimated slope value at the previous moment and the predicted slope value at the current moment. The above technical solution solves the problem that the acceleration sensor value fluctuates seriously when the vehicle starts at a low speed, accelerates, or decelerates due to the instability of the vehicle itself, which ultimately causes unreliable slope estimation. Without increasing the complexity of the original slope estimation algorithm and the sensor requirements, the robustness of the slope estimation algorithm in the case of unstable vehicle body is improved, and a new idea for slope estimation is provided.

[0085] Embodiment 3

[0086] Figure 3 It is a structural schematic diagram of a slope estimation device provided in Example 3 of the present invention; this embodiment can be applied to situations where a vehicle performs slope estimation when starting at a low speed, accelerating or decelerating. The device can be implemented by software and / or hardware and can be integrated into an electronic device that carries the slope estimation function, such as a vehicle controller.

[0087] like Figure 3 As shown, the device includes a slope prediction value determination module 310, an error covariance determination module 320, a Kalman gain determination module 330 and a slope estimation value determination module 340, wherein:

[0088] The slope prediction value determination module 310 is used to determine the slope prediction value of the vehicle at the current moment according to the driving acceleration of the vehicle at the current moment and the optimal estimated value of the slope of the vehicle at the previous moment;

[0089] An error covariance determination module 320, for determining an error covariance of a predicted value of a slope of the vehicle at a current moment according to an error covariance of an optimal estimated value of a slope of the vehicle at a previous moment;

[0090] A Kalman gain determination module 330, configured to determine a Kalman gain at a current moment according to an error covariance of a slope measurement value of the vehicle at a current moment and an error covariance of a slope prediction value of the vehicle at a current moment;

[0091] The slope estimation value determination module 340 is used to determine the optimal slope estimation value of the vehicle at the current moment based on the Kalman gain at the current moment, the slope measurement value at the current moment, the slope prediction value at the current moment, the optimal slope estimation value at the previous moment, the slope estimation threshold, and the difference between the optimal slope estimation value at the previous moment and the slope prediction value at the current moment.

[0092] The technical solution of the embodiment of the present invention determines the predicted slope value of the vehicle at the current moment according to the driving acceleration of the vehicle at the current moment and the optimal estimated slope value of the vehicle at the previous moment, then determines the error covariance of the predicted slope value of the vehicle at the current moment according to the error covariance of the optimal estimated slope value of the vehicle at the previous moment, then determines the Kalman gain at the current moment according to the error covariance of the slope measurement value of the vehicle at the current moment and the error covariance of the slope prediction value of the vehicle at the current moment, and then determines the optimal estimated slope value of the vehicle at the current moment according to the Kalman gain at the current moment, the slope measurement value at the current moment, the predicted slope value at the current moment, the optimal estimated slope value at the previous moment, the slope estimation threshold, and the difference between the optimal estimated slope value at the previous moment and the predicted slope value at the current moment. The above technical solution solves the problem that the acceleration sensor value fluctuates seriously when the vehicle starts at a low speed, accelerates, or decelerates due to the instability of the vehicle itself, which ultimately causes unreliable slope estimation. Without increasing the complexity of the original slope estimation algorithm and the sensor requirements, the robustness of the slope estimation algorithm in the case of unstable vehicle body is improved, and a new idea for slope estimation is provided.

[0093] Furthermore, the slope estimation value determination module 340 is specifically used for:

[0094] If the absolute value of the difference between the optimal estimated value of the slope at the previous moment and the predicted value of the slope at the current moment is greater than the slope estimation threshold, the optimal estimated value of the slope at the current moment is determined according to the slope estimation threshold and the optimal estimated value of the slope at the previous moment;

[0095] If the absolute value of the difference between the optimal estimated value of the slope at the previous moment and the predicted value of the slope at the current moment is less than the slope estimation threshold, the optimal estimated value of the slope at the current moment is determined based on the Kalman gain at the current moment, the slope measurement value at the current moment, and the predicted value of the slope at the current moment.

[0096] Furthermore, the slope estimation value determination module 340 includes a slope estimation threshold determination unit, and the slope estimation threshold is specifically used to:

[0097] Determine the driving time required for the vehicle to go from the preparatory uphill state to the initial uphill state;

[0098] Determine the slope change rate of the slope road where the vehicle is located according to the maximum slope of the road and the driving time;

[0099] The slope estimation threshold is determined according to the slope change rate, the slope change proportional coefficient, and the time interval between two adjacent slope estimations.

[0100] Further, the slope change proportional coefficient is determined according to the wheel slip level.

[0101] Furthermore, the slope estimation value determination module 340 further includes a theoretical longitudinal acceleration determination unit, an acceleration error determination unit and a wheel slip level determination unit, wherein:

[0102] A theoretical longitudinal acceleration determination unit, used for determining a theoretical longitudinal acceleration according to a slope resistance and an acceleration resistance;

[0103] an acceleration error determination unit, for determining an acceleration error according to a theoretical longitudinal acceleration and an actual longitudinal acceleration;

[0104] The wheel slip level determination unit is used to determine the wheel slip level according to the acceleration error and the slip judgment threshold.

[0105] Furthermore, the wheel slip level determination unit is specifically used for:

[0106] If the absolute value of the acceleration error is less than the first slip judgment threshold, the wheel slip level is determined to be the first slip level;

[0107] If the absolute value of the acceleration error is greater than the first slip judgment threshold and less than the second slip judgment threshold, or the absolute value of the acceleration error is greater than the third slip judgment threshold, the wheel slip level is determined to be the second slip level;

[0108] If the absolute value of the acceleration error is greater than the second slip judgment threshold and less than the third slip judgment threshold, the wheel slip level is determined to be the third slip judgment level; wherein the third slip judgment threshold is greater than the second slip judgment threshold, and the second slip judgment threshold is greater than the first slip judgment threshold.

[0109] The above-mentioned slope estimation device can execute the slope estimation method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0110] Embodiment 4

[0111] Figure 4 is a schematic diagram of the structure of an electronic device provided by a fourth embodiment of the present invention, Figure 4 A block diagram is shown of an exemplary apparatus suitable for implementing an exemplary embodiment of the present invention. Figure 4 The device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0112] like Figure 4 As shown, the electronic device 12 is in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0113] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0114] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.

[0115] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory (cache 32). The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 4 not shown, usually called a "hard drive"). Although Figure 4Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the embodiments of the present invention.

[0116] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described in the embodiments of the present invention.

[0117] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may communicate with one or more devices that enable a user to interact with the electronic device 12, and / or may communicate with any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the electronic device 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0118] The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, such as implementing the slope estimation method provided in the embodiment of the present invention.

[0119] Embodiment 5

[0120] Embodiment 5 of the present invention further provides a computer-readable storage medium on which a computer program (or computer executable instructions) is stored. When the program is executed by a processor, it is used to perform the slope estimation method provided in the embodiment of the present invention. The method includes:

[0121] Determine the predicted value of the slope of the vehicle at the current moment according to the driving acceleration of the vehicle at the current moment and the optimal estimated value of the slope of the vehicle at the previous moment;

[0122] Determine the error covariance of the predicted value of the slope of the vehicle at the current moment according to the error covariance of the optimal estimated value of the slope of the vehicle at the previous moment;

[0123] Determining the Kalman gain at the current moment according to the error covariance of the slope measurement value of the vehicle at the current moment and the error covariance of the slope prediction value of the vehicle at the current moment;

[0124] The optimal slope estimate of the vehicle at the current moment is determined based on the Kalman gain at the current moment, the slope measurement value at the current moment, the slope prediction value at the current moment, the optimal slope estimate value at the previous moment, the slope estimation threshold, and the difference between the optimal slope estimate value at the previous moment and the slope prediction value at the current moment.

[0125] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, a device or a device or used in combination with it.

[0126] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0127] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0128] The computer program code for performing the operation of the embodiments of the present invention can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect through the Internet).

[0129] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the embodiments of the present invention are described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A slope estimation method, characterized in that: include: Determine the predicted value of the slope of the vehicle at the current moment according to the driving acceleration of the vehicle at the current moment and the optimal estimated value of the slope of the vehicle at the previous moment; Determine the error covariance of the predicted value of the slope of the vehicle at the current moment according to the error covariance of the optimal estimated value of the slope of the vehicle at the previous moment; Determining a Kalman gain at a current moment according to an error covariance of a slope measurement value of the vehicle at a current moment and an error covariance of a slope prediction value of the vehicle at a current moment; Determine the optimal estimated value of the slope of the vehicle at the current moment according to the Kalman gain at the current moment, the slope measurement value at the current moment, the slope prediction value at the current moment, the optimal estimated value of the slope at the previous moment, the slope estimation threshold, and the difference between the optimal estimated value of the slope at the previous moment and the slope prediction value at the current moment; The step of determining the optimal slope estimate at the current moment according to the Kalman gain at the current moment, the slope measurement value at the current moment, the slope prediction value at the current moment, the optimal slope estimate value at the previous moment, the slope estimation threshold, and the difference between the optimal slope estimate value at the previous moment and the slope prediction value at the current moment comprises: If the absolute value of the difference between the optimal estimated value of the slope at the previous moment and the predicted value of the slope at the current moment is greater than the slope estimation threshold, determining the optimal estimated value of the slope at the current moment according to the slope estimation threshold and the optimal estimated value of the slope at the previous moment; If the absolute value of the difference between the optimal estimated value of the slope at the previous moment and the predicted value of the slope at the current moment is less than the slope estimation threshold, the optimal estimated value of the slope at the current moment is determined according to the Kalman gain at the current moment, the slope measurement value at the current moment, and the predicted value of the slope at the current moment; the optimal estimated value of the slope at the current moment is determined specifically by the following formula: in, It is represented as the optimal estimated value of the slope at the current moment, Expressed as the optimal estimate of the slope at the previous moment, Δi max Denoted as the slope estimation threshold, Represented as the slope measurement value at the current moment, K k is represented by the Kalman gain at the current moment, H is represented by the observation matrix, It is expressed as the absolute value of the difference between the optimal slope estimate at the previous moment and the slope prediction value at the current moment is less than the slope estimation threshold, z k Represents the predicted slope value at the current moment.

2. The method according to claim 1, characterized in that: The slope estimation threshold is determined by: Determine the driving time required for the vehicle to go from the preparatory uphill state to the initial uphill state; Determining a slope change rate of the slope on which the vehicle is located according to the maximum slope of the road and the driving time; The slope estimation threshold is determined according to the slope change rate, the slope change proportional coefficient, and the time interval between two adjacent slope estimations.

3. The method according to claim 2, characterized in that The slope change proportional coefficient is determined according to the wheel slip level.

4. The method according to claim 3, characterized in that Also includes: Determine the theoretical longitudinal acceleration based on the slope resistance and acceleration resistance; determining an acceleration error based on the theoretical longitudinal acceleration and the actual longitudinal acceleration; The wheel slip level is determined according to the acceleration error and the slip judgment threshold.

5. The method according to claim 4, characterized in that Determining the wheel slip level according to the acceleration error and the slip judgment threshold includes: If the absolute value of the acceleration error is less than the first slip judgment threshold, determining that the wheel slip level is the first slip level; If the absolute value of the acceleration error is greater than the first slip judgment threshold and less than the second slip judgment threshold, or the absolute value of the acceleration error is greater than the third slip judgment threshold, determining that the wheel slip level is the second slip level; If the absolute value of the acceleration error is greater than the second slip judgment threshold and less than the third slip judgment threshold, the wheel slip level is determined to be the third slip judgment level; wherein the third slip judgment threshold is greater than the second slip judgment threshold, and the second slip judgment threshold is greater than the first slip judgment threshold.

6. A slope estimation device, characterized in that: include: A slope prediction value determination module, used to determine the slope prediction value of the vehicle at the current moment according to the driving acceleration of the vehicle at the current moment and the optimal estimated value of the slope of the vehicle at the previous moment; An error covariance determination module, used to determine the error covariance of the slope prediction value of the vehicle at the current moment according to the error covariance of the optimal estimated value of the slope of the vehicle at the previous moment; A Kalman gain determination module, used to determine the Kalman gain at a current moment according to the error covariance of the slope measurement value of the vehicle at a current moment and the error covariance of the slope prediction value of the vehicle at a current moment; a slope estimation value determination module, configured to determine the optimal slope estimation value of the vehicle at the current moment according to the Kalman gain at the current moment, the slope measurement value at the current moment, the slope prediction value at the current moment, the optimal slope estimation value at the previous moment, a slope estimation threshold, and a difference between the optimal slope estimation value at the previous moment and the slope prediction value at the current moment; The slope estimation value determination module is specifically used for: If the absolute value of the difference between the optimal estimated value of the slope at the previous moment and the predicted value of the slope at the current moment is greater than the slope estimation threshold, determining the optimal estimated value of the slope at the current moment according to the slope estimation threshold and the optimal estimated value of the slope at the previous moment; If the absolute value of the difference between the optimal estimated value of the slope at the previous moment and the predicted value of the slope at the current moment is less than the slope estimation threshold, the optimal estimated value of the slope at the current moment is determined according to the Kalman gain at the current moment, the slope measurement value at the current moment, and the predicted value of the slope at the current moment; the optimal estimated value of the slope at the current moment is determined specifically by the following formula: in, It is represented as the optimal estimated value of the slope at the current moment, Expressed as the optimal estimate of the slope at the previous moment, Δi max Denoted as the slope estimation threshold, Represented as the slope measurement value at the current moment, K k is represented by the Kalman gain at the current moment, H is represented by the observation matrix, It is expressed as the absolute value of the difference between the optimal slope estimate at the previous moment and the slope prediction value at the current moment is less than the slope estimation threshold, z k Represents the predicted slope value at the current moment.

7. An electronic device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the slope estimation method according to any one of claims 1 to 5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the slope estimation method according to any one of claims 1 to 5 is implemented.