Road slope determination method and device and computer readable storage medium
By obtaining the vehicle speed information and attitude in the vehicle and determining the filtering duration to filter the longitudinal acceleration, the problem of low slope calculation accuracy caused by changes in vehicle attitude is solved and a more accurate and stable slope measurement is achieved.
Patent Information
- Application Number
- CN202410830657.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-06
AI Technical Summary
In the existing technology, vehicle attitude changes cause acceleration sensor detection signals to fluctuate, resulting in low accuracy in road slope calculation.
By obtaining the vehicle's speed information and current attitude, the corresponding filtering duration is determined, the longitudinal acceleration is filtered, and the filtered acceleration is obtained, thereby accurately calculating the slope of the road where the vehicle is traveling.
It improves the accuracy of slope calculation, reduces the impact of vehicle attitude changes on the acceleration sensor detection signal, and ensures the accuracy and stability of slope calculation.
Smart Images

Figure CN118597153A
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle control technology, and in particular, to a method and device for determining a road slope, a computer-readable storage medium, and a vehicle system. Background Art
[0002] The existing online slope calculation method mainly uses the acceleration sensor to collect the acceleration signal of the vehicle's forward direction, obtains the angle of the vehicle's driving road through Kalman filtering, and then obtains its tangent value. However, in special working conditions, such as bumpy roads, sharp turns, sudden braking, and sudden acceleration, the acceleration collected by the acceleration sensor includes the vehicle's lateral acceleration; at the same time, the vehicle's posture changes, and the acceleration sensor will also vibrate, resulting in violent signal fluctuations. Both bring errors to the slope calculation. Summary of the invention
[0003] The main purpose of the present application is to provide a method, device, computer-readable storage medium and vehicle system for determining a road slope, so as to at least solve the problem of low accuracy of slope calculation in the prior art.
[0004] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for determining a road slope is provided, comprising: obtaining vehicle speed information, a current posture of the vehicle and a detected acceleration, wherein the current posture of the vehicle includes at least part of a reversing state, a turning state, a sudden acceleration state, a sudden deceleration state and a steady driving state, and the detected acceleration is the acceleration of the vehicle detected by a longitudinal acceleration sensor in the vehicle; determining an actual acceleration of the vehicle according to the vehicle speed information; determining a filtering time length of the detected acceleration according to the current posture of the vehicle, and filtering the detected acceleration according to the filtering time length to obtain a filtered acceleration; determining the slope of the road on which the vehicle is traveling according to the actual acceleration and the filtered acceleration.
[0005] Optionally, according to the current posture of the vehicle, the filtering duration of the detected acceleration is determined, including: when the current posture of the vehicle is the reversing state, determining the filtering duration corresponding to the reversing state as the first filtering duration; when the current posture of the vehicle is the turning state, determining the filtering duration corresponding to the turning state as the second filtering duration; when the current posture of the vehicle is the sudden acceleration state or the sudden deceleration state, according to the vehicle speed information, the actual acceleration and a predetermined relationship, determining the filtering duration corresponding to the current posture of the vehicle as the third filtering duration, the predetermined relationship representing the correspondence between the vehicle speed, acceleration and filtering time in the sudden acceleration state or the sudden deceleration state; when the current posture of the vehicle is the steady driving state, determining the filtering duration corresponding to the steady driving state as the fourth filtering duration.
[0006] Optionally, the fourth filtering duration is shorter than the second filtering duration and the third filtering duration.
[0007] Optionally, obtaining the current posture of the vehicle includes: obtaining the rate of change of accelerator pedal opening, and determining that the current posture of the vehicle is the sudden acceleration state when the rate of change of the accelerator pedal opening is greater than a first threshold; obtaining the rate of change of brake pedal opening, and determining that the current posture of the vehicle is the sudden deceleration state when the rate of change of the brake pedal opening is greater than a second threshold; obtaining the vehicle slip rate and the vehicle turning angle, and determining that the current posture of the vehicle is the turning state when the duration of the vehicle slip rate greater than a third threshold is greater than a predetermined duration and the vehicle turning angle is greater than a fourth threshold; determining whether the vehicle is in reverse gear, and determining that the current posture of the vehicle is the reversing state when the vehicle is in reverse gear; and determining that the current posture of the vehicle is the stable driving state when the vehicle is not in the reversing state, the turning state, the sudden acceleration state, and the sudden deceleration state.
[0008] Optionally, obtaining the vehicle speed information includes: when a first vehicle speed sent by an electronic brake control unit is received and the first vehicle speed is not less than a predetermined vehicle speed, determining that the source of the vehicle speed in the current cycle is the electronic brake control unit; when the first vehicle speed is not received or the first vehicle speed is less than the predetermined vehicle speed, calculating the second vehicle speed based on the output shaft speed detected by the output shaft speed sensor of the vehicle, the tire radius and the main reduction ratio, and determining that the source of the vehicle speed in the current cycle is the output shaft speed sensor; when the source of the vehicle speed in the current cycle is the same as the source of the vehicle speed in the previous cycle, determining that the vehicle speed information is the vehicle speed value corresponding to the source of the vehicle speed information, and the previous cycle is a road slope determination cycle adjacent to the current cycle and located before the current cycle; when the source of the vehicle speed in the current cycle is different from the source of the vehicle speed in the previous cycle, determining that the vehicle speed information includes a step-like transition from the vehicle speed value corresponding to the vehicle speed source of the previous cycle to the vehicle speed value corresponding to the vehicle speed source of the current cycle.
[0009] Optionally, determining the slope of the road on which the vehicle is traveling according to the actual acceleration and the filtered acceleration includes: using formula a according to the actual acceleration and the filtered acceleration veh =-gsinθ+a lgt The angle between the driving road and the horizontal plane is calculated, where a veh is the actual acceleration, a lgt is the filtered acceleration, θ is the angle, gsinθ is the component of gravity acceleration in the driving direction of the vehicle; the percentage of the tangent value of the angle is determined as the slope.
[0010] Optionally, the detected acceleration is filtered according to the filtering duration, including: according to the filtering duration, using a Kalman filter algorithm to filter the detected acceleration; the actual acceleration of the vehicle is determined according to the vehicle speed information, including: low-pass filtering the vehicle speed information; and calculating the actual acceleration based on the vehicle speed information after low-pass filtering.
[0011] According to another aspect of the present application, a device for determining a road slope is provided, comprising: an acquisition unit, for acquiring vehicle speed information, a current posture of the vehicle and a detected acceleration, wherein the current posture of the vehicle includes at least part of a reversing state, a turning state, a sudden acceleration state, a sudden deceleration state and a steady driving state, and the detected acceleration is the acceleration of the vehicle detected by a longitudinal acceleration sensor in the vehicle; a first determination unit, for determining an actual acceleration of the vehicle according to the vehicle speed information; a second determination unit, for determining a filtering duration of the detected acceleration according to the current posture of the vehicle, and filtering the detected acceleration according to the filtering duration to obtain a filtered acceleration; and a third determination unit, for determining the slope of the road on which the vehicle is traveling according to the actual acceleration and the filtered acceleration.
[0012] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the methods described.
[0013] According to another aspect of the present application, a vehicle system is provided, comprising: a vehicle; a controller of the vehicle, comprising one or more processors, a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of the described methods.
[0014] By applying the technical solution of the present application, the vehicle speed information, the current posture of the vehicle and the detected acceleration measured by the longitudinal acceleration sensor are first obtained; then, the actual acceleration of the vehicle is determined according to the speed information; then, the corresponding filtering time is determined according to the current posture of the vehicle, which indicates whether the vehicle is in reverse, turning, rapid acceleration, rapid deceleration and steady driving, and the detected acceleration is filtered using the filtering time to obtain the filtered acceleration; finally, the slope of the vehicle's driving road is determined according to the actual acceleration and the filtered acceleration. The present application sets different filtering time for filtering for different postures of the vehicle, which not only eliminates the influence of the vehicle in different postures on the acceleration value detected by the acceleration sensor, but also ensures that the filtered acceleration value is relatively accurate, thereby ensuring that the slope obtained according to the filtered acceleration value and the actual acceleration value of the vehicle is relatively accurate, and solves the problem in the prior art that the acceleration sensor detection signal fluctuates due to changes in the vehicle posture, thereby causing the low accuracy of the slope calculation. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0016] Figure 1 A hardware structure block diagram of a mobile terminal for executing a method for determining a road slope provided in an embodiment of the present application is shown;
[0017] Figure 2 A schematic diagram showing a flow chart of a method for determining a road slope provided according to an embodiment of the present application;
[0018] Figure 3 A schematic flow chart of another method for determining a road slope provided in accordance with an embodiment of the present application is shown;
[0019] Figure 4 A schematic diagram of a structure of a vehicle located on a driving road according to an embodiment of the present application is shown;
[0020] Figure 5 A schematic flow chart of another method for determining a road slope provided in accordance with an embodiment of the present application is shown;
[0021] Figure 6 A structural block diagram of a device for determining a road slope provided according to an embodiment of the present application is shown.
[0022] The above drawings include the following reference numerals:
[0023] 102, processor; 104, memory; 106, transmission device; 108, input and output devices. DETAILED DESCRIPTION
[0024] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the accompanying drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] As introduced in the background technology, the accuracy of slope calculation in the prior art is low. To solve the above technical problems, the embodiments of the present application provide a method, device, computer-readable storage medium and vehicle system for determining the slope of a road.
[0028] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0029] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a method for determining a road slope according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0030] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for determining the road slope in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the method described is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof. The transmission device 106 is used to receive or send data via a network. The specific example of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0031] In this embodiment, a method for determining the slope of a road running on a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0032] Figure 2 FIG. 1 is a flow chart of a method for determining a road slope according to an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:
[0033] Step S201, obtaining vehicle speed information, current vehicle posture and detected acceleration of the vehicle, wherein the current vehicle posture includes at least part of a reversing state, a turning state, a sudden acceleration state, a sudden deceleration state and a steady driving state, and the detected acceleration is the acceleration of the vehicle detected by a longitudinal acceleration sensor in the vehicle;
[0034] Specifically, the detected acceleration is the acceleration of the vehicle in the driving direction detected by the longitudinal acceleration sensor. The reversing state is the state in which the vehicle performs a reversing action, the turning state is the state in which the vehicle performs a turning action, the rapid acceleration state is the state in which the acceleration of the vehicle is greater than a predetermined value, the rapid deceleration state is the state in which the acceleration of the vehicle is less than or equal to the predetermined value, and the stable driving state is the driving state in which the vehicle is in a state other than the reversing state, the turning state, the rapid acceleration state and the rapid deceleration state. The longitudinal acceleration sensor is generally integrated in the vehicle controller. Under the working conditions where the vehicle posture changes from stable driving to reversing, turning, rapid acceleration and rapid deceleration, the acceleration signal detected by the longitudinal acceleration sensor jumps accordingly.
[0035] Step S202, determining the actual acceleration of the vehicle according to the vehicle speed information;
[0036] Specifically, the actual acceleration of the vehicle can be obtained by calculating the ratio of the change in the vehicle speed information to the time taken for the change to occur.
[0037] Step S203, determining the filtering duration of the detected acceleration according to the current posture of the vehicle, and filtering the detected acceleration according to the filtering duration to obtain a filtered acceleration;
[0038] Specifically, the detected acceleration may be filtered in any suitable manner, such as Kalman filtering, limiting filtering, sliding average filtering, etc.
[0039] Step S204: determining the slope of the road on which the vehicle is traveling according to the actual acceleration and the filtered acceleration.
[0040] Specifically, the slope is the tangent percentage of the slope angle between the road on which the vehicle is located and the horizontal plane.
[0041] Through the embodiment, the vehicle speed information, the current posture of the vehicle and the detected acceleration measured by the longitudinal acceleration sensor are first obtained; then, the actual acceleration of the vehicle is determined according to the speed information; then, the corresponding filtering time is determined according to the current posture of the vehicle, which indicates whether the vehicle is in reverse, turning, rapid acceleration, rapid deceleration and stable driving, and the detected acceleration is filtered using the filtering time to obtain the filtered acceleration; finally, the slope of the vehicle's driving road is determined according to the actual acceleration and the filtered acceleration. The present application sets different filtering times for filtering for different postures of the vehicle, which not only eliminates the influence of the vehicle in different postures on the acceleration value detected by the acceleration sensor, but also ensures that the filtered acceleration value is more accurate, thereby ensuring that the slope obtained according to the filtered acceleration value and the actual acceleration value of the vehicle is more accurate, and solves the problem in the prior art that the acceleration sensor detection signal fluctuates due to changes in the vehicle posture, thereby causing the low accuracy of the slope calculation.
[0042] In order to further ensure that the filtering time is more compatible with the operating conditions of the vehicle, thereby further ensuring that the acceleration after filtering is more accurate, in an optional scheme, the filtering time of the detected acceleration is determined according to the current posture of the vehicle, including: when the current posture of the vehicle is the reversing state, determining the filtering time corresponding to the reversing state as the first filtering time; when the current posture of the vehicle is the turning state, determining the filtering time corresponding to the turning state as the second filtering time; when the current posture of the vehicle is the rapid acceleration state or the rapid deceleration state, determining the filtering time corresponding to the current posture of the vehicle as the third filtering time according to the vehicle speed information, the actual acceleration and a predetermined relationship, the predetermined relationship represents the correspondence between the vehicle speed, acceleration and filtering time in the rapid acceleration state or the rapid deceleration state; when the current posture of the vehicle is the stable driving state, determining the filtering time corresponding to the stable driving state as the fourth filtering time. In the described embodiment, the corresponding filtering time is obtained according to the current posture of the vehicle, thereby achieving adaptation of the filtering time to the driving condition of the vehicle. Compared with the solution of blindly increasing the filtering time in order to eliminate the error caused by the fluctuation of the acceleration sensor detection signal, the present embodiment designs different filtering times for different vehicle driving conditions such as reversing, turning, sudden acceleration, sudden deceleration and steady driving, so that the slope transition can be identified in time, ensuring a high recognition speed and good real-time performance, avoiding the problem of slope calculation delay caused by blindly increasing the filtering time and error accumulation caused by long-term operation, thereby further avoiding the influence of filtering on the accuracy of slope calculation.
[0043] Specifically, the fourth filtering time length is less than the second filtering time length and the third filtering time length. That is to say, when the vehicle changes from a stable driving state to a sudden acceleration state or a sudden deceleration state, the filtering time length will increase accordingly, and vice versa; when the vehicle changes from a stable driving state to a turning state, the filtering time length will also increase accordingly, and vice versa.
[0044] The correspondence between the filtering duration and the vehicle posture may be stored in the form of a correspondence table, and the filtering duration corresponding to the current posture of the vehicle may be obtained by looking up the table.
[0045] The predetermined relationship can be stored in a table form. When the current posture of the vehicle is the rapid acceleration state or the rapid deceleration state, the filtering time corresponding to the vehicle speed information and the actual acceleration can be determined from the predetermined relationship by table lookup based on the vehicle speed information and the actual acceleration, that is, the third filtering time.
[0046] In actual application, the predetermined relationship representing the corresponding relationship among the vehicle speed, the acceleration and the filtering time may be obtained through performance calibration.
[0047] Alternatively, if Figure 3 As shown, step S201: obtaining the current posture of the vehicle, including:
[0048] Step S2011: acquiring a change rate of the accelerator pedal opening, and determining that the current posture of the vehicle is the rapid acceleration state when the change rate of the accelerator pedal opening is greater than a first threshold;
[0049] Step S2012: acquiring a change rate of the brake pedal opening, and determining that the current posture of the vehicle is the rapid deceleration state when the change rate of the brake pedal opening is greater than a second threshold;
[0050] Step S2013: acquiring a vehicle slip rate and a vehicle turning angle, and determining that the current posture of the vehicle is the turning state when the duration of the vehicle slip rate being greater than the third threshold is greater than a predetermined duration and the vehicle turning angle is greater than a fourth threshold;
[0051] Specifically, when the duration of the vehicle slip ratio being greater than the third threshold is greater than a predetermined duration, it indicates that the vehicle is turning. When the turning angle of the vehicle is small, the driving is relatively stable, and the vibration error of the collected acceleration signal is small, and no processing is performed at this time. Therefore, it is necessary to combine the turning angle of the vehicle to determine whether the vehicle is in a turning state that requires filtering. When the vehicle is turning, and the turning angle of the vehicle is greater than the fourth threshold, it is determined that the vehicle is turning a larger turn, and at this time, the signal collected by the longitudinal acceleration sensor needs to be filtered.
[0052] Step S2014: determining whether the vehicle is in reverse gear, and if the vehicle is in reverse gear, determining that the current posture of the vehicle is the reverse state;
[0053] Step S2015: When the vehicle is not in the reversing state, the turning state, the sudden acceleration state, and the sudden deceleration state, determine that the current posture of the vehicle is the stable driving state.
[0054] In the embodiment, the rate of change of the accelerator pedal opening and the rate of change of the brake pedal opening can be used to quickly and accurately determine whether the vehicle is in a state of rapid acceleration or rapid deceleration; whether the reverse gear is engaged can be used to quickly and simply determine whether the vehicle is in a reversing state; and whether the vehicle is in a turning state can be determined more accurately based on the relationship between the vehicle's slip rate and turning angle and the threshold.
[0055] Specifically, the accelerator pedal opening and the brake pedal opening are derived from hard-wired signals, which are generally collected in a 10ms scheduling cycle. Taking the accelerator pedal opening as an example, the accelerator pedal opening at the current moment is subtracted by 10 steps, that is, the accelerator pedal opening 100ms ago, divided by the step size of 10. If the rate of change is greater than the first threshold at this time, it is considered that it has entered a rapid acceleration state. When the vehicle exits the rapid acceleration state for a period of time based on the accelerator pedal opening, the vehicle acceleration calculated by the vehicle speed is less than the calibrated threshold for a period of time, and it is considered that the vehicle enters a stable driving state at this time, then the filtering time at this time is reduced. The processing of the brake pedal opening, filtering time, and exiting the rapid deceleration state in the rapid deceleration state is the same as the above process, and this application will not repeat it.
[0056] Specifically, obtaining the vehicle slip rate and the vehicle turning angle includes: obtaining the left front wheel speed V of the vehicle lf and right front wheel speed V rf The speed difference V diff =|V lf -V rf |; When the vehicle turns right, determine the vehicle slip rate In the case of a vehicle turning left, determine the vehicle slip rate as According to the wheelbase L between the front and rear wheels of the vehicle veh The wheelbase W between the left and right wheels of the vehicle veh , determine the vehicle turning angle as Wherein, the left front wheel speed V lf and the right front wheel speed V rf It is collected and provided by the EBC (Electronic Brake Control) unit.
[0057] In some further optional embodiments, obtaining the vehicle speed information includes: when a first vehicle speed sent by an electronic brake control unit is received and the first vehicle speed is not less than a predetermined vehicle speed, determining that the source of the vehicle speed of the current cycle is the electronic brake control unit; when the first vehicle speed is not received or the first vehicle speed is less than the predetermined vehicle speed, calculating the second vehicle speed according to the output shaft speed detected by the output shaft speed sensor of the vehicle, the tire radius and the main reduction ratio, and determining that the source of the vehicle speed of the current cycle is the output shaft speed sensor; when the source of the vehicle speed of the current cycle is the same as the source of the vehicle speed of the previous cycle, determining that the vehicle speed information is the vehicle speed value corresponding to the source of the vehicle speed information, and the previous cycle is a road slope determination cycle adjacent to the current cycle and located before the current cycle; when the source of the vehicle speed of the current cycle is different from the source of the vehicle speed of the previous cycle, determining that the vehicle speed information includes a step-like transition from the vehicle speed value corresponding to the vehicle speed source of the previous cycle to the vehicle speed value corresponding to the vehicle speed source of the current cycle. In the embodiment, since the speed value collected by the EBC unit is inaccurate when the vehicle speed is low, the EBC unit is used as the speed source only when the first speed sent by the EBC unit is received and the first speed is not less than the predetermined speed. When the first speed is less than the predetermined speed or the first speed is not received, the output shaft speed sensor is determined as the speed source, and the second speed is calculated based on the detection value of the output shaft speed sensor, thereby ensuring that the obtained speed is relatively accurate. In addition, in the embodiment, when the speed source changes, the speed obtained from the speed source of the previous cycle is converted to the speed obtained from the speed source of the current cycle in a stepped ramp form with a fixed step length, thereby avoiding the problem of sudden speed changes caused by the conversion of the speed source rather than the actual speed change of the vehicle, and further ensuring the accuracy of the data for calculating the slope.
[0058] The first vehicle speed is the vehicle speed collected by the electronic brake control unit, and the second vehicle speed is the vehicle speed calculated based on the output shaft speed collected by the output shaft speed sensor. The predetermined vehicle speed is generally 3 km / h, which can be determined by calibrating the EBC unit or according to an empirical value.
[0059] Further, according to the output shaft speed detected by the output shaft speed sensor of the vehicle, the tire radius and the main reduction ratio, the second vehicle speed is calculated, including: according to the output shaft speed, the tire radius and the main reduction ratio, the second vehicle speed is determined to be Among them, v out is the second vehicle speed, in km / h; n out is the output shaft speed, in rpm; R veh is the tire radius, in m; I veh is the main reduction ratio of the vehicle.
[0060] In addition, when the difference between the first vehicle speed and the second vehicle speed collected at the same time is greater than a predetermined threshold, it is necessary to verify which sensor has a problem. At this time, the current vehicle speed can be calculated by multiplying the motor speed by the current gear ratio, and the current vehicle speed is verified with the second vehicle speed calculated by the output shaft speed sensor and the first vehicle speed sent by the EBC unit, and a more reliable vehicle speed is selected as the vehicle speed information.
[0061] According to some other exemplary embodiments of the present application, determining the slope of the road on which the vehicle is traveling according to the actual acceleration and the filtered acceleration includes: according to the actual acceleration and the filtered acceleration, using formula a veh =-gsinθ+a lgt The angle between the driving road and the horizontal plane is calculated, where a veh is the actual acceleration, a lgt is the filtered acceleration, θ is the angle, gsinθ is the component of the gravity acceleration in the driving direction of the vehicle; the tangent value percentage of the angle tanθ*100% is determined as the slope. It can be seen from the longitudinal dynamic equation of the vehicle that when the vehicle is driving on a road with a slope angle, the acceleration of the vehicle in the driving direction can be obtained by subtracting the vehicle's driving resistance and the component of the vehicle's gravity in the driving direction from the vehicle's traction force and dividing it by the vehicle's weight. Therefore, according to formula a in this embodiment, veh =-gsinθ+a lgt to calculate the slope angle, and then calculate the percentage of the tangent value of the slope angle to obtain the slope, which further ensures the accuracy of the slope calculation; in addition, the filtered acceleration used is obtained by filtering the longitudinal acceleration according to the filtering time determined by the actual posture of the vehicle, which reduces the impact of the actual working conditions of the vehicle on the fluctuation of the longitudinal acceleration, and further improves the accuracy and stability of the slope calculation.
[0062] Specifically, the acceleration of the vehicle in the driving direction can be obtained by subtracting the vehicle's driving resistance and the component of the vehicle's gravity in the driving direction from the vehicle's traction force and dividing it by the vehicle's weight. Currently, the three-axis acceleration sensor can collect the vehicle's acceleration in the longitudinal, lateral and vertical directions in real time. The vehicle's speed can be collected by the sensor or calculated using the output shaft speed. The two can be used as input to solve the angle between the vehicle's driving road and the horizontal line, such as Figure 4 As shown. Among them, gsinθ is the longitudinal component of gravity acceleration, a lgt is the longitudinal acceleration collected by the acceleration sensor, a veh is the acceleration of the car, which is calculated by derivation of the speed.
[0063] Since the accuracy of slope calculation depends on the accuracy of input signal, sensor noise, signal distortion and other problems affect the accuracy of calculation, so it is necessary to pre-process the input signal and then calculate. In some other embodiments of the present application, the detected acceleration is filtered according to the filtering time, including: according to the filtering time, the detected acceleration is filtered using Kalman filtering algorithm. The actual acceleration of the vehicle is determined according to the vehicle speed information, including: low-pass filtering the vehicle speed information; the actual acceleration is calculated according to the vehicle speed information after low-pass filtering. The slope of the driving road of the vehicle is determined according to the actual acceleration and the filtered acceleration, including: determining the initial slope of the driving road according to the actual acceleration and the filtered acceleration; low-pass filtering the initial slope to obtain the slope. Through Kalman filtering and low-pass filtering, problems such as sensor noise and signal distortion can be filtered out, and the accuracy of slope calculation can be further ensured.
[0064] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the method for determining the road slope of the present application will be described in detail below in conjunction with specific embodiments.
[0065] This embodiment relates to a specific method for determining the road slope. Figure 5 As shown, the following steps are included:
[0066] Step S1: Calculate the required original signals: vehicle speed and longitudinal acceleration signal;
[0067] Step S2: Verify the vehicle speed, specifically including: determine whether the current vehicle speed is small; if so, calculate the vehicle speed V2 according to the output shaft speed; if not, determine whether the signal of the EBC unit is normal; if normal, determine that the vehicle speed is the EC vehicle speed V1; if abnormal, calculate the vehicle speed V2 according to the output shaft speed; then determine whether the vehicle speed signal is currently converted; if yes, convert it to the converted vehicle speed value in the form of RAMP (ramp); if not or after conversion, filter the vehicle speed;
[0068] Step S3: Selecting a filtering strategy for the longitudinal acceleration signal, specifically including: determining whether the vehicle is in a reversing state, if yes, determining a filtering time t1; if no, determining whether the vehicle is in a turning state; if yes, determining a filtering time t2; if no, determining whether a brake pedal opening change rate is greater than a threshold; if yes, determining a filtering time t3; if no, determining whether an accelerator pedal opening change rate is greater than a threshold; if yes, determining a filtering time t4; if no, determining a filtering time t5;
[0069] Step S4: performing Kalman filtering on the longitudinal acceleration signal using the filtering time;
[0070] Step S5: Calculate the original value of the slope according to the filtered acceleration and the filtered vehicle speed;
[0071] Step S6: Filter the original slope value and output it.
[0072] The embodiment of the present application starts from the original signal used for slope calculation, analyzes the factors that may affect the slope calculation result item by item, designs different processing schemes for different working conditions, ensures the accuracy of slope calculation while reducing volatility, and improves the stability and practicality of the slope calculation value. Specifically analyze the source of error of the original signal of slope calculation, take special treatment for the working conditions that may cause fluctuations in the original signal, and improve the stability and practicality of slope calculation.
[0073] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0074] The present application embodiment also provides a device for determining the road slope. It should be noted that the device for determining the road slope of the embodiment of the present application can be used to execute the method for determining the road slope provided in the embodiment of the present application. The device is used to implement the embodiments and preferred implementations, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0075] The following is an introduction to the road slope determination device provided in an embodiment of the present application.
[0076] Figure 6 Schematic diagram of a device for determining a road slope according to an embodiment of the present application. Figure 6 As shown, the device comprises:
[0077] An acquisition unit 10 is used to acquire vehicle speed information, a current posture of the vehicle, and a detected acceleration, wherein the current posture of the vehicle includes at least part of a reversing state, a turning state, a sudden acceleration state, a sudden deceleration state, and a steady driving state, and the detected acceleration is the acceleration of the vehicle detected by a longitudinal acceleration sensor in the vehicle;
[0078] Specifically, the detected acceleration is the acceleration of the vehicle in the driving direction detected by the longitudinal acceleration sensor. The reversing state is the state in which the vehicle performs a reversing action, the turning state is the state in which the vehicle performs a turning action, the rapid acceleration state is the state in which the acceleration of the vehicle is greater than a predetermined value, the rapid deceleration state is the state in which the acceleration of the vehicle is less than or equal to the predetermined value, and the stable driving state is the driving state in which the vehicle is in a state other than the reversing state, the turning state, the rapid acceleration state and the rapid deceleration state. The longitudinal acceleration sensor is generally integrated in the vehicle controller. Under the working conditions where the vehicle posture changes from stable driving to reversing, turning, rapid acceleration and rapid deceleration, the acceleration signal detected by the longitudinal acceleration sensor jumps accordingly.
[0079] A first determination unit 20, configured to determine an actual acceleration of the vehicle according to the vehicle speed information;
[0080] Specifically, the actual acceleration of the vehicle can be obtained by calculating the ratio of the change in the vehicle speed information to the time taken for the change to occur.
[0081] A second determination unit 30 is used to determine a filtering duration of the detected acceleration according to the current posture of the vehicle, and filter the detected acceleration according to the filtering duration to obtain a filtered acceleration;
[0082] Specifically, the detected acceleration may be filtered in any suitable manner, such as Kalman filtering, limiting filtering, sliding average filtering, etc.
[0083] The third determination unit 40 is used to determine the slope of the road on which the vehicle is traveling according to the actual acceleration and the filtered acceleration.
[0084] Specifically, the slope is the tangent percentage of the slope angle between the road on which the vehicle is located and the horizontal plane.
[0085] Through the embodiment, the vehicle speed information, the current posture of the vehicle and the detected acceleration measured by the longitudinal acceleration sensor are obtained by the acquisition unit; the actual acceleration of the vehicle is determined by the first determination unit according to the speed information; the corresponding filtering time is determined by the second determination unit according to the current posture of the vehicle that characterizes whether the vehicle is in reverse, turning, rapid acceleration, rapid deceleration and stable driving, and the detected acceleration is filtered using the filtering time to obtain the filtered acceleration; the slope of the vehicle's driving road is determined by the third determination unit according to the actual acceleration and the filtered acceleration. The present application sets different filtering time for filtering for different postures of the vehicle, which not only eliminates the influence of the vehicle in different postures on the acceleration value detected by the acceleration sensor, but also ensures that the filtered acceleration value is more accurate, thereby ensuring that the slope obtained according to the filtered acceleration value and the actual acceleration value of the vehicle is more accurate, and solves the problem in the prior art that the acceleration sensor detection signal fluctuates due to changes in the vehicle posture, thereby causing the low accuracy of the slope calculation.
[0086] In order to further ensure that the filtering time is more compatible with the operating conditions of the vehicle, thereby further ensuring that the acceleration after filtering is more accurate, in an optional scheme, the second determination unit includes: a first determination module, which is used to determine that the filtering time corresponding to the reversing state is the first filtering time when the current posture of the vehicle is the reversing state; a second determination module, which is used to determine that the filtering time corresponding to the turning state is the second filtering time when the current posture of the vehicle is the turning state; a third determination module, which is used to determine that the filtering time corresponding to the current posture of the vehicle is the third filtering time when the current posture of the vehicle is the rapid acceleration state or the rapid deceleration state according to the vehicle speed information, the actual acceleration and a predetermined relationship, and the predetermined relationship represents the correspondence between the vehicle speed, acceleration and filtering time in the rapid acceleration state or the rapid deceleration state; a fourth determination module, which is used to determine that the filtering time corresponding to the stable driving state is the fourth filtering time when the current posture of the vehicle is the stable driving state. In the described embodiment, the corresponding filtering time is obtained according to the current posture of the vehicle, thereby achieving adaptation of the filtering time to the driving condition of the vehicle. Compared with the solution of blindly increasing the filtering time in order to eliminate the error caused by the fluctuation of the acceleration sensor detection signal, the present embodiment designs different filtering times for different vehicle driving conditions such as reversing, turning, sudden acceleration, sudden deceleration and steady driving, so that the slope transition can be identified in time, ensuring a high recognition speed and good real-time performance, avoiding the problem of slope calculation delay caused by blindly increasing the filtering time and error accumulation caused by long-term operation, thereby further avoiding the influence of filtering on the accuracy of slope calculation.
[0087] Specifically, the fourth filtering time length is less than the second filtering time length and the third filtering time length. That is to say, when the vehicle changes from a stable driving state to a sudden acceleration state or a sudden deceleration state, the filtering time length will increase accordingly, and vice versa; when the vehicle changes from a stable driving state to a turning state, the filtering time length will also increase accordingly, and vice versa.
[0088] The correspondence between the filtering duration and the vehicle posture may be stored in the form of a correspondence table, and the filtering duration corresponding to the current posture of the vehicle may be obtained by looking up the table.
[0089] The predetermined relationship can be stored in a table form. When the current posture of the vehicle is the rapid acceleration state or the rapid deceleration state, the filtering time corresponding to the vehicle speed information and the actual acceleration can be determined from the predetermined relationship by table lookup based on the vehicle speed information and the actual acceleration, that is, the third filtering time.
[0090] In actual application, the predetermined relationship representing the corresponding relationship among the vehicle speed, the acceleration and the filtering time may be obtained through performance calibration.
[0091] Optionally, the acquiring unit includes:
[0092] A first acquisition module, configured to acquire a rate of change of an accelerator pedal opening, and determine that the current posture of the vehicle is in the rapid acceleration state when the rate of change of the accelerator pedal opening is greater than a first threshold;
[0093] A second acquisition module is used to acquire a change rate of the brake pedal opening, and determine that the current posture of the vehicle is the rapid deceleration state when the change rate of the brake pedal opening is greater than a second threshold;
[0094] a third acquisition module, configured to acquire a vehicle slip rate and a vehicle turning angle, and determine that the current posture of the vehicle is the turning state when the duration of the vehicle slip rate being greater than the third threshold is greater than a predetermined duration and the vehicle turning angle is greater than a fourth threshold;
[0095] Specifically, when the duration of the vehicle slip ratio being greater than the third threshold is greater than a predetermined duration, it indicates that the vehicle is turning. When the turning angle of the vehicle is small, the driving is relatively stable, and the vibration error of the collected acceleration signal is small, and no processing is performed at this time. Therefore, it is necessary to combine the turning angle of the vehicle to determine whether the vehicle is in a turning state that requires filtering. When the vehicle is turning, and the turning angle of the vehicle is greater than the fourth threshold, it is determined that the vehicle is turning a larger turn, and at this time, the signal collected by the longitudinal acceleration sensor needs to be filtered.
[0096] a fifth determination module, configured to determine whether the vehicle is in reverse gear, and when the vehicle is in reverse gear, determine that the current posture of the vehicle is the reverse state;
[0097] The sixth determination module is used to determine that the current posture of the vehicle is the stable driving state when the vehicle is not in the reversing state, the turning state, the sudden acceleration state and the sudden deceleration state.
[0098] In the embodiment, the rate of change of the accelerator pedal opening and the rate of change of the brake pedal opening can be used to quickly and accurately determine whether the vehicle is in a state of rapid acceleration or rapid deceleration; whether the reverse gear is engaged can be used to quickly and simply determine whether the vehicle is in a reversing state; and whether the vehicle is in a turning state can be determined more accurately based on the relationship between the vehicle's slip rate and turning angle and the threshold.
[0099] Specifically, the accelerator pedal opening and the brake pedal opening are derived from hard-wired signals, which are generally collected in a 10ms scheduling cycle. Taking the accelerator pedal opening as an example, the accelerator pedal opening at the current moment is subtracted by 10 steps, that is, the accelerator pedal opening 100ms ago, divided by the step size of 10. If the rate of change is greater than the first threshold at this time, it is considered that it has entered a rapid acceleration state. When the vehicle exits the rapid acceleration state for a period of time based on the accelerator pedal opening, the vehicle acceleration calculated by the vehicle speed is less than the calibrated threshold for a period of time, and it is considered that the vehicle enters a stable driving state at this time, then the filtering time at this time is reduced. The processing of the brake pedal opening, filtering time, and exiting the rapid deceleration state in the rapid deceleration state is the same as the above process, and this application will not repeat it.
[0100] Specifically, the third acquisition module includes: an acquisition submodule for acquiring the left front wheel speed V of the vehicle lf and right front wheel speed V rf The speed difference V diff =|V lf -V rf |; The first determination submodule is used to determine the vehicle slip rate when the vehicle turns right. The second determination submodule is used to determine the vehicle slip rate when the vehicle turns left. The third determination submodule is used to determine the wheelbase L between the front and rear wheels of the vehicle according to the wheelbase L between the front and rear wheels of the vehicle. veh The wheelbase W between the left and right wheels of the vehicle veh , determine the vehicle turning angle as Wherein, the left front wheel speed V lf and the right front wheel speed V rfIt is collected and provided by the EBC (Electronic Brake Control) unit.
[0101] In some further optional embodiments, the acquisition unit includes: a seventh determination module, for determining that the source of the vehicle speed of the current cycle is the electronic brake control unit when the first vehicle speed sent by the electronic brake control unit is received and the first vehicle speed is not less than the predetermined vehicle speed; a first calculation module, for calculating the second vehicle speed according to the output shaft speed detected by the output shaft speed sensor of the vehicle, the tire radius and the main reduction ratio when the first vehicle speed is not received or the first vehicle speed is less than the predetermined vehicle speed, and determining that the source of the vehicle speed of the current cycle is the output shaft speed sensor; an eighth determination module, for determining that the vehicle speed information is the vehicle speed value corresponding to the source of the vehicle speed information when the source of the vehicle speed of the current cycle is the same as the source of the vehicle speed of the previous cycle, and the previous cycle is a road slope determination cycle adjacent to the current cycle and located before the current cycle; a ninth determination module, for determining that the vehicle speed information includes a step-type transition from the vehicle speed value corresponding to the vehicle speed source of the previous cycle to the vehicle speed value corresponding to the vehicle speed source of the current cycle when the source of the vehicle speed of the current cycle is different from the source of the vehicle speed of the previous cycle. In the embodiment, since the speed value collected by the EBC unit is inaccurate when the vehicle speed is low, the EBC unit is used as the speed source only when the first speed sent by the EBC unit is received and the first speed is not less than the predetermined speed. When the first speed is less than the predetermined speed or the first speed is not received, the output shaft speed sensor is determined as the speed source, and the second speed is calculated based on the detection value of the output shaft speed sensor, thereby ensuring that the obtained speed is relatively accurate. In addition, in the embodiment, when the speed source changes, the speed obtained from the speed source of the previous cycle is converted to the speed obtained from the speed source of the current cycle in a stepped ramp form with a fixed step length, thereby avoiding the problem of sudden speed changes caused by the conversion of the speed source rather than the actual speed change of the vehicle, and further ensuring the accuracy of the data for calculating the slope.
[0102] The first vehicle speed is the vehicle speed collected by the electronic brake control unit, and the second vehicle speed is the vehicle speed calculated based on the output shaft speed collected by the output shaft speed sensor. The predetermined vehicle speed is generally 3 km / h, which can be determined by calibrating the EBC unit or according to an empirical value.
[0103] Furthermore, the first calculation module includes: a fourth determination submodule, for determining the second vehicle speed as follows according to the output shaft speed, the tire radius and the main reduction ratio: Among them, v outis the second vehicle speed, in km / h; n out is the output shaft speed, in rpm; R veh is the tire radius, in m; I veh is the main reduction ratio of the vehicle.
[0104] In addition, when the difference between the first vehicle speed and the second vehicle speed collected at the same time is greater than a predetermined threshold, it is necessary to verify which sensor has a problem. At this time, the current vehicle speed can be calculated by multiplying the motor speed by the current gear ratio, and the current vehicle speed is verified with the second vehicle speed calculated by the output shaft speed sensor and the first vehicle speed sent by the EBC unit, and a more reliable vehicle speed is selected as the vehicle speed information.
[0105] According to some other exemplary embodiments of the present application, the third determination unit includes: a second calculation module, configured to calculate the acceleration according to the actual acceleration and the filtered acceleration using formula a veh =-gsinθ+a lgt The angle between the driving road and the horizontal plane is calculated, where a veh is the actual acceleration, a lgt is the filtered acceleration, θ is the angle, gsinθ is the component of gravity acceleration in the driving direction of the vehicle; the tenth determination module is used to determine the tangent value percentage of the angle tanθ*100% as the slope. It can be seen from the longitudinal dynamic equation of the vehicle that when the vehicle is driving on a road with a slope angle, the acceleration of the vehicle in the driving direction can be obtained by subtracting the vehicle driving resistance and the component force of the vehicle gravity in the driving direction from the vehicle traction force and dividing it by the vehicle weight. Therefore, according to formula a in this embodiment, veh =-gsinθ+a lgt to calculate the slope angle, and then calculate the percentage of the tangent value of the slope angle to obtain the slope, which further ensures the accuracy of the slope calculation; in addition, the filtered acceleration used is obtained by filtering the longitudinal acceleration according to the filtering time determined by the actual posture of the vehicle, which reduces the impact of the actual working conditions of the vehicle on the fluctuation of the longitudinal acceleration, and further improves the accuracy and stability of the slope calculation.
[0106] Specifically, the acceleration of the vehicle in the driving direction can be obtained by subtracting the vehicle's driving resistance and the component of the vehicle's gravity in the driving direction from the vehicle's traction force and dividing it by the vehicle's weight. Currently, the three-axis acceleration sensor can collect the vehicle's acceleration in the longitudinal, lateral and vertical directions in real time. The vehicle's speed can be collected by the sensor or calculated using the output shaft speed. The two can be used as input to solve the angle between the vehicle's driving road and the horizontal line, such as Figure 4 As shown. Among them, gsinθ is the longitudinal component of gravity acceleration, a lgt is the longitudinal acceleration collected by the acceleration sensor, aveh is the acceleration of the car, which is calculated by derivation of the speed.
[0107] Since the accuracy of slope calculation depends on the accuracy of input signal, sensor noise, signal distortion and other problems affect the accuracy of calculation, so it is necessary to pre-process the input signal and then calculate. In some other embodiments of the present application, the second determination unit includes: a first filtering module, which is used to filter the detected acceleration using Kalman filtering algorithm according to the filtering time. The first determination unit includes: a second filtering module, which is used to low-pass filter the vehicle speed information; a third calculation module, which is used to calculate the actual acceleration according to the vehicle speed information after low-pass filtering. The third determination unit includes: an eleventh determination module, which is used to determine the initial slope of the driving road according to the actual acceleration and the filtered acceleration; a third determination module, which is used to low-pass filter the initial slope to obtain the slope. Through Kalman filtering and low-pass filtering, problems such as sensor noise and signal distortion can be filtered out, and the accuracy of slope calculation can be further ensured.
[0108] The road slope determination device includes a processor and a memory, wherein the acquisition unit, the first determination unit, the second determination unit, and the third determination unit are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions. The modules are all located in the same processor; or, the modules are located in different processors in any combination.
[0109] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be provided, and the problem of low accuracy of slope calculation in the prior art can be at least solved by adjusting kernel parameters.
[0110] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0111] An embodiment of the present invention provides a computer-readable storage medium, which includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for determining the road slope.
[0112] Specifically, the method for determining the road slope includes:
[0113] Step S201, obtaining vehicle speed information, current vehicle posture and detected acceleration of the vehicle, wherein the current vehicle posture includes at least part of a reversing state, a turning state, a sudden acceleration state, a sudden deceleration state and a steady driving state, and the detected acceleration is the acceleration of the vehicle detected by a longitudinal acceleration sensor in the vehicle;
[0114] Specifically, the detected acceleration is the acceleration of the vehicle in the driving direction detected by the longitudinal acceleration sensor. The reversing state is the state in which the vehicle performs a reversing action, the turning state is the state in which the vehicle performs a turning action, the rapid acceleration state is the state in which the acceleration of the vehicle is greater than a predetermined value, the rapid deceleration state is the state in which the acceleration of the vehicle is less than or equal to the predetermined value, and the stable driving state is the driving state in which the vehicle is in a state other than the reversing state, the turning state, the rapid acceleration state and the rapid deceleration state. The longitudinal acceleration sensor is generally integrated in the vehicle controller. Under the working conditions where the vehicle posture changes from stable driving to reversing, turning, rapid acceleration and rapid deceleration, the acceleration signal detected by the longitudinal acceleration sensor jumps accordingly.
[0115] Step S202, determining the actual acceleration of the vehicle according to the vehicle speed information;
[0116] Specifically, the actual acceleration of the vehicle can be obtained by calculating the ratio of the change in the vehicle speed information to the time taken for the change to occur.
[0117] Step S203, determining the filtering duration of the detected acceleration according to the current posture of the vehicle, and filtering the detected acceleration according to the filtering duration to obtain a filtered acceleration;
[0118] Specifically, the detected acceleration may be filtered in any suitable manner, such as Kalman filtering, limiting filtering, sliding average filtering, etc.
[0119] Step S204: determining the slope of the road on which the vehicle is traveling according to the actual acceleration and the filtered acceleration.
[0120] Specifically, the slope is the tangent percentage of the slope angle between the road on which the vehicle is located and the horizontal plane.
[0121] Optionally, according to the current posture of the vehicle, the filtering duration of the detected acceleration is determined, including: when the current posture of the vehicle is the reversing state, determining the filtering duration corresponding to the reversing state as the first filtering duration; when the current posture of the vehicle is the turning state, determining the filtering duration corresponding to the turning state as the second filtering duration; when the current posture of the vehicle is the sudden acceleration state or the sudden deceleration state, according to the vehicle speed information, the actual acceleration and a predetermined relationship, determining the filtering duration corresponding to the current posture of the vehicle as the third filtering duration, the predetermined relationship representing the correspondence between the vehicle speed, acceleration and filtering time in the sudden acceleration state or the sudden deceleration state; when the current posture of the vehicle is the steady driving state, determining the filtering duration corresponding to the steady driving state as the fourth filtering duration.
[0122] Optionally, the fourth filtering duration is shorter than the second filtering duration and the third filtering duration.
[0123] Optionally, obtaining the current posture of the vehicle includes: obtaining the rate of change of accelerator pedal opening, and determining that the current posture of the vehicle is the sudden acceleration state when the rate of change of the accelerator pedal opening is greater than a first threshold; obtaining the rate of change of brake pedal opening, and determining that the current posture of the vehicle is the sudden deceleration state when the rate of change of the brake pedal opening is greater than a second threshold; obtaining the vehicle slip rate and the vehicle turning angle, and determining that the current posture of the vehicle is the turning state when the duration of the vehicle slip rate greater than a third threshold is greater than a predetermined duration and the vehicle turning angle is greater than a fourth threshold; determining whether the vehicle is in reverse gear, and determining that the current posture of the vehicle is the reversing state when the vehicle is in reverse gear; and determining that the current posture of the vehicle is the stable driving state when the vehicle is not in the reversing state, the turning state, the sudden acceleration state, and the sudden deceleration state.
[0124] Optionally, obtaining the vehicle speed information includes: when a first vehicle speed sent by an electronic brake control unit is received and the first vehicle speed is not less than a predetermined vehicle speed, determining that the source of the vehicle speed in the current cycle is the electronic brake control unit; when the first vehicle speed is not received or the first vehicle speed is less than the predetermined vehicle speed, calculating the second vehicle speed based on the output shaft speed detected by the output shaft speed sensor of the vehicle, the tire radius and the main reduction ratio, and determining that the source of the vehicle speed in the current cycle is the output shaft speed sensor; when the source of the vehicle speed in the current cycle is the same as the source of the vehicle speed in the previous cycle, determining that the vehicle speed information is the vehicle speed value corresponding to the source of the vehicle speed information, and the previous cycle is a road slope determination cycle adjacent to the current cycle and located before the current cycle; when the source of the vehicle speed in the current cycle is different from the source of the vehicle speed in the previous cycle, determining that the vehicle speed information includes a step-like transition from the vehicle speed value corresponding to the vehicle speed source of the previous cycle to the vehicle speed value corresponding to the vehicle speed source of the current cycle.
[0125] Optionally, determining the slope of the road on which the vehicle is traveling according to the actual acceleration and the filtered acceleration includes: using formula a according to the actual acceleration and the filtered acceleration veh =-gsinθ+a lgt The angle between the driving road and the horizontal plane is calculated, where a veh is the actual acceleration, a lgt is the filtered acceleration, θ is the angle, gsinθ is the component of gravity acceleration in the driving direction of the vehicle; the percentage of the tangent value of the angle is determined as the slope.
[0126] Optionally, the detected acceleration is filtered according to the filtering duration, including: according to the filtering duration, using a Kalman filter algorithm to filter the detected acceleration; the actual acceleration of the vehicle is determined according to the vehicle speed information, including: low-pass filtering the vehicle speed information; and calculating the actual acceleration based on the vehicle speed information after low-pass filtering.
[0127] An embodiment of the present invention provides a processor, which is used to run a program, wherein the method for determining the road slope is executed when the program is running.
[0128] Specifically, the method for determining the road slope includes:
[0129] Step S201, obtaining vehicle speed information, current vehicle posture and detected acceleration of the vehicle, wherein the current vehicle posture includes at least part of a reversing state, a turning state, a sudden acceleration state, a sudden deceleration state and a steady driving state, and the detected acceleration is the acceleration of the vehicle detected by a longitudinal acceleration sensor in the vehicle;
[0130] Specifically, the detected acceleration is the acceleration of the vehicle in the driving direction detected by the longitudinal acceleration sensor. The reversing state is the state in which the vehicle performs a reversing action, the turning state is the state in which the vehicle performs a turning action, the rapid acceleration state is the state in which the acceleration of the vehicle is greater than a predetermined value, the rapid deceleration state is the state in which the acceleration of the vehicle is less than or equal to the predetermined value, and the stable driving state is the driving state in which the vehicle is in a state other than the reversing state, the turning state, the rapid acceleration state and the rapid deceleration state. The longitudinal acceleration sensor is generally integrated in the vehicle controller. Under the working conditions where the vehicle posture changes from stable driving to reversing, turning, rapid acceleration and rapid deceleration, the acceleration signal detected by the longitudinal acceleration sensor jumps accordingly.
[0131] Step S202, determining the actual acceleration of the vehicle according to the vehicle speed information;
[0132] Specifically, the actual acceleration of the vehicle can be obtained by calculating the ratio of the change in the vehicle speed information to the time taken for the change to occur.
[0133] Step S203, determining the filtering duration of the detected acceleration according to the current posture of the vehicle, and filtering the detected acceleration according to the filtering duration to obtain a filtered acceleration;
[0134] Specifically, the detected acceleration may be filtered in any suitable manner, such as Kalman filtering, limiting filtering, sliding average filtering, etc.
[0135] Step S204: determining the slope of the road on which the vehicle is traveling according to the actual acceleration and the filtered acceleration.
[0136] Specifically, the slope is the tangent percentage of the slope angle between the road on which the vehicle is located and the horizontal plane.
[0137] Optionally, according to the current posture of the vehicle, the filtering duration of the detected acceleration is determined, including: when the current posture of the vehicle is the reversing state, determining the filtering duration corresponding to the reversing state as the first filtering duration; when the current posture of the vehicle is the turning state, determining the filtering duration corresponding to the turning state as the second filtering duration; when the current posture of the vehicle is the sudden acceleration state or the sudden deceleration state, according to the vehicle speed information, the actual acceleration and a predetermined relationship, determining the filtering duration corresponding to the current posture of the vehicle as the third filtering duration, the predetermined relationship representing the correspondence between the vehicle speed, acceleration and filtering time in the sudden acceleration state or the sudden deceleration state; when the current posture of the vehicle is the steady driving state, determining the filtering duration corresponding to the steady driving state as the fourth filtering duration.
[0138] Optionally, the fourth filtering duration is shorter than the second filtering duration and the third filtering duration.
[0139] Optionally, obtaining the current posture of the vehicle includes: obtaining the rate of change of accelerator pedal opening, and determining that the current posture of the vehicle is the sudden acceleration state when the rate of change of the accelerator pedal opening is greater than a first threshold; obtaining the rate of change of brake pedal opening, and determining that the current posture of the vehicle is the sudden deceleration state when the rate of change of the brake pedal opening is greater than a second threshold; obtaining the vehicle slip rate and the vehicle turning angle, and determining that the current posture of the vehicle is the turning state when the duration of the vehicle slip rate greater than a third threshold is greater than a predetermined duration and the vehicle turning angle is greater than a fourth threshold; determining whether the vehicle is in reverse gear, and determining that the current posture of the vehicle is the reversing state when the vehicle is in reverse gear; and determining that the current posture of the vehicle is the stable driving state when the vehicle is not in the reversing state, the turning state, the sudden acceleration state, and the sudden deceleration state.
[0140] Optionally, obtaining the vehicle speed information includes: when a first vehicle speed sent by an electronic brake control unit is received and the first vehicle speed is not less than a predetermined vehicle speed, determining that the source of the vehicle speed in the current cycle is the electronic brake control unit; when the first vehicle speed is not received or the first vehicle speed is less than the predetermined vehicle speed, calculating the second vehicle speed based on the output shaft speed detected by the output shaft speed sensor of the vehicle, the tire radius and the main reduction ratio, and determining that the source of the vehicle speed in the current cycle is the output shaft speed sensor; when the source of the vehicle speed in the current cycle is the same as the source of the vehicle speed in the previous cycle, determining that the vehicle speed information is the vehicle speed value corresponding to the source of the vehicle speed information, and the previous cycle is a road slope determination cycle adjacent to the current cycle and located before the current cycle; when the source of the vehicle speed in the current cycle is different from the source of the vehicle speed in the previous cycle, determining that the vehicle speed information includes a step-like transition from the vehicle speed value corresponding to the vehicle speed source of the previous cycle to the vehicle speed value corresponding to the vehicle speed source of the current cycle.
[0141] Optionally, determining the slope of the road on which the vehicle is traveling according to the actual acceleration and the filtered acceleration includes: using formula a according to the actual acceleration and the filtered acceleration veh =-gsinθ+a lgt The angle between the driving road and the horizontal plane is calculated, where a veh is the actual acceleration, a lgt is the filtered acceleration, θ is the angle, gsinθ is the component of gravity acceleration in the driving direction of the vehicle; the percentage of the tangent value of the angle is determined as the slope.
[0142] Optionally, the detected acceleration is filtered according to the filtering duration, including: according to the filtering duration, using a Kalman filter algorithm to filter the detected acceleration; the actual acceleration of the vehicle is determined according to the vehicle speed information, including: low-pass filtering the vehicle speed information; and calculating the actual acceleration based on the vehicle speed information after low-pass filtering.
[0143] An embodiment of the present invention provides a device, the device including a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:
[0144] Step S201, obtaining vehicle speed information, current vehicle posture and detected acceleration of the vehicle, wherein the current vehicle posture includes at least part of a reversing state, a turning state, a sudden acceleration state, a sudden deceleration state and a steady driving state, and the detected acceleration is the acceleration of the vehicle detected by a longitudinal acceleration sensor in the vehicle;
[0145] Step S202, determining the actual acceleration of the vehicle according to the vehicle speed information;
[0146] Step S203, determining the filtering duration of the detected acceleration according to the current posture of the vehicle, and filtering the detected acceleration according to the filtering duration to obtain a filtered acceleration;
[0147] Step S204: determining the slope of the road on which the vehicle is traveling according to the actual acceleration and the filtered acceleration.
[0148] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0149] Optionally, according to the current posture of the vehicle, the filtering duration of the detected acceleration is determined, including: when the current posture of the vehicle is the reversing state, determining the filtering duration corresponding to the reversing state as the first filtering duration; when the current posture of the vehicle is the turning state, determining the filtering duration corresponding to the turning state as the second filtering duration; when the current posture of the vehicle is the sudden acceleration state or the sudden deceleration state, according to the vehicle speed information, the actual acceleration and a predetermined relationship, determining the filtering duration corresponding to the current posture of the vehicle as the third filtering duration, the predetermined relationship representing the correspondence between the vehicle speed, acceleration and filtering time in the sudden acceleration state or the sudden deceleration state; when the current posture of the vehicle is the steady driving state, determining the filtering duration corresponding to the steady driving state as the fourth filtering duration.
[0150] Optionally, the fourth filtering duration is shorter than the second filtering duration and the third filtering duration.
[0151] Optionally, obtaining the current posture of the vehicle includes: obtaining the rate of change of accelerator pedal opening, and determining that the current posture of the vehicle is the sudden acceleration state when the rate of change of the accelerator pedal opening is greater than a first threshold; obtaining the rate of change of brake pedal opening, and determining that the current posture of the vehicle is the sudden deceleration state when the rate of change of the brake pedal opening is greater than a second threshold; obtaining the vehicle slip rate and the vehicle turning angle, and determining that the current posture of the vehicle is the turning state when the duration of the vehicle slip rate greater than a third threshold is greater than a predetermined duration and the vehicle turning angle is greater than a fourth threshold; determining whether the vehicle is in reverse gear, and determining that the current posture of the vehicle is the reversing state when the vehicle is in reverse gear; and determining that the current posture of the vehicle is the stable driving state when the vehicle is not in the reversing state, the turning state, the sudden acceleration state, and the sudden deceleration state.
[0152] Optionally, obtaining the vehicle speed information includes: when a first vehicle speed sent by an electronic brake control unit is received and the first vehicle speed is not less than a predetermined vehicle speed, determining that the source of the vehicle speed in the current cycle is the electronic brake control unit; when the first vehicle speed is not received or the first vehicle speed is less than the predetermined vehicle speed, calculating the second vehicle speed based on the output shaft speed detected by the output shaft speed sensor of the vehicle, the tire radius and the main reduction ratio, and determining that the source of the vehicle speed in the current cycle is the output shaft speed sensor; when the source of the vehicle speed in the current cycle is the same as the source of the vehicle speed in the previous cycle, determining that the vehicle speed information is the vehicle speed value corresponding to the source of the vehicle speed information, and the previous cycle is a road slope determination cycle adjacent to the current cycle and located before the current cycle; when the source of the vehicle speed in the current cycle is different from the source of the vehicle speed in the previous cycle, determining that the vehicle speed information includes a step-like transition from the vehicle speed value corresponding to the vehicle speed source of the previous cycle to the vehicle speed value corresponding to the vehicle speed source of the current cycle.
[0153] Optionally, determining the slope of the road on which the vehicle is traveling according to the actual acceleration and the filtered acceleration includes: using formula a according to the actual acceleration and the filtered acceleration veh =-gsinθ+a lgt The angle between the driving road and the horizontal plane is calculated, where a veh is the actual acceleration, a lgt is the filtered acceleration, θ is the angle, gsinθ is the component of gravity acceleration in the driving direction of the vehicle; the percentage of the tangent value of the angle is determined as the slope.
[0154] Optionally, the detected acceleration is filtered according to the filtering duration, including: according to the filtering duration, using a Kalman filter algorithm to filter the detected acceleration; the actual acceleration of the vehicle is determined according to the vehicle speed information, including: low-pass filtering the vehicle speed information; and calculating the actual acceleration based on the vehicle speed information after low-pass filtering.
[0155] The present application also provides a computer program product, including computer instructions, which, when executed by a processor, implement at least the following method steps:
[0156] Step S201, obtaining vehicle speed information, current vehicle posture and detected acceleration of the vehicle, wherein the current vehicle posture includes at least part of a reversing state, a turning state, a sudden acceleration state, a sudden deceleration state and a steady driving state, and the detected acceleration is the acceleration of the vehicle detected by a longitudinal acceleration sensor in the vehicle;
[0157] Step S202, determining the actual acceleration of the vehicle according to the vehicle speed information;
[0158] Step S203, determining the filtering duration of the detected acceleration according to the current posture of the vehicle, and filtering the detected acceleration according to the filtering duration to obtain a filtered acceleration;
[0159] Step S204: determining the slope of the road on which the vehicle is traveling according to the actual acceleration and the filtered acceleration.
[0160] Optionally, according to the current posture of the vehicle, the filtering duration of the detected acceleration is determined, including: when the current posture of the vehicle is the reversing state, determining the filtering duration corresponding to the reversing state as the first filtering duration; when the current posture of the vehicle is the turning state, determining the filtering duration corresponding to the turning state as the second filtering duration; when the current posture of the vehicle is the sudden acceleration state or the sudden deceleration state, according to the vehicle speed information, the actual acceleration and a predetermined relationship, determining the filtering duration corresponding to the current posture of the vehicle as the third filtering duration, the predetermined relationship representing the correspondence between the vehicle speed, acceleration and filtering time in the sudden acceleration state or the sudden deceleration state; when the current posture of the vehicle is the steady driving state, determining the filtering duration corresponding to the steady driving state as the fourth filtering duration.
[0161] Optionally, the fourth filtering duration is shorter than the second filtering duration and the third filtering duration.
[0162] Optionally, obtaining the current posture of the vehicle includes: obtaining the rate of change of accelerator pedal opening, and determining that the current posture of the vehicle is the sudden acceleration state when the rate of change of the accelerator pedal opening is greater than a first threshold; obtaining the rate of change of brake pedal opening, and determining that the current posture of the vehicle is the sudden deceleration state when the rate of change of the brake pedal opening is greater than a second threshold; obtaining the vehicle slip rate and the vehicle turning angle, and determining that the current posture of the vehicle is the turning state when the duration of the vehicle slip rate greater than a third threshold is greater than a predetermined duration and the vehicle turning angle is greater than a fourth threshold; determining whether the vehicle is in reverse gear, and determining that the current posture of the vehicle is the reversing state when the vehicle is in reverse gear; and determining that the current posture of the vehicle is the stable driving state when the vehicle is not in the reversing state, the turning state, the sudden acceleration state, and the sudden deceleration state.
[0163] Optionally, obtaining the vehicle speed information includes: when a first vehicle speed sent by an electronic brake control unit is received and the first vehicle speed is not less than a predetermined vehicle speed, determining that the source of the vehicle speed in the current cycle is the electronic brake control unit; when the first vehicle speed is not received or the first vehicle speed is less than the predetermined vehicle speed, calculating the second vehicle speed based on the output shaft speed detected by the output shaft speed sensor of the vehicle, the tire radius and the main reduction ratio, and determining that the source of the vehicle speed in the current cycle is the output shaft speed sensor; when the source of the vehicle speed in the current cycle is the same as the source of the vehicle speed in the previous cycle, determining that the vehicle speed information is the vehicle speed value corresponding to the source of the vehicle speed information, and the previous cycle is a road slope determination cycle adjacent to the current cycle and located before the current cycle; when the source of the vehicle speed in the current cycle is different from the source of the vehicle speed in the previous cycle, determining that the vehicle speed information includes a step-like transition from the vehicle speed value corresponding to the vehicle speed source of the previous cycle to the vehicle speed value corresponding to the vehicle speed source of the current cycle.
[0164] Optionally, determining the slope of the road on which the vehicle is traveling according to the actual acceleration and the filtered acceleration includes: using formula a according to the actual acceleration and the filtered acceleration veh =-gsinθ+a lgt The angle between the driving road and the horizontal plane is calculated, where a veh is the actual acceleration, a lgt is the filtered acceleration, θ is the angle, gsinθ is the component of gravity acceleration in the driving direction of the vehicle; the percentage of the tangent value of the angle is determined as the slope.
[0165] Optionally, the detected acceleration is filtered according to the filtering duration, including: according to the filtering duration, using a Kalman filter algorithm to filter the detected acceleration; the actual acceleration of the vehicle is determined according to the vehicle speed information, including: low-pass filtering the vehicle speed information; and calculating the actual acceleration based on the vehicle speed information after low-pass filtering.
[0166] Obviously, those skilled in the art should understand that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0167] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0168] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0169] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0170] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0171] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0172] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0173] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0174] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0175] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for determining a road slope, characterized in that: include: Acquire vehicle speed information, current vehicle posture and detected acceleration of the vehicle, wherein the current vehicle posture includes at least part of a reversing state, a turning state, a sudden acceleration state, a sudden deceleration state and a steady driving state, and the detected acceleration is the acceleration of the vehicle detected by a longitudinal acceleration sensor in the vehicle; determining an actual acceleration of the vehicle according to the vehicle speed information; Determining a filtering duration of the detected acceleration according to the current posture of the vehicle, and filtering the detected acceleration according to the filtering duration to obtain a filtered acceleration; The slope of the road on which the vehicle is traveling is determined according to the actual acceleration and the filtered acceleration.
2. The method according to claim 1, characterized in that Determining the filtering duration of the detected acceleration according to the current posture of the vehicle, including: When the current posture of the vehicle is the reversing state, determining the filtering time length corresponding to the reversing state as a first filtering time length; When the current posture of the vehicle is the turning state, determining the filtering time length corresponding to the turning state as a second filtering time length; When the current posture of the vehicle is the sudden acceleration state or the sudden deceleration state, determining the filtering time corresponding to the current posture of the vehicle as a third filtering time according to the vehicle speed information, the actual acceleration and a predetermined relationship, wherein the predetermined relationship represents a corresponding relationship between the vehicle speed, the acceleration and the filtering time of the vehicle in the sudden acceleration state or the sudden deceleration state; When the current posture of the vehicle is the stable driving state, the filtering time length corresponding to the stable driving state is determined to be a fourth filtering time length.
3. The method according to claim 2, characterized in that The fourth filtering time length is shorter than the second filtering time length and the third filtering time length.
4. The method according to claim 1, characterized in that: Get the current posture of the vehicle, including: Acquiring a rate of change of an accelerator pedal opening, and determining that the current posture of the vehicle is in the rapid acceleration state when the rate of change of the accelerator pedal opening is greater than a first threshold; Acquire a rate of change of the brake pedal opening, and when the rate of change of the brake pedal opening is greater than a second threshold, determine that the current posture of the vehicle is the rapid deceleration state; Acquiring a vehicle slip rate and a vehicle turning angle, and determining that the current posture of the vehicle is the turning state when the duration of the vehicle slip rate being greater than a third threshold value is greater than a predetermined duration and the vehicle turning angle is greater than a fourth threshold value; determining whether the vehicle is in reverse gear, and if the vehicle is in reverse gear, determining that the current posture of the vehicle is the reverse state; When the vehicle is not in the reversing state, the turning state, the sudden acceleration state, and the sudden deceleration state, it is determined that the current posture of the vehicle is the stable driving state.
5. The method according to any one of claims 1 to 4, characterized in that Get the vehicle speed information, including: When a first vehicle speed sent by an electronic brake control unit is received and the first vehicle speed is not less than a predetermined vehicle speed, determining that a source of the vehicle speed of a current cycle is the electronic brake control unit; When the first vehicle speed is not received or the first vehicle speed is less than a predetermined vehicle speed, a second vehicle speed is calculated according to an output shaft speed detected by an output shaft speed sensor of the vehicle, a tire radius, and a final reduction ratio, and the source of the vehicle speed in the current cycle is determined to be the output shaft speed sensor; In the case where the vehicle speed source of the current cycle is the same as the vehicle speed source of the previous cycle, determining the vehicle speed information to be the vehicle speed value corresponding to the vehicle speed information source, and the previous cycle is a road slope determination cycle adjacent to the current cycle and located before the current cycle; When the vehicle speed source of the current cycle is different from the vehicle speed source of the previous cycle, determining the vehicle speed information includes a step-like transition from the vehicle speed value corresponding to the vehicle speed source of the previous cycle to the vehicle speed value corresponding to the vehicle speed source of the current cycle.
6. The method according to any one of claims 1 to 4, characterized in that Determining the slope of the road on which the vehicle is traveling according to the actual acceleration and the filtered acceleration includes: According to the actual acceleration and the filtered acceleration, formula a is used veh =-gsinθ+a lgt The angle between the driving road and the horizontal plane is calculated, where a veh is the actual acceleration, a lgt is the filtered acceleration, θ is the angle, and gsinθ is the component of gravity acceleration in the driving direction of the vehicle; The percentage of the tangent value of the angle is determined as the slope.
7. The method according to any one of claims 1 to 4, characterized in that Filtering the detected acceleration according to the filtering time includes: filtering the detected acceleration using a Kalman filtering algorithm according to the filtering time, Determining the actual acceleration of the vehicle according to the vehicle speed information includes: performing low-pass filtering on the vehicle speed information; and calculating the actual acceleration according to the vehicle speed information after low-pass filtering.
8. A device for determining a road slope, characterized in that: include: an acquisition unit, configured to acquire vehicle speed information, a current posture of the vehicle, and a detected acceleration, wherein the current posture of the vehicle includes at least part of a reversing state, a turning state, a sudden acceleration state, a sudden deceleration state, and a steady driving state, and the detected acceleration is an acceleration of the vehicle detected by a longitudinal acceleration sensor in the vehicle; A first determining unit, configured to determine an actual acceleration of the vehicle according to the vehicle speed information; A second determining unit, configured to determine a filtering duration of the detected acceleration according to the current posture of the vehicle, and filter the detected acceleration according to the filtering duration to obtain a filtered acceleration; The third determination unit is used to determine the slope of the road on which the vehicle is traveling according to the actual acceleration and the filtered acceleration.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 7.
10. A vehicle system, characterized in that: include: vehicle; The controller of the vehicle includes one or more processors, a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of claims 1 to 7.
Citation Information
Cited By
Vehicle driving warning method and device, equipment and medium
CN119408559A
Vehicle control method and device, vehicle and computer readable storage medium
CN119550954A
