Slope calculation method, system and equipment for parking and medium
By identifying the vehicle posture and wheel speed direction, calculating the slope based on horizontal acceleration, and using simulation to construct the slope, the problem of low slope calculation accuracy and long delay in the existing technology is solved, and high-precision and continuous slope calculation is achieved. , to avoid the vehicle rolling away.
Patent Information
- Application Number
- CN202410680179.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-10-15
AI Technical Summary
Existing slope calculation methods during vehicle parking have problems such as low accuracy, large jumps, fast dynamic changes, and long delays, which lead to frequent vehicle rolling.
By identifying the pose based on the vehicle wheel speed value and wheel speed direction, the recognition duration is obtained, and when the preset conditions are met, the horizontal acceleration value is obtained to calculate the road slope. Otherwise, the pose is re-identified and the duration is recorded, and a continuous road slope is constructed using simulation. .
It improves the accuracy and continuity of slope calculation, reduces delay, avoids vehicle rolling, and improves the accuracy of slope calculation.
Smart Images

Figure CN118770231A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of vehicles, and in particular relates to a parking slope calculation method, system, vehicle, equipment and medium. Background Art
[0002] At present, the slope calculation in the process of vehicle parking is generally realized by the vertical acceleration perception of the IMU sensor. Its automatic parking scheme mainly collects the vertical acceleration value for rough calculation when the vehicle speed is less than 1km / h and close to stationary. There are also methods that use the vertical acceleration value to deduct the vertical change rate of the vehicle speed to obtain the slope in the range of 1km / h to 30km / h, which have different advantages and disadvantages. However, the current scheme of collecting the vertical acceleration value and deducting the speed change rate to obtain the slope when the vehicle is relatively stationary generally does not take into account the following problems: 1) The posture of the vehicle body itself (the height of the front suspension and the rear suspension will change according to the center of gravity); 2) The speed change rate of the vehicle is dynamically changing; 3) The vertical acceleration of the IMU is dynamic (unless it is absolutely stationary); 4) The delay caused by the slope calculation; 5) The difference between the calculated slope value and the true value will cause the vehicle to slide down the slope. The slope accuracy obtained by the above vehicle slope calculation method is low, which is difficult to meet the vehicle's high-precision requirements for the slope.
[0003] The present invention ensures the continuity of the slope, reduces its delay and dynamic change rate, improves the accuracy of the slope, and avoids the vehicle sliding down the slope. Summary of the invention
[0004] The present invention provides a parking slope calculation method, system, vehicle, equipment and medium to solve the problem of vehicle slipping caused by large jumps, poor continuity, fast dynamic changes, long delay and low precision in current vehicle slope calculation.
[0005] The present invention provides a parking slope calculation method, the parking slope calculation method comprising:
[0006] Identify the current position and posture of the vehicle on the road surface based on the wheel speed value and wheel speed direction of the vehicle, and obtain the recognition time for identifying the position and posture;
[0007] If the position and the recognition time meet the preset road slope calculation conditions, obtain the horizontal acceleration value based on the road surface where the vehicle is currently located, and calculate the road slope at the current vehicle position based on the horizontal acceleration value of the vehicle; otherwise
[0008] Re-identifying the position and posture of the vehicle and recording the identification time;
[0009] Construct the road slope at any time based on simulation.
[0010] As an optional implementation manner, the identifying the current position and posture of the vehicle on the road surface based on the wheel speed value and wheel speed direction of the vehicle includes:
[0011] Obtaining the wheel speed values and corresponding wheel speed directions of the front left wheel, front right wheel, rear left wheel and rear right wheel of the vehicle;
[0012] The current position of the vehicle on the road surface is identified based on the wheel speed value and the corresponding wheel speed direction.
[0013] As an optional implementation manner, the obtaining of the horizontal acceleration value of the vehicle based on the road surface, and calculating the road surface slope at the current vehicle position based on the horizontal acceleration value of the vehicle includes:
[0014] An inertial sensor is set to obtain the horizontal acceleration a of the vehicle relative to the road surface;
[0015] Calculate the slope angle θ of the road surface at the current position of the vehicle based on formula (1);
[0016] a=g*sin(θ) (1)
[0017] Here, g represents the acceleration due to gravity.
[0018] As an optional implementation, if the recognition time is no longer than a preset recognition time when the wheels of the vehicle are recognized to change from a first state to a second state, then the posture and the recognition time satisfy a preset road slope calculation condition.
[0019] As an optional implementation manner, the posture and the recognition duration satisfying a preset road slope calculation condition include:
[0020] If it is recognized that each of the front left wheel, the front right wheel, the rear left wheel and the rear right wheel of the vehicle changes from a stationary state to a forward state, and the recognition time is not greater than the first preset recognition time; then
[0021] The posture and the recognition time satisfy a preset road slope calculation condition.
[0022] As an optional implementation manner, the posture and the recognition duration satisfying a preset road slope calculation condition further includes:
[0023] If it is recognized that each of the front left wheel, the front right wheel, the rear left wheel and the rear right wheel of the vehicle changes from a stationary state to a backward state, and the recognition time is not greater than the second preset recognition time; then
[0024] The posture and the recognition time satisfy a preset road slope calculation condition.
[0025] As an optional implementation manner, the posture and the recognition duration satisfying a preset road slope calculation condition further includes:
[0026] If it is recognized that each of the front left wheel, front right wheel, rear left wheel and rear right wheel of the vehicle changes from the forward state to the reverse state, and the recognition time is not greater than the third preset recognition time; then
[0027] The posture and the recognition time satisfy a preset road slope calculation condition.
[0028] As an optional implementation manner, the posture and the recognition duration satisfying a preset road slope calculation condition further includes:
[0029] If it is recognized that each of the front left wheel, the front right wheel, the rear left wheel and the rear right wheel of the vehicle changes from a backward state to a forward state, and the recognition time is not greater than the fourth preset recognition time; then
[0030] The posture and the recognition time satisfy a preset road slope calculation condition.
[0031] As an optional implementation manner, the posture and the recognition duration satisfying a preset road slope calculation condition further includes:
[0032] If it is recognized that the wheel speed direction of each wheel of the vehicle's front left wheel, front right wheel, rear left wheel and rear right wheel does not change from the forward state or the reverse state and the wheel speed value remains constant, the recognition time length is not greater than the fifth preset recognition time length; then
[0033] The posture and the recognition time satisfy a preset road slope calculation condition.
[0034] As an optional implementation manner, if it is recognized that the wheel speed direction of each wheel of the vehicle's front left wheel, front right wheel, rear left wheel and rear right wheel does not change from the forward state or the reverse state and the wheel speed value remains constant, and the recognition time is greater than the fifth preset recognition time and not greater than the sixth preset recognition time; then
[0035] The posture and the recognition time satisfy a preset road slope calculation condition.
[0036] As an optional implementation manner, if it is recognized that the wheel speed direction of each wheel of the vehicle's front left wheel, front right wheel, rear left wheel and rear right wheel does not change from the forward state or the reverse state and the wheel speed value remains constant, and the recognition time is greater than the sixth preset recognition time and not greater than the seventh preset recognition time, the time period of the fifth recognition time is discarded from the time period of the seventh preset recognition time as the recognition time of constant wheel speed; then
[0037] The posture and the recognition time satisfy a preset road slope calculation condition.
[0038] As an optional implementation, the construction of the road slope at any time based on the simulation method includes:
[0039] The horizontal acceleration value a and the corresponding road slope sampled in time sequence according to the preset cycle duration are constructed in a simulation manner to construct the road slope of the current vehicle position which is continuous in time;
[0040] The road slope at any moment of the current vehicle position is obtained based on the recognition duration.
[0041] The present invention also provides a parking slope calculation system, the parking slope calculation system comprising:
[0042] An identification duration unit, used to identify the current posture of the vehicle on the road surface based on the wheel speed value and wheel speed direction of the vehicle, and obtain the identification duration for identifying the posture;
[0043] A road surface slope unit is used to obtain a horizontal acceleration value based on the road surface where the vehicle is currently located, and calculate the road surface slope at the current vehicle position based on the horizontal acceleration value of the vehicle if the position and the recognition time meet the preset road surface slope calculation conditions; otherwise
[0044] Re-identifying the position and posture of the vehicle and recording the identification time;
[0045] The simulation unit is used to construct the road slope at any time based on the simulation method.
[0046] The present invention also provides an electronic device, the electronic device comprising:
[0047] a memory for storing non-transitory computer-readable instructions; and
[0048] The processor is used to run computer-readable instructions, so that when the computer-readable instructions are executed by the processor, the above-mentioned parking slope calculation method is implemented.
[0049] The present invention also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on a device, the device executes the above-mentioned parking slope calculation method.
[0050] Compared with the prior art, the above technical solution of the present invention has at least one of the following advantages and beneficial effects:
[0051] 1. A parking slope calculation method provided by the present invention comprises: identifying the posture of the current vehicle at the road surface based on the wheel speed value and wheel speed direction of the vehicle, and obtaining the recognition time of the posture; if the posture and the recognition time meet the preset road surface slope calculation conditions, obtaining the horizontal acceleration value based on the road surface where the vehicle is currently located, and calculating the road surface slope of the current vehicle position based on the horizontal acceleration value of the vehicle; otherwise, re-identifying the posture of the vehicle and recording the recognition time; constructing the road surface slope at any time based on the simulation method. The present invention obtains the wheel speed values and corresponding wheel speed directions of the front left wheel, front right wheel, rear left wheel and rear right wheel of the vehicle; identifies the posture of the current vehicle at the road surface based on the wheel speed value and the corresponding wheel speed direction, and obtains the time from the initial moment to the end moment of identifying the posture; also obtains the horizontal acceleration a of the vehicle relative to the road surface by setting an inertial sensor; calculates the slope angle θ of the road surface at the current position of the vehicle based on the following formula; a=g*sin(θ), where g represents the acceleration of gravity. The parking slope calculation method of the present invention uses a simulation method to construct a high-precision road slope at any time through the vehicle's current wheel speed value and the corresponding identification time condition of the wheel speed direction, overcomes the jumpiness and large change rate of current vehicle slope calculation, and improves the continuity of slope calculation at any time. The road slope at any time is constructed by simulation, which reduces the delay in slope generation and improves the accuracy of slope calculation.
[0052] 2. The present invention also provides a parking slope calculation system, which includes: an identification time unit, which is used to identify the current vehicle's position on the road surface based on the vehicle's wheel speed value and wheel speed direction, and obtain the identification time for identifying the position; a road surface slope unit, which is used to obtain the horizontal acceleration value based on the road surface where the vehicle is currently located, and calculate the road surface slope of the current vehicle position based on the horizontal acceleration value of the vehicle if the position and the identification time meet the preset road surface slope calculation conditions; otherwise, re-identify the vehicle's position and record the identification time; a simulation unit, which is used to construct the road surface slope at any time based on the simulation method. The parking slope calculation system of the present invention uses the current vehicle wheel speed value and the corresponding wheel speed direction identification time condition to construct a high-precision road surface slope at any time in a simulation method, which overcomes the jump and large change rate of the current vehicle slope calculation, and improves the continuity of the slope calculation at any time. The road surface slope at any time is constructed in a simulation method, which reduces the delay of slope generation and improves the accuracy of slope calculation.
[0053] 3. The present invention provides an electronic device, which includes: a memory for storing non-temporary computer-readable instructions; and a processor for running computer-readable instructions, so that the computer-readable instructions are executed by the processor to implement the above-mentioned parking slope calculation method. When the parking electronic device of the present invention is in operation, it uses the current wheel speed value of the vehicle and the corresponding wheel speed direction to construct a high-precision road slope at any time in a simulation manner, which overcomes the jump and large change rate of the current vehicle slope calculation, and improves the continuity of the slope calculation at any time. The road slope at any time is constructed in a simulation manner, which reduces the delay of slope generation and improves the accuracy of slope calculation.
[0054] 4. A computer-readable storage medium provided by the present invention includes computer instructions. When the computer instructions are executed on a device, the device executes the parking slope calculation method described above. When the computer-readable storage medium of the present invention is in operation, a high-precision road slope at any time is constructed by simulation through the current wheel speed value of the vehicle and the identification time condition of the corresponding wheel speed direction, which overcomes the jump and large change rate of the current vehicle slope calculation, and improves the continuity of the slope calculation at any time. The road slope at any time is constructed by simulation, which reduces the delay of slope generation and improves the accuracy of slope calculation.
[0055] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the following specifically cites a preferred embodiment and describes it in detail with the accompanying drawings as follows. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 It is a flow chart of a parking slope calculation method according to an embodiment of the present invention;
[0057] Figure 2 is a schematic structural diagram of a parking slope calculation system according to an embodiment of the present invention;
[0058] Figure 3 It is a schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0059] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation methods, structures, features and effects proposed according to the present invention are described in detail below in conjunction with the accompanying drawings and preferred embodiments.
[0060] The present invention provides a parking slope calculation method, such as Figure 1 As shown, the parking slope calculation method includes: S1, identifying the current posture of the vehicle on the road surface based on the wheel speed value and wheel speed direction of the vehicle, and obtaining the recognition time of the posture.
[0061] It should be noted that the wheel speed value of the vehicle is a speed value not less than 0, which can be monitored and recorded in real time by the wheel speed sensor of the vehicle. The vehicle driving direction is the same as the wheel speed direction of the vehicle, and it is determined whether the vehicle is in a stationary, forward, or backward state. For example, the forward state includes starting from a stationary state to a forward state, from a backward state to a forward state, and from a forward acceleration state to a uniform forward state; the backward state includes starting from a stationary state to a backward state, from a forward state to a backward state, and from a backward acceleration state to a uniform backward state. The present invention can also determine whether the vehicle is in the above-mentioned stationary, forward, or backward state at the current moment through a radar sensor. In addition, the present invention can also control the wheel speed and wheel speed direction of the vehicle by maintaining a reasonable distance with the vehicle in front on a system that performs cruise control at a set speed through an adaptive cruise control system. For example, according to the vehicle spacing sensor, the vehicle speed sensor, and the yaw angular velocity sensor, the vehicle driving information is determined, and it is determined whether there is a vehicle driving in front of the vehicle in the same lane, and real-time monitoring is performed through a vehicle distance sensor such as a microwave radar or a distance radar. When there is no vehicle in front of the lane, the cruise control can drive according to the set wheel speed and wheel speed value; when there is a vehicle in front, the vehicle drives at a speed lower than the set wheel speed and wheel speed value to control the distance between the vehicle and the vehicle in front. Specifically, when there is no vehicle in front, the vehicle adaptive cruise system controls the vehicle to be in a normal cruise driving state, driving according to the wheel speed and wheel speed direction set by the driver, and the driver only needs to control the direction (i.e., uniform speed control); when there is a vehicle in front and the speed is relatively low, the vehicle adaptive cruise system decelerates and controls to ensure that the distance between vehicles is the set safe distance (i.e., deceleration control); when there is a vehicle in front and the distance between vehicles is equal to the safe distance, the vehicle adaptive cruise system follows and controls to ensure that the distance between vehicles remains unchanged (i.e., following control); when there is a vehicle in front that changes lanes or accelerates away, the vehicle adaptive cruise system fails to follow and controls, and when there is no vehicle in front of the vehicle, it drives at a uniform speed or accelerates according to the wheel speed and wheel speed direction set by the driver. The present invention determines the current position of the vehicle on the driving road surface through the above-mentioned wheel speed rotation direction and vehicle driving direction and in conjunction with the sensors configured on the vehicle. Specifically, when the vehicle is traveling on one of the uphill road, the horizontal road or the downhill road, the vehicle's driving position and posture is a combination of the vehicle state and the road surface state. The time range required for the vehicle sensor to identify the above-mentioned posture of the vehicle is called the recognition duration of the posture. For example, the present invention is not limited to the recognition of the four wheel speeds of the vehicle's external range, the corresponding wheel speed direction and the recognition time of the vehicle posture by the vehicle adaptive cruise system before calculating the high-precision slope during the movement of the vehicle parking.
[0062] S2: If the posture and the recognition time satisfy the preset road slope calculation conditions, obtain the horizontal acceleration value based on the road surface where the vehicle is currently located, and calculate the road slope at the current vehicle position based on the horizontal acceleration value of the vehicle; otherwise, re-identify the posture of the vehicle and record the recognition time.
[0063] It should be noted that when the vehicle's posture changes and changes from one posture to another, it is recognized by the vehicle adaptive cruise control system by the application layer, and the recognition process meets the following conditions, then the acceleration value of the inertial sensor IMU in the horizontal direction relative to the road surface is obtained. For example, the recognition time from stationary to forward / reverse state in the wheel speed direction is 200ms (including stationary to forward state, the time length of state filtering and recognition is 200ms; or from stationary to reverse state, the time length of state filtering and recognition is 200ms); or the wheel speed direction is forward or reverse direction, the recognition time of this state is 100ms; or the wheel speed direction is from reverse to forward state. Recognition time is 100ms; or when the wheel speed is forward, the recognition time with the wheel speed remaining constant is 500ms; or when the wheel speed is reversed, the recognition time for the wheel speed to remain constant is 500ms. At this time, the vehicle's posture and recognition time meet the preset road slope calculation conditions, and then the X-axis acceleration value of the IMU sensor is obtained to ensure the accuracy of the current road slope value output data and the authenticity and validity of the road slope value. When the vehicle's posture and recognition time do not meet the preset road slope calculation conditions, the vehicle's posture and recognition time continue to be recognized, and the vehicle's posture state is recognized again, and the vehicle's recognition time is calculated again until the vehicle meets the above vehicle posture and recognition time to meet the preset road slope calculation conditions.
[0064] The above identification can also be based on the alarm signal (ALM) on the vehicle stepper motor driver, an alarm signal (ERR) that can be connected to the driver of the main controller to generate an alarm and give an alarm to the outside world, and the direction control signal (DIR) and pulse signal (PUL) responsible for the forward and reverse rotation of the motor when a single pulse signal is used for control for identification and feedback.
[0065] S3, constructs the road slope at any time based on simulation.
[0066] It should be noted that after the position and recognition time meet the preset road slope calculation conditions, the horizontal acceleration (m / s) based on the road surface collected by the vehicle adaptive cruise system for a long time along the horizontal plane of the road through the inertial sensor IMU is 2 ) value, calculate the slope of the current driving road surface. For specific calculations, please refer to the following Table 1: List of slope percentages and slope angles θ (°) corresponding to the horizontal acceleration values of the road surface.
[0067] Table 1 List of slope percentages and slope angles corresponding to horizontal acceleration values of the road surface
[0068]
[0069]
[0070] The horizontal acceleration values (m / s 2 ) calculates the corresponding slope percentage and slope angle θ(°), where the slope percentage (%) is tan(θ), and the calculation method is as follows:
[0071] Horizontal acceleration value 0.17103358311 = gravity acceleration 9.8*sin(slope angle) 0.01745240644; sin(1) = 0.01745240644
[0072] X-axis acceleration 0.34201506766 = gravity acceleration 9.8*sin(slope angle) 0.0348994967; sin(2) = 0.0348994967
[0073] X-axis acceleration 0.51289237115 = gravity acceleration 9.8*sin(slope angle) 0.05233595624; sin(3) = 0.05233595624
[0074] X-axis acceleration 0.68361344265 = gravity acceleration 9.8*sin(slope angle) 0.06975647374; sin(4) = 0.06975647374
[0075] X-axis acceleration 0.85412627895 = gravity acceleration 9.8*sin(slope angle) 0.08715574275; sin(5) = 0.08715574275
[0076] X-axis acceleration 1.02437894005 = gravity acceleration 9.8*sin(slope angle) 0.10452846327; sin(6) = 0.10452846327
[0077] …
[0078] Similarly, the magnitude of different slopes can be calculated according to the calculation formula a=g*sin(θ), and a set of continuous slope values can be generated by the simulation algorithm by using the slope angle calculated by discrete sampling. For example, the interval of the above slope angle is 1°. During the simulation calculation, it is not limited to preset the change of the above slope angle to 0.5°. The specific setting is adaptively determined according to the driving conditions. Similarly, it can also be determined according to the preset interval of the slope percentage or the horizontal acceleration value, which will not be repeated here.
[0079] In one embodiment of the present invention, identifying the posture of the current vehicle at the road surface position based on the vehicle's wheel speed values and wheel speed directions includes: obtaining the wheel speed values and corresponding wheel speed directions of the vehicle's front left wheel, front right wheel, rear left wheel and rear right wheel; identifying the posture of the current vehicle at the road surface position based on the wheel speed values and the corresponding wheel speed directions.
[0080] It should be noted that the present invention monitors the status of the four wheels (including the wheel speed and the corresponding wheel speed direction) by monitoring at least four wheels on the outside of the vehicle, namely the front left wheel, the front right wheel, the rear left wheel and the rear right wheel, for example, through the corresponding signal name, the feedback signal status, and the identified corresponding vehicle posture as shown in the following Table 2 (signal name, signal status and identified corresponding vehicle posture list).
[0081] Table 2 Signal name, signal status and corresponding vehicle posture list
[0082]
[0083] Specifically, when the application layer of the vehicle adaptive cruise control system receives a signal name "IDB4_FRWhlDir" with a status value of "0x1", it indicates that the right front wheel speed is moving forward in the direction directly ahead; when the application layer receives a signal name "IDB4_RRWhlDir" with a status value of "0x2", it indicates that the right rear wheel speed is sliding backward in the direction directly ahead; when the application layer receives a signal name "IDB4_FLWhlDir" with a status value of "0x1", it indicates that the left front wheel speed is moving forward in the direction directly ahead; when the application layer receives a signal name "IDB4_RLWhlDir" with a status value of "0x1", it indicates that the left rear wheel speed is moving forward in the direction directly ahead. At this time, if "IDB4_FLWhlVelocity", "IDB4_FRWhlVelocity", "IDB4_RLWhlVelocity" and "IDB4_RRWhlVelocity" do not receive the invalid value signal of "0x3FFF=InvalidValue", the vehicle is in a state of sliding backward on the right side.
[0084] In one embodiment of the present invention, obtaining a horizontal acceleration value of a vehicle based on a road surface, and calculating a road surface slope at a current position of the vehicle based on the horizontal acceleration value of the vehicle comprises: setting an inertial sensor to obtain a horizontal acceleration a of the vehicle relative to the road surface; and calculating a slope angle θ of the road surface at the current position of the vehicle based on formula (1); a=g*sin(θ)(1), wherein g represents the acceleration due to gravity.
[0085] It should be noted that the present invention is based on the horizontal acceleration value a of the vehicle corresponding to the road surface combined with the state signals of the four wheels of the current vehicle received by the above-mentioned application layer and their corresponding states. After the posture and recognition time meet the preset road slope calculation conditions, the slope angle θ of the road surface where the current vehicle is located can be accurately calculated with high precision through formula (1).
[0086] In one embodiment of the present invention, the posture and the recognition time satisfy the preset road slope calculation condition, including: if when it is recognized that the vehicle's wheels change from a first state to a second state, the recognition time is not greater than the preset recognition time; then the posture and the recognition time satisfy the preset road slope calculation condition.
[0087] It should be noted that the wheels around the vehicle identified above are not limited to the front left wheel, front right wheel, rear left wheel and rear right wheel of the vehicle, nor are they limited to the front left wheel and front right wheel of the vehicle, or the rear left wheel and rear right wheel of the vehicle, nor are they limited to at least one wheel around the vehicle, such as at least one wheel among the front left wheel, front right wheel, rear left wheel and rear right wheel. The first state is not limited to at least one state including the static state, the forward state and the backward state, and the second state is another state of the static state, the forward state and the backward state that is different from the first state. The preset recognition time length indicates the period of time when the vehicle is recognized from the first state to the second state. The preset recognition time length can be set according to the actual situation, such as 100ms, 200ms, 300ms, 500ms, 800ms and 1000ms, etc., which will not be repeated here.
[0088] In one embodiment of the present invention, if it is recognized that each of the front left wheel, front right wheel, rear left wheel and rear right wheel of the vehicle changes from a stationary state to a moving state, and the recognition time is not greater than a first preset recognition time; then the posture and the recognition time meet the preset road slope calculation conditions.
[0089] It should be noted that when the signal value of "IDB4_FLWhlDir" changes from "0x0" to "0x1" and the vehicle is moving forward, and the signal states of the four wheels of the vehicle are monitored and identified, and the identification time is no more than 200ms (such as the first preset identification time is preset to 200ms) when the above-mentioned changes are made in sequence, the vehicle state is moving forward. At this time, the current vehicle posture and identification time of each wheel of the front left wheel, front right wheel, rear left wheel and rear right wheel of the vehicle from the stationary state to the forward state meet the preset road slope calculation conditions. At this time, the horizontal acceleration value of the vehicle based on the road surface can be obtained by the inertial sensor, and the road slope θ at the current vehicle position can be calculated based on the horizontal acceleration value of the vehicle.
[0090] In one embodiment of the present invention, if it is recognized that each of the front left wheel, front right wheel, rear left wheel and rear right wheel of the vehicle moves from a stationary state to a backward state, and the recognition time is not greater than a second preset recognition time; then the posture and the recognition time meet the preset road slope calculation conditions.
[0091] It should be noted that when the signal value of "IDB4_FLWhlDir" changes from "0x0" to "0x2" and slides backward, the recognition time when the signal states of the four wheels of the above-mentioned vehicle are monitored and recognized to undergo the above-mentioned changes in sequence is no more than 200ms (such as the second preset recognition time is preset to 200ms), wherein the second preset recognition time may be the same as or related to the first preset recognition time, or may be independent and different from and unrelated to the first preset recognition time. At this time, the vehicle state is moving forward but in a backward sliding state. At this time, the current vehicle posture and recognition time of each wheel of the front left wheel, front right wheel, rear left wheel and rear right wheel of the vehicle from a stationary state to a backward sliding state meet the preset road surface slope calculation conditions. At this time, the horizontal acceleration value of the vehicle based on the road surface can be obtained through the inertial sensor, and the road surface slope θ at the current vehicle position can be calculated based on the horizontal acceleration value of the vehicle.
[0092] In one embodiment of the present invention, if it is recognized that each of the front left wheel, front right wheel, rear left wheel and rear right wheel of the vehicle changes from a forward state to a backward state, and the recognition time is not greater than a third preset recognition time; then the posture and the recognition time meet the preset road slope calculation conditions.
[0093] It should be noted that, for example, the third preset recognition time is not limited to being preset to 100ms. Specifically, when the signal value of "IDB4_FRWhlDir" changes from "0x1" to "0x2" and the vehicle slides backward, the recognition time when the signal states of the four wheels of the vehicle are monitored and recognized to be changed in sequence is not greater than 100ms (such as the third preset recognition time is preset to 100ms), wherein the third preset recognition time can be the same as or related to the first preset recognition time, or can be independent and different from the first preset recognition time and not related, which is not limited here. At this time, the vehicle state is from the forward state to the backward state of the backward slide. At this time, each wheel of the front left wheel, front right wheel, rear left wheel and rear right wheel of the vehicle changes from the forward state to the backward state of the backward slide, and the current posture of the four wheels of the vehicle and the recognition time of 100ms meet the preset road slope calculation conditions. At this time, the horizontal acceleration value of the vehicle based on the road surface can be obtained by the inertial sensor, and the road slope θ of the current vehicle position can be calculated based on the horizontal acceleration value of the vehicle. In addition, if the signal status value of "IDB4_FLWhlVelocity" received by the application layer is "0x3FFF", and the wheel speed values of the above four vehicles are all "0x3FFF", then the four wheel speeds of the vehicle are invalid values. At this time, the vehicle may be stationary, moving forward, or sliding backward. The posture and recognition time meet the preset road slope calculation conditions, and the current road slope calculation cannot be performed. If any of the four wheel speeds of the vehicle does not receive the signal status value of "IDB4_FLWhlVelocity" as "0x3FFF" within the next timing cycle, and the current posture and recognition time of the four wheels of the vehicle are less than 100ms to meet the preset road slope calculation conditions. At this time, the horizontal acceleration value of the vehicle based on the road surface can be obtained through the inertial sensor, and the road slope θ at the current vehicle position can be calculated based on the horizontal acceleration value of the vehicle.
[0094] In one embodiment of the present invention, if it is recognized that each of the front left wheel, front right wheel, rear left wheel and rear right wheel of the vehicle changes from a rearward state to a forward state, the recognition time is not greater than a fourth preset recognition time; then the posture and the recognition time meet the preset road slope calculation conditions.
[0095] It should be noted that, for example, it is not limited to setting the fourth preset recognition time to 100ms. Specifically, when the signal value of "IDB4_RLWhlDir" changes from "0x2" to "0x1" and moves forward, when the signal states of the four wheels of the above-mentioned vehicle are monitored and recognized to undergo the above-mentioned changes in sequence, the recognition time is no more than 100ms (such as the fourth preset recognition time is preset to 100ms), wherein the fourth preset recognition time may be the same as or related to the first preset recognition time, the second preset recognition time or the third preset recognition time, or may be independent and different from and not related to the above-mentioned preset recognition time, which is not limited here. At this time, the vehicle state is from the backward state to the forward state. At this time, the front left wheel, front right wheel, rear left wheel and rear right wheel of the vehicle are in a state from backward state to forward state, and the current position and posture of the four wheels of the vehicle and the recognition time of 100ms meet the preset road slope calculation conditions. At this time, the horizontal acceleration value of the vehicle based on the road surface can be obtained through the inertial sensor, and the road slope θ of the current vehicle position can be calculated based on the horizontal acceleration value of the vehicle. In addition, if the application layer receives the signal state value of "IDB4_RLWhlDir" of "whlspdreledir" from "0x2" to "0x1", if "0x3" is received at this time, the left rear wheel speed direction is wrong, and the position and recognition time do not meet the preset road slope calculation conditions, and the current road slope calculation cannot be performed, and the vehicle's position and posture are re-recognized and the recognition time is recorded; the application layer receives the current position and posture of the four wheels of the vehicle and the recognition time of 100ms to meet the preset road slope calculation conditions for the next monitoring. At this time, the current position and posture of the four wheels of the vehicle and the recognition time of 100ms meet the preset road slope calculation conditions. At this time, the horizontal acceleration value of the vehicle based on the road surface can be obtained through the inertial sensor. At this time, the horizontal acceleration value of the vehicle based on the road surface can be obtained through the inertial sensor, and the road slope θ of the current vehicle position can be calculated based on the horizontal acceleration value of the vehicle. I will not go into details here.
[0096] In one embodiment of the present invention, the posture and the recognition time satisfy the preset road slope calculation condition and also include: if it is recognized that the wheel speed direction of each wheel of the vehicle's front left wheel, front right wheel, rear left wheel and rear right wheel does not change from the forward state or the reverse state and the wheel speed value remains constant, the recognition time is not greater than the fifth preset recognition time; then the posture and the recognition time satisfy the preset road slope calculation condition.
[0097] It should be noted that in the intelligent transportation system data bus (IDB), when the application layer receives the signal status value of "whlspdreledirvld" of "IDB4_FLWhlDir" as "0x1" and the vehicle's left rear wheel speed direction signal status is "valid signal", when the wheel speed value represented by "IDB4_RLWhlVelocity" remains constant (not limited to the same wheel speed value at the corresponding position of adjacent samples during sampling) and does not receive the invalid signal of "0x3FFF = InvalidValue", the vehicle's left rear wheel speed direction is "forward direction" and the "left rear wheel speed" remains constant at a uniform speed. At this time, after respectively identifying that the wheel speed directions and wheel speeds of the four vehicles remain constant, the wheel speed directions of the front left wheel, front right wheel, rear left wheel and rear right wheel of the vehicle remain unchanged from the forward state and wait for the wheel speed values to remain constant. At this time, the fifth preset recognition time is not limited to the preset value of 500ms. At this time, the recognition time is not greater than the fifth preset recognition time. The vehicle posture and recognition time meet the preset road slope calculation conditions. At this time, the horizontal acceleration value of the vehicle based on the road surface can be obtained through the inertial sensor, and the road slope θ at the current vehicle position is calculated based on the horizontal acceleration value of the vehicle.
[0098] In one embodiment of the present invention, when the application layer receives the signal state value of "whlspdreledirvld" of "IDB4_RRWhlDir" which is "0x2" indicating "reverse state in the direction of backward sliding slope", and when the signal state represented by the signal "IDB4_RRWhlVelocity" is "invalid value" other than "0x3FFF", the right rear wheel speed value can be sampled and determined to maintain a constant wheel speed value. When it is identified that the wheel speed direction of each wheel of the front left wheel, front right wheel, rear left wheel and rear right wheel of the vehicle does not change from the backward state and the wheel speed value remains constant. At this time, it is identified that the wheel speed direction and wheel speed of the four vehicles remain constant. At this time, the fifth preset recognition time is not limited to the preset value of 500ms. At this time, the recognition time is not greater than the fifth preset recognition time, and the vehicle posture and recognition time meet the preset road surface slope calculation conditions. At this time, the horizontal acceleration value of the vehicle based on the road surface can be obtained through the inertial sensor, and the road surface slope θ of the current vehicle position is calculated based on the horizontal acceleration value of the vehicle, which will not be repeated here.
[0099] In another embodiment of the present invention, if it is identified that the wheel speed direction of each wheel of the vehicle's front left wheel, front right wheel, rear left wheel and rear right wheel does not change from the forward state or the reverse state and the wheel speed value remains constant, the recognition time is greater than the fifth preset recognition time and not greater than the sixth preset recognition time; then the posture and the recognition time meet the preset road slope calculation condition.
[0100] It should be noted that the fifth preset recognition time and the sixth preset recognition time are two unrelated preset recognition time. For example, it is not limited to that the fifth preset recognition time may be 500ms and the sixth preset recognition time may be 800ms. That is, if the wheel speed of the above-mentioned four wheels of the vehicle remains constant and its recognition time is 500ms, if it is impossible to identify that the wheel speed of the four wheels remains constant through sampling, then the recognition time can be appropriately extended by 300ms for continued sampling, so that the recognition time for identifying that the wheel speed of the four wheels remains constant is continuous and maintained within 800ms. At this time, the posture and the recognition time meet the preset road slope calculation conditions. At this time, the horizontal acceleration value of the vehicle based on the road surface can be obtained by the inertial sensor, and the road slope θ at the current vehicle position can be calculated based on the horizontal acceleration value of the vehicle, which will not be repeated here. For example, the signal state values of the vehicle's four-wheel speed direction in "IDB4_FLWhlDir", "IDB4_FRWhlDir", "IDB4_RRWhlDir" and "IDB4_RLWhlDir" are all the same and "0x1", and the vehicle's four-wheel speeds in "IDB4_FLWhlVelocity", "IDB4_FRWhlVelocity", "IDB4_RLWhlVelocity" and "IDB4_RRWhlVelocity" are all equal and remain constant, and the recognition time of the four-wheel wheel state identified by sampling or other means does not exceed 800ms. That is, between 500ms and 800ms, the vehicle's posture and recognition time meet the preset road slope calculation conditions. At this time, the vehicle's horizontal acceleration value based on the road surface can be obtained through the inertial sensor, and the road slope θ at the current vehicle position can be calculated based on the vehicle's horizontal acceleration value, which will not be repeated here.
[0101] In another embodiment of the present invention, if it is identified that the wheel speed direction of each wheel of the vehicle's front left wheel, front right wheel, rear left wheel and rear right wheel does not change from the forward state or the reverse state and the wheel speed value remains constant, and the recognition time is greater than the sixth preset recognition time and not greater than the seventh preset recognition time, the time period of the fifth recognition time is discarded in the time period of the seventh preset recognition time as the recognition time for constant wheel speed; then the posture and the recognition time meet the preset road slope calculation condition.
[0102] It should be noted that the seventh preset recognition time is not related to the sixth preset recognition time. For example, it is not limited to the preset fifth preset recognition time of 500ms, the sixth preset recognition time of 800ms, and the seventh preset recognition time of 1000ms. When it is recognized that the wheel speed of each wheel of the front left wheel, the front right wheel, the rear left wheel and the rear right wheel of the vehicle remains constant for a recognition time between 800ms and 1000ms, the rear time of 500ms = the seventh preset recognition time - the sixth preset recognition time = 500ms can be used as the recognition time. For example, the above recognition time is not limited to being greater than 500ms, for example, the above time can also be 700ms. If more sample data of the vehicle status is collected within the period of the above seventh preset recognition time, the wheel status data of the four wheels of the vehicle partially collected within the period of the front sixth preset recognition time can be appropriately discarded, and the details are not repeated here.
[0103] In another embodiment of the present invention, the simulation-based construction of the road slope at any moment includes: constructing the road slope of the current vehicle position that is continuous in time using a simulation method based on the horizontal acceleration value a and the corresponding road slope sampled in time sequence according to a preset period duration; and obtaining the road slope at any moment of the current vehicle position based on the identification duration.
[0104] It should be noted that the present invention samples a series of horizontal acceleration values a sampled in time sequence according to a preset periodic duration such as 2ms in real time, and calculates a series of corresponding road surface slope values by formula (1). A simulation model (or simulation algorithm) is established in a simulation manner based on the above-mentioned sampled horizontal acceleration values a and the corresponding road surface slopes, and a road surface slope of the current vehicle position that is continuous in time is constructed based on the constructed simulation model (or simulation algorithm), so that the extension time of the road surface slope of the current vehicle position is greatly reduced, and the constructed simulation model (or simulation algorithm) can make the theoretical slope values of the road slopes of different vehicle speeds under different road surfaces (such as uphill road surfaces, horizontal road surfaces and downhill road surfaces, the road surface slopes of the current vehicle position obtained by the simulation method are kept continuous in time) close to the actual slope values, thereby improving the accuracy of the theoretical high-precision calculation of the road slopes of different vehicle speeds.
[0105] The present invention also provides a parking slope calculation system, such as Figure 2As shown, the parking slope calculation system 400 includes: an identification time unit 410, which is used to identify the current posture of the vehicle at the road surface position based on the wheel speed value and the wheel speed direction of the vehicle, and obtain the identification time for identifying the posture; a road surface slope unit 420, which is used to obtain the horizontal acceleration value based on the road surface where the vehicle is currently located, and calculate the road surface slope at the current vehicle position based on the horizontal acceleration value of the vehicle if the posture and the identification time meet the preset road surface slope calculation conditions; otherwise, re-identify the vehicle's posture and record the identification time; a simulation unit 430, which is used to construct the road surface slope at any time based on a simulation method.
[0106] It should be noted that the identification time unit 410, the road slope unit 420 and the simulation unit 430 included in the vehicle speed control system 400 execute the process of the above-mentioned parking slope calculation method when running. Please refer to the corresponding method part above for details, which will not be repeated here.
[0107] The present invention also provides an electronic device, such as Figure 3 As shown, the electronic device 500 includes: a memory 510 for storing non-temporary computer-readable instructions 530; and a processor 520 for running the computer-readable instructions 530, so that when the computer-readable instructions 530 are executed by the processor 520, the above-mentioned parking slope calculation method is implemented.
[0108] The present invention also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on a device, the device executes the above-mentioned parking slope calculation method.
[0109] It should be noted that any process or method description in the flowchart or otherwise described herein may be understood to represent a module, fragment or portion of a code comprising one or more executable instructions for implementing the steps of a specific logical function or process, and that the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.
[0110] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or otherwise processing in a suitable manner if necessary, and then stored in a computer memory.
[0111] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0112] A person skilled in the art may understand that all or part of the steps included in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one of the steps of the method embodiment or a combination thereof.
[0113] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be partially implemented in the form of hardware, or may be implemented in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0114] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.
[0115] The above are only preferred embodiments of the present invention, and are not intended to limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not intended to limit the present invention. Any technician familiar with the profession can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention still fall within the scope of the technical solution of the present invention.
Claims
1. A parking slope calculation method, characterized in that: include: Identify the current position and posture of the vehicle on the road surface based on the wheel speed value and wheel speed direction of the vehicle, and obtain the recognition time for identifying the position and posture; If the position and the recognition time satisfy a preset road slope calculation condition, a horizontal acceleration value based on the road surface where the vehicle is currently located is obtained, and the road slope at the current vehicle position is calculated based on the horizontal acceleration value of the vehicle; otherwise Re-identifying the position and posture of the vehicle and recording the identification time; Construct the road slope at any time based on simulation.
2. The parking slope calculation method according to claim 1, characterized in that: The identifying the posture of the current vehicle on the road surface based on the wheel speed value and wheel speed direction of the vehicle includes: Obtaining the wheel speed values and corresponding wheel speed directions of the front left wheel, front right wheel, rear left wheel and rear right wheel of the vehicle; The current position of the vehicle on the road surface is identified based on the wheel speed value and the corresponding wheel speed direction.
3. The parking slope calculation method according to claim 1, characterized in that: The posture and the recognition duration satisfying the preset road slope calculation conditions include: If it is recognized that the wheel of the vehicle changes from the first state to the second state, and the recognition time is not greater than the preset recognition time; then The posture and the recognition duration meet preset road slope calculation conditions.
4. The parking slope calculation method according to claim 3, characterized in that: If it is recognized that each of the front left wheel, the front right wheel, the rear left wheel and the rear right wheel of the vehicle changes from a stationary state to a forward state, and the recognition time is not greater than the first preset recognition time; then The posture and the recognition duration meet preset road slope calculation conditions.
5. The parking slope calculation method according to claim 3, characterized in that: If it is recognized that each of the front left wheel, front right wheel, rear left wheel and rear right wheel of the vehicle changes from a stationary state to a backward state, and the recognition time is not greater than the second preset recognition time; then The posture and the recognition time satisfy a preset road slope calculation condition.
6. The parking slope calculation method according to claim 3, characterized in that: If it is recognized that each of the front left wheel, front right wheel, rear left wheel and rear right wheel of the vehicle changes from the forward state to the reverse state, and the recognition time is not greater than the third preset recognition time; then The posture and the recognition time satisfy a preset road slope calculation condition.
7. The parking slope calculation method according to claim 3, characterized in that: If it is recognized that each of the front left wheel, the front right wheel, the rear left wheel and the rear right wheel of the vehicle changes from a backward state to a forward state, and the recognition time is not greater than the fourth preset recognition time; then The posture and the recognition time satisfy a preset road slope calculation condition.
8. The parking slope calculation method according to claim 1, characterized in that: The posture and the recognition time satisfy the preset road slope calculation condition and further include: If it is recognized that the wheel speed direction of each wheel of the vehicle's front left wheel, front right wheel, rear left wheel and rear right wheel does not change from the forward state or the reverse state and the wheel speed value remains constant, the recognition time length is not greater than the fifth preset recognition time length; then The posture and the recognition time satisfy a preset road slope calculation condition.
9. The parking slope calculation method according to claim 8, characterized in that: If it is identified that the wheel speed direction of each wheel of the vehicle's front left wheel, front right wheel, rear left wheel and rear right wheel does not change from the forward state or the reverse state and the wheel speed value remains constant, and the identification time is greater than the fifth preset identification time and not greater than the sixth preset identification time; then The posture and the recognition time satisfy a preset road slope calculation condition.
10. The parking slope calculation method according to claim 8, characterized in that: If it is recognized that the wheel speed direction of each wheel of the vehicle's front left wheel, front right wheel, rear left wheel and rear right wheel does not change from the forward state or the reverse state and the wheel speed value remains constant, and the recognition time is greater than the sixth preset recognition time and not greater than the seventh preset recognition time, the time period of the fifth recognition time is discarded from the time period of the seventh preset recognition time as the recognition time for the constant wheel speed; The posture and the recognition time satisfy a preset road slope calculation condition.
11. The parking slope calculation method according to claim 1, characterized in that: The road slope at any time is constructed based on the simulation method, including: The horizontal acceleration value a and the corresponding road slope sampled in time sequence according to the preset cycle duration are constructed in a simulation manner to construct the road slope of the current vehicle position which is continuous in time; The road slope at any moment of the current vehicle position is obtained based on the recognition duration.
12. A parking slope calculation system, characterized in that: include: An identification duration unit, used to identify the current posture of the vehicle on the road surface based on the wheel speed value and wheel speed direction of the vehicle, and obtain the identification duration for identifying the posture; A road surface slope unit, configured to obtain a horizontal acceleration value based on the road surface where the vehicle is currently located, and calculate the road surface slope at the current vehicle position based on the horizontal acceleration value of the vehicle, if the position and the recognition duration meet a preset road surface slope calculation condition; otherwise Re-identifying the position and posture of the vehicle and recording the identification time; The simulation unit is used to construct the road slope at any time based on the simulation method.
13. An electronic device, characterized in that: include: a memory for storing non-transitory computer-readable instructions; as well as A processor is used to run computer-readable instructions, so that when the computer-readable instructions are executed by the processor, the parking slope calculation method as described in any one of claims 1 to 11 is implemented.
14. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed on a device, enable the device to execute the parking slope calculation method according to any one of claims 1 to 11.
