Vehicle slope determination method and device, electronic equipment and storage medium
By determining the minimum acceleration of the entire vehicle during power interruption during gear shifting in heavy commercial vehicles, and combining the longitudinal dynamics formula and the longitudinal acceleration difference from the acceleration sensor for slope correction, the slope calculation problem of heavy commercial vehicles under load changes and complex working conditions is solved, achieving higher accuracy and applicability.
Patent Information
- Application Number
- CN202611683030.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-28
- Publication Date
- 2026-12-01
AI Technical Summary
Existing technologies are insufficient in terms of accuracy and applicability for gradient calculation under varying loads and complex driving conditions in heavy commercial vehicles. In particular, data updates are insufficient and measurement errors are caused by the misalignment of the acceleration sensor installation position in high-speed trunk road scenarios.
By determining the vehicle's minimum acceleration during the power interruption during gear shifting, the first gradient is calculated using the longitudinal dynamics formula. The difference between the longitudinal acceleration from the acceleration sensor and the vehicle speed is then used to determine the second gradient. The longitudinal acceleration offset is corrected using sine wave calculation and Kalman filtering algorithm to obtain the actual gradient.
It improves the accuracy and applicability of slope calculation under varying loads and complex operating conditions of heavy commercial vehicles, ensuring the precision and real-time performance of slope measurement.
Smart Images

Figure CN123190831A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of automotive control, and more particularly to a method, apparatus, electronic device, and storage medium for determining vehicle gradient. Background Technology
[0002] Driven by the continuous transformation towards intelligent and new energy technologies, heavy-duty commercial vehicles are experiencing increasingly sophisticated vehicle motion control systems, resulting in significant improvements in energy efficiency. This advancement relies not only on accurate perception of the vehicle's own condition but also on the integration of external environmental information, such as key parameters like slope, load mass, and atmospheric pressure. Among these, slope information serves as the core input for chassis control and longitudinal dynamics algorithms, and its measurement accuracy directly impacts the traction control response performance.
[0003] In related technologies, the vehicle's gradient can be determined based on the vehicle speed-dynamics formula calculation method during the power interruption process of gear shifting. However, this method requires strict conditions such as upshifting, no braking, and no slippage. Furthermore, the gear shifting frequency is low in high-speed trunk road scenarios, resulting in insufficient updates of effective data. Alternatively, real-time calculations based on acceleration sensors can be used. However, the installation position of the acceleration sensors is fixed, and the deformation of the suspension and changes in the center of gravity after the vehicle is fully loaded will cause systematic deviations in the measurement values.
[0004] Therefore, it is urgent to solve the problem of improving the accuracy and applicability of slope calculation under the changing loads and complex driving conditions of heavy commercial vehicles. Summary of the Invention
[0005] This application provides a method, apparatus, electronic device, and storage medium for determining vehicle gradient, which improves the accuracy and applicability of gradient calculation under varying loads and complex driving conditions of heavy commercial vehicles.
[0006] In a first aspect, embodiments of this application provide a method for determining the gradient of a vehicle, comprising:
[0007] Obtain vehicle status information and determine whether the power interruption condition is met based on the vehicle status information;
[0008] If satisfied, determine the minimum acceleration of the entire vehicle during gear shifting based on the vehicle speed;
[0009] Determine the first gradient based on the vehicle's minimum acceleration;
[0010] The longitudinal acceleration offset of the accelerometer is determined based on the difference between the first and second slopes. The second slope is determined based on the longitudinal acceleration of the accelerometer and the vehicle speed.
[0011] The actual slope is determined based on the longitudinal acceleration offset, vehicle speed, and longitudinal acceleration from the acceleration sensor.
[0012] In one possible implementation, determining the longitudinal acceleration offset of the accelerometer based on the difference between the first slope and the second slope includes:
[0013] Determine the difference between the first slope and the second slope;
[0014] Perform a sine operation on the difference to obtain the sine result;
[0015] The longitudinal acceleration offset of the accelerometer is determined by multiplying the result of the sine calculation with the gravitational acceleration.
[0016] In one possible implementation, determining the actual slope based on the longitudinal acceleration offset, vehicle speed, and longitudinal acceleration from the acceleration sensor includes:
[0017] The longitudinal acceleration is compensated based on the longitudinal acceleration offset to obtain the compensated longitudinal acceleration;
[0018] The compensated longitudinal acceleration and vehicle speed are input into the Kalman filter algorithm to output the actual slope.
[0019] In one possible implementation, the vehicle status information includes main gearbox movement information, steering information, vehicle speed information, driving resistance information, main braking information, and auxiliary braking information;
[0020] The steps for determining whether the power interruption conditions are met based on vehicle status information include:
[0021] The system determines whether the main gearbox is in the upshifting process based on the main gearbox action information, whether the vehicle is in the turning state based on the steering information, whether the vehicle speed is within the speed calibration range based on the vehicle speed information, whether the driving resistance is within the resistance calibration range based on the driving resistance information, and whether the vehicle is in the braking state based on the main braking information and auxiliary braking information.
[0022] The power interruption condition is determined to be met when the main gearbox is in the upshifting process, the vehicle is not turning, the vehicle speed is within the speed specification range, the driving resistance is within the resistance specification range, and the vehicle is not braking.
[0023] In one possible implementation, determining the minimum acceleration of the vehicle during gear shifting based on vehicle speed includes:
[0024] Obtain the raw vehicle speed signal from the CAN bus;
[0025] The original vehicle speed signal is filtered to obtain the filtered vehicle speed sequence.
[0026] Differentiate the filtered vehicle speed sequence to obtain the vehicle acceleration sequence.
[0027] The vehicle acceleration sequence is low-pass filtered to obtain the filtered acceleration sequence.
[0028] The minimum acceleration of the vehicle during gear shifting is obtained by performing a minimum value operation on the filtered acceleration sequence.
[0029] In one possible implementation, determining the first gradient based on the vehicle's minimum acceleration includes:
[0030] Substituting the vehicle's minimum acceleration, gravitational acceleration, and rolling resistance coefficient into the longitudinal dynamics formula yields the calculation results;
[0031] Perform inverse trigonometric function operations on the calculation results to obtain the first slope.
[0032] In one possible implementation, the longitudinal dynamics formula is:
[0033]
[0034] in, This is the first slope. This is the minimum acceleration of the entire vehicle. Let gravitational acceleration be the acceleration due to gravity. The rolling resistance coefficient is denoted as .
[0035] Secondly, embodiments of this application provide a device for determining the slope of a vehicle, comprising:
[0036] The processing module is used to acquire vehicle status information and determine whether the power interruption condition is met based on the vehicle status information.
[0037] The first determining module is used to determine the minimum acceleration of the whole vehicle during gear shifting based on the vehicle speed when the power interruption condition is met.
[0038] The second determining module is used to determine the first gradient based on the minimum acceleration of the entire vehicle;
[0039] The third determining module is used to determine the longitudinal acceleration offset of the acceleration sensor based on the difference between the first slope and the second slope. The second slope is determined based on the longitudinal acceleration of the acceleration sensor and the vehicle speed.
[0040] The fourth determining module is used to correct the longitudinal acceleration of the acceleration sensor based on the longitudinal acceleration offset, and to determine the actual slope based on the corrected longitudinal acceleration and vehicle speed.
[0041] In one possible implementation, the third determining module is specifically used for:
[0042] Determine the difference between the first slope and the second slope;
[0043] Perform a sine operation on the difference to obtain the sine result;
[0044] The longitudinal acceleration offset of the accelerometer is determined by multiplying the result of the sine calculation with the gravitational acceleration.
[0045] In one possible implementation, the fourth determining module is specifically used for:
[0046] The longitudinal acceleration is compensated based on the longitudinal acceleration offset to obtain the compensated longitudinal acceleration;
[0047] The compensated longitudinal acceleration and vehicle speed are input into the Kalman filter algorithm to output the actual slope.
[0048] In one possible implementation, the vehicle status information includes main gearbox movement information, steering information, vehicle speed information, driving resistance information, main braking information, and auxiliary braking information;
[0049] The processing module is specifically used for:
[0050] The system determines whether the main gearbox is in the upshifting process based on the main gearbox action information, whether the vehicle is in the turning state based on the steering information, whether the vehicle speed is within the speed calibration range based on the vehicle speed information, whether the driving resistance is within the resistance calibration range based on the driving resistance information, and whether the vehicle is in the braking state based on the main braking information and auxiliary braking information.
[0051] The power interruption condition is determined to be met when the main gearbox is in the upshifting process, the vehicle is not turning, the vehicle speed is within the speed specification range, the driving resistance is within the resistance specification range, and the vehicle is not braking.
[0052] In one possible implementation, the first determining module is specifically used for:
[0053] Obtain the raw vehicle speed signal from the CAN bus;
[0054] The original vehicle speed signal is filtered to obtain the filtered vehicle speed sequence.
[0055] Differentiate the filtered vehicle speed sequence to obtain the vehicle acceleration sequence.
[0056] The vehicle acceleration sequence is low-pass filtered to obtain the filtered acceleration sequence.
[0057] The minimum acceleration of the vehicle during gear shifting is obtained by performing a minimum value operation on the filtered acceleration sequence.
[0058] In one possible implementation, the second determining module is specifically used for:
[0059] Substituting the vehicle's minimum acceleration, gravitational acceleration, and rolling resistance coefficient into the longitudinal dynamics formula yields the calculation results;
[0060] Perform inverse trigonometric function operations on the calculation results to obtain the first slope.
[0061] In one possible implementation, the longitudinal dynamics formula is:
[0062]
[0063] in, This is the first slope. This is the minimum acceleration of the entire vehicle. Let gravitational acceleration be the acceleration due to gravity. The rolling resistance coefficient is denoted as .
[0064] Thirdly, embodiments of this application provide an electronic device, including a memory and a processor. The memory stores computer-readable instructions, and the processor is configured to execute the computer-readable instructions to perform the method provided above.
[0065] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-readable instructions, which, when executed by a processor, implement the steps of the method provided above.
[0066] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.
[0067] This application provides a method, apparatus, electronic device, and storage medium for determining vehicle slope. It determines a first slope based on the vehicle speed during a power interruption during gear shifting, and determines an offset for correcting the longitudinal acceleration of the acceleration sensor based on the difference between the first slope and a second slope determined by the longitudinal acceleration from an acceleration sensor and the vehicle speed. This allows for obtaining the actual slope under power interruption conditions, thereby improving the accuracy and applicability of slope calculation under varying loads in heavy commercial vehicles and complex operating conditions. Attached Figure Description
[0068] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0069] Figure 1 A flowchart illustrating a method for determining vehicle slope provided in this application;
[0070] Figure 2A flowchart illustrating another method for determining vehicle slope provided in this application;
[0071] Figure 3 A flowchart illustrating yet another method for determining vehicle slope provided in this application;
[0072] Figure 4 A flowchart illustrating yet another method for determining vehicle slope provided in this application;
[0073] Figure 5 A flowchart illustrating yet another method for determining vehicle slope provided in this application;
[0074] Figure 6 Here is an example of a vehicle acceleration sequence A from this application;
[0075] Figure 7 This is a schematic diagram illustrating the minimum acceleration of the entire vehicle during gear shifting, as an example of this application.
[0076] Figure 8 This is a schematic diagram illustrating the gradient determined by the longitudinal acceleration of the acceleration sensor and the vehicle speed during gear shifting, as an example of this application.
[0077] Figure 9 A comparison chart of the calculated and actual values of longitudinal acceleration offset for example in this application;
[0078] Figure 10 A schematic diagram of the structure of a vehicle slope determination device provided in this application;
[0079] Figure 11 This is a schematic diagram of the structure of an electronic device provided in this application.
[0080] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0081] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0082] Currently, there are two main slope calculation technology solutions in the heavy commercial vehicle sector:
[0083] (1) Calculation method of vehicle speed-dynamics formula based on power interruption process during gear shift.
[0084] (2) Real-time calculation method based on accelerometer and Kalman filter.
[0085] Scheme (1) utilizes the characteristic of power interruption (no driving force interference) during gear shifting and combines it with longitudinal dynamics formulas to calculate the gradient, resulting in a smaller calculation error. However, this method is limited by strict operating conditions, requiring both a long power interruption time and multiple gear shifting operations. In actual high-speed trunk line scenarios, the gear shifting frequency is low (only 5-8 times per 100 kilometers on average), resulting in insufficient data update frequency and difficulty in meeting real-time control requirements.
[0086] Scheme (2) uses an accelerometer to collect longitudinal acceleration in real time and integrates it with a Kalman filter algorithm, which can achieve millisecond-level slope updates and significantly improve response speed. However, a small offset in the installation position of the accelerometer can easily introduce significant errors. For example, if the sensor is fixed near the front axle, after the trailer is loaded, the vehicle's center of gravity will shift backward due to suspension deformation. The acceleration measured by the accelerometer will be distorted due to its relative displacement with the center of gravity, and the obtained slope result will easily deviate from the actual road conditions.
[0087] Based on this, this application provides a method for determining vehicle slope. A first slope is determined based on the vehicle speed during a power interruption during gear shifting. The offset used to correct the longitudinal acceleration of the acceleration sensor is determined based on the difference between the first slope and the second slope determined based on the longitudinal acceleration of the acceleration sensor and the vehicle speed. This method obtains the actual slope under power interruption conditions, thereby improving the accuracy and applicability of slope calculation under load changes in heavy commercial vehicles and under complex working conditions.
[0088] This application applies to the chassis control and longitudinal dynamics perception of intelligent connected heavy commercial vehicles. The vehicle's gradient is typically acquired collaboratively by onboard sensors and controllers, serving traction control, longitudinal acceleration prediction, and energy management. Such systems are generally deployed within intelligent driving domain controllers, using information such as vehicle speed signals and longitudinal acceleration from acceleration sensors to estimate the gradient.
[0089] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0090] Figure 1 A flowchart illustrating a method for determining vehicle gradient provided in this application is shown below. Figure 1As shown, this method can be applied to a vehicle controller, and the method includes:
[0091] S101. Obtain vehicle status information and determine whether the power interruption condition is met based on the vehicle status information.
[0092] In one possible implementation, the vehicle status information includes main gearbox movement information, steering information, vehicle speed information, driving resistance information, main braking information, and auxiliary braking information.
[0093] For example, the controller receives the vehicle status information from either the vehicle communication bus or the chassis domain controller, and performs time-series alignment on each piece of information to form a set of vehicle status information corresponding to the same sampling time.
[0094] For example, the controller can determine whether the master gearbox is in the process of upshifting based on vehicle status information to confirm that the vehicle is currently in the power transmission interruption stage caused by gear shifting; it can determine whether the vehicle is turning or the tires are slipping to eliminate the influence of lateral motion and changes in adhesion conditions on the longitudinal acceleration calculation; it can determine whether the vehicle speed is within the calibration range to ensure that the dynamic relationship within that speed range matches the gear shifting process; it can determine whether the driving resistance is within the calibration range to ensure that the longitudinal force of the whole vehicle meets the preset calculation conditions; it can determine whether the vehicle is not applying main braking and auxiliary braking to avoid the braking deceleration being superimposed on the gear shift deceleration. When the master gearbox is upshifting, not turning, not slipping, the vehicle speed is within the calibration range, the driving resistance is within the calibration range, and there is no braking, it can be determined that the power interruption condition is met.
[0095] The main gearbox movement information may include gear request flags, clutch status information, and torque cut-off flags output by the transmission controller. Steering information may be generated from signals from the steering angle sensor or yaw rate signals. Vehicle speed information may include wheel speed sensor readings or estimated vehicle speed. Driving resistance information may be calculated from vehicle mass, rolling resistance coefficient, air resistance parameters, and road conditions. Main braking information may include automatic brake pedal opening and brake pressure. Auxiliary braking information may include the operating status information of engine braking or hydraulic retarder.
[0096] In one possible implementation, the controller can determine whether the main gearbox is in the upshifting process based on the main gearbox action information, whether the vehicle is in a turning state based on the steering information, whether the vehicle speed is within the vehicle speed calibration range based on the vehicle speed information, whether the driving resistance is within the resistance calibration range based on the driving resistance information, and whether the vehicle is in a braking state based on the main braking information and auxiliary braking information. When the main gearbox is in the upshifting process, the vehicle is not in a turning state, the vehicle speed is within the vehicle speed calibration range, the driving resistance is within the resistance calibration range, and the vehicle is not in a braking state, the power interruption condition is determined to be met.
[0097] In one possible implementation, the vehicle speed calibration range and the resistance calibration range can be pre-written into the controller and configured according to different vehicle models, load states and road conditions. That is, different vehicle speed calibration ranges and resistance calibration ranges can be set for different vehicle models, load states and road conditions.
[0098] After acquiring vehicle status information, the controller can jointly determine the upshift, turning, speed, resistance, and braking status based on the vehicle status information. When all constraints are met, it outputs a power interruption signal, which is used to indicate the execution of subsequent slope calculations.
[0099] S102. If the power interruption condition is met, determine the minimum acceleration of the whole vehicle during the gear shifting process based on the vehicle speed.
[0100] If the power interruption condition is met, the controller can determine the minimum acceleration of the entire vehicle during gear shifting based on the vehicle speed.
[0101] For example, the moment corresponding to the minimum acceleration value can be used to characterize the moment when the power interruption during gear shifting has the most significant impact on the longitudinal motion of the vehicle, and the minimum acceleration value can be used as the basic quantity for deriving the vehicle's gradient.
[0102] In one possible implementation, the time window corresponding to the vehicle's gear shifting process is determined by the start and end times of the main gearbox upshift. Specifically, the start time of this time window can be the clutch disengagement time, the shift from a low gear to a high gear by the main gearbox, and the clutch engagement time, which serves as the end time of the time window.
[0103] S103. Determine the first gradient based on the vehicle's minimum acceleration.
[0104] In one possible implementation, the controller can perform algebraic calculations based on the vehicle's minimum acceleration, gravitational acceleration, and rolling resistance coefficient to obtain the sine wave of the longitudinal force. This sine wave is then converted to an arcsine wave to obtain the slope angle, which is the first slope. This first slope corresponds to a reference value under power interruption conditions in this process. Its origin is directly related to vehicle speed changes, thus reflecting the dynamic characterization of the road slope corresponding to the vehicle at that moment. By mapping the minimum acceleration during gear shifting to a reference slope, a benchmark is provided for subsequent comparison with the slope determined by the acceleration sensor.
[0105] S104. Determine the longitudinal acceleration offset of the acceleration sensor based on the difference between the first and second slopes. The second slope is determined based on the longitudinal acceleration of the acceleration sensor and the vehicle speed.
[0106] For example, the controller can acquire the longitudinal acceleration signal output by the accelerometer and filter the signal to reduce the impact of installation vibration, road impact and short-term noise on the measured value. Then, it can combine the vehicle speed input Kalman filter algorithm to obtain the second slope.
[0107] After determining the second slope, the controller can perform a difference calculation between the first slope and the second slope to obtain the slope difference value. Then, it can perform a sine calculation on the slope difference value and multiply the sine calculation result by the gravitational acceleration to obtain the longitudinal acceleration offset of the acceleration sensor.
[0108] The offset is used to characterize the deviation between the longitudinal acceleration output by the accelerometer and the actual longitudinal acceleration. Sources of this deviation may include changes in mounting posture caused by suspension compression under full load, sensor reference plane offset, and measurement errors caused by changes in vehicle posture. The first slope corresponds to a reference slope, and the second slope corresponds to the slope determined by the accelerometer; the difference between the two is converted into an acceleration offset correction. By establishing a correspondence between the reference slope obtained during power interruption and the slope determined by the accelerometer, the offset of the sensor's longitudinal acceleration is extracted, providing a compensation basis for subsequent continuous correction of the slope output.
[0109] S105. Determine the actual slope based on the longitudinal acceleration offset, vehicle speed, and longitudinal acceleration from the acceleration sensor.
[0110] In one possible implementation, the controller can compensate for the longitudinal acceleration based on the longitudinal acceleration offset to obtain the compensated longitudinal acceleration. The compensated longitudinal acceleration and vehicle speed are then input into a Kalman filter algorithm to output the actual gradient.
[0111] In one possible implementation, the controller can obtain a slope estimate based on the vehicle speed and longitudinal acceleration from the acceleration sensor, and then correct the slope estimate by the longitudinal acceleration offset to obtain the actual slope.
[0112] In one possible implementation, the actual slope output can also be updated via Kalman filtering to keep the slope results smooth during continuous sampling and to continuously reflect the current road slope as the vehicle state changes.
[0113] In this embodiment, the minimum acceleration of the vehicle during gear shifting is extracted when the vehicle meets the power interruption condition, and converted into a first slope. Based on the difference between the first slope and a second slope determined by the longitudinal acceleration and vehicle speed from the acceleration sensor, an offset is determined to correct the longitudinal acceleration of the acceleration sensor. This allows the actual slope to be determined under power interruption conditions, thereby improving the accuracy and applicability of slope calculation under load changes in heavy commercial vehicles and under complex working conditions.
[0114] The following explains how to determine the minimum acceleration of the entire vehicle and the longitudinal acceleration offset of the acceleration sensor.
[0115] Figure 2 A flowchart illustrating another method for determining vehicle gradient provided in this application is shown below. Figure 2 As shown, this method can be applied to a vehicle controller, and the method includes:
[0116] S201. Obtain the raw vehicle speed signal from the controller area network (CAN) bus.
[0117] S202. Filter the original vehicle speed signal to obtain the filtered vehicle speed sequence.
[0118] S203. Perform differentiation on the filtered vehicle speed sequence to obtain the vehicle acceleration sequence.
[0119] S204. Perform low-pass filtering on the vehicle acceleration sequence to obtain the filtered acceleration sequence.
[0120] S205. Perform a minimum operation on the filtered acceleration sequence to obtain the minimum acceleration of the entire vehicle during gear shifting.
[0121] For example, based on the above steps, after the controller acquires the raw vehicle speed signal from the CAN bus, it can buffer the raw vehicle speed signal according to the sampling period to obtain a vehicle speed sequence. Then, the vehicle speed sequence is processed by moving average filtering or low-pass filtering to keep the vehicle speed curve continuous and smooth, resulting in a filtered vehicle speed sequence. Next, the vehicle speed difference between adjacent sampling points in the filtered vehicle speed sequence is divided by the sampling time interval and differentiated to obtain the vehicle acceleration sequence. Subsequently, the vehicle acceleration sequence is input into a low-pass filter for smoothing to reduce the impact of shift shock, sampling noise, and short-term disturbances on acceleration estimation, resulting in a filtered acceleration sequence. Finally, the minimum value of the filtered acceleration sequence is searched within the time window corresponding to the vehicle shifting process to obtain the minimum vehicle acceleration.
[0122] In the embodiments of this application, the filtering parameters, sampling period, and time window can all be determined according to the vehicle model. In practical applications, the controller can select different filtering parameters, sampling period, and time window according to the vehicle model, and this application does not limit this.
[0123] In this embodiment of the application, by performing two-stage filtering and differentiation on the original vehicle speed signal, the vehicle speed change can be stably converted into acceleration information, and the minimum acceleration is extracted as a feature quantity within the time window corresponding to the vehicle's gear shifting process, providing a stable input for subsequent slope calculation.
[0124] Figure 3 A flowchart illustrating yet another method for determining vehicle gradient provided in this application is shown below. Figure 3 As shown, this method can be applied to a vehicle controller, and the method includes:
[0125] S301. Determine the difference between the first slope and the second slope.
[0126] In one possible implementation, after the controller obtains the first slope and the second slope, it can first perform numerical unification processing on the two to make them have the same angular representation, and then calculate the difference between the two.
[0127] S302. Perform a sine operation on the difference to obtain the sine result.
[0128] For example, the controller can input the difference between the first slope and the second slope into the trigonometric function module to perform a sine operation and obtain a dimensionless result corresponding to the slope deviation.
[0129] S303. Multiply the sine calculation result by the gravitational acceleration to determine the longitudinal acceleration offset of the accelerometer.
[0130] The controller can multiply the result of the sine calculation with the gravitational acceleration to obtain the longitudinal acceleration offset of the accelerometer.
[0131] The gravitational acceleration can be a standard gravitational acceleration value, for example, a gravitational acceleration of 9.8 m / s². 2 The controller can also be configured according to the gravity constant of the vehicle's driving area. In practical applications, other calibration values can also be selected for this parameter, which is not limited in this application.
[0132] By converting the deviation between the first and second slopes into a longitudinal acceleration offset, the controller can use this offset for subsequent slope correction calculations.
[0133] For example, the offset in the acceleration domain satisfies:
[0134] (1)
[0135] in, Let g be the difference between the first and second slopes, and g be the acceleration due to gravity. This represents the longitudinal acceleration offset.
[0136] In this embodiment, the slope difference can be mapped to the longitudinal acceleration offset of the accelerometer, giving the offset a clear physical meaning and a unified unit expression, which facilitates subsequent slope correction and improves the accuracy of slope calculation.
[0137] The following explains how to determine the first slope.
[0138] Figure 4 A flowchart illustrating yet another method for determining vehicle gradient provided in this application is shown below. Figure 4 As shown, this method can be applied to a vehicle controller, and the method includes:
[0139] S401. Substitute the minimum acceleration of the whole vehicle, the acceleration due to gravity, and the rolling resistance coefficient into the longitudinal dynamics formula to obtain the calculation results.
[0140] S402. Perform inverse trigonometric function operations on the calculation results to obtain the first slope.
[0141] The longitudinal dynamics formula is used to correlate the minimum acceleration of the vehicle with the inherent parameters of the vehicle to obtain an intermediate quantity that can characterize the slope change. The rolling resistance coefficient is used to compensate for the influence of tire and road rolling resistance on acceleration, and the gravitational acceleration is used as a preset constant in the calculation. Together with the minimum acceleration of the vehicle, they constitute the basic parameters for slope calculation.
[0142] In one possible implementation, the longitudinal dynamics formula satisfies:
[0143] (2)
[0144] in, The first slope, This is the minimum acceleration of the entire vehicle. It is the acceleration due to gravity. This is the rolling resistance coefficient.
[0145] In one possible implementation, the rolling resistance coefficient can be a fixed calibration constant. For example, the fixed calibration constant can be the average rolling resistance coefficient of a typical heavy-duty commercial vehicle traveling at a constant speed on a flat road.
[0146] In one possible implementation, the rolling resistance coefficient can be a value related to vehicle speed and vehicle load. For example, the controller can determine the rolling resistance coefficient for calculating the first slope based on the current vehicle speed and current vehicle load in a preset correspondence.
[0147] For example, the preset correspondence is shown in Table 1, where different speed ranges and load ranges correspond to different rolling resistance coefficients.
[0148] Table 1
[0149]
[0150] In the embodiments of this application, the effects of air resistance and slope on rolling resistance are ignored.
[0151] In this embodiment of the application, by incorporating rolling resistance into the slope calculation and converting the minimum acceleration during the vehicle's gear shifting process into a first slope, the resulting slope value can characterize the road slope state during the vehicle's gear shifting process and provide a reference for subsequent offset correction.
[0152] For ease of understanding, the following example illustrates a method for determining vehicle slope provided in this application.
[0153] Figure 5 A flowchart illustrating yet another method for determining vehicle gradient provided in this application is shown below. Figure 5 As shown, this method can be applied to a vehicle controller, and the method includes:
[0154] S501. Obtain vehicle status information and determine whether the power interruption condition is met based on the vehicle status information.
[0155] Specifically, the controller can determine whether the following conditions are met:
[0156] 1) The main gearbox is upshifting; 2) The vehicle is not turning or slipping; 3) The vehicle speed is within the specified range; 4) The driving resistance is within the specified range; 5) There are no main brakes or auxiliary brakes.
[0157] S502. If the power interruption condition is met, the original vehicle speed signal from the CAN line is filtered and differentiated to obtain the vehicle acceleration sequence A during the gear shifting process.
[0158] S503. Perform low-pass filtering and minimum value operation on the vehicle acceleration sequence A to obtain the minimum vehicle acceleration during the gear shifting process.
[0159] S504. Calculate the first gradient based on the minimum acceleration of the whole vehicle and the longitudinal dynamics formula.
[0160] S505: Input the longitudinal acceleration and vehicle speed from the accelerometer into the Kalman filter algorithm and output the second gradient.
[0161] S506. Subtract the first slope from the second slope, perform a sine operation on the subtracted value, and multiply the sine operation result by the gravitational acceleration to obtain the longitudinal acceleration offset of the acceleration sensor.
[0162] S507. Correct the longitudinal acceleration of the accelerometer based on the longitudinal acceleration offset to obtain the corrected longitudinal acceleration.
[0163] S508: Input the corrected longitudinal acceleration and vehicle speed into the Kalman filter algorithm to output the actual slope.
[0164] For ease of understanding, the above process is further illustrated by the following example.
[0165] The controller can determine whether the following conditions are met:
[0166] 1) The main gearbox is upshifting; 2) The vehicle is not turning or slipping; 3) The vehicle speed is between 15 km / h and 30 km / h; 4) The driving resistance is between 5000 N and 23000 N; 5) There are no main brakes or auxiliary brakes.
[0167] If so, the raw vehicle speed signal from the CAN bus is filtered and differentiated to obtain the vehicle acceleration sequence A during gear shifting. For example, Figure 6 The example in this application is the vehicle acceleration sequence A. Then, low-pass filtering and minimum value operations are performed on the vehicle acceleration sequence A to obtain the minimum vehicle acceleration Amin during gear shifting, which is -0.32 m / s². 2 ,like Figure 7 As shown, Figure 7 This is a schematic diagram illustrating the minimum acceleration of the entire vehicle during gear shifting, as exemplified in this application. The first gradient is determined using formula (2). =0.0276 rad, where the acceleration due to gravity is taken as 9.8 m / s². 2 The rolling resistance coefficient is set to 0.005. Additionally, the controller will use the longitudinal acceleration from the acceleration sensor and the vehicle speed input during gear shifting to calculate the slope using a Kalman filter algorithm. Figure 8 As shown, Figure 8 This is a schematic diagram illustrating the gradient determined by the longitudinal acceleration of the accelerometer and the vehicle speed during gear shifting, as exemplified in this application. The controller determines the longitudinal acceleration offset ASnsrActLgtOfs = 0.0823 according to formula (1). The longitudinal acceleration of the accelerometer is corrected based on the longitudinal acceleration offset ASnsrActLgtOfs to obtain the corrected longitudinal acceleration. The corrected longitudinal acceleration and vehicle speed are input into the Kalman filter algorithm to output the actual gradient.
[0168] Furthermore, to verify the accuracy of the longitudinal acceleration offset, the vehicle was placed on a level road, and the longitudinal acceleration value from the acceleration sensor was read as 0.098. The two are compared... Figure 9 As shown, Figure 9 The graph shows a comparison between the calculated and actual values of the longitudinal acceleration offset in this application example. The difference is about 10.2%, which illustrates the feasibility of the method proposed in the embodiments of this application.
[0169] Figure 10 A schematic diagram of a vehicle slope determination device provided in this application is shown below. Figure 10 As shown, the device 100 provided in this embodiment includes:
[0170] The processing module 1001 is used to acquire vehicle status information and determine whether the power interruption condition is met based on the vehicle status information.
[0171] The first determining module 1002 is used to determine the minimum acceleration of the whole vehicle during gear shifting based on the vehicle speed when the power interruption condition is met.
[0172] The second determining module 1003 is used to determine the first gradient based on the minimum acceleration of the whole vehicle;
[0173] The third determining module 1004 is used to determine the longitudinal acceleration offset of the acceleration sensor based on the difference between the first slope and the second slope. The second slope is determined based on the longitudinal acceleration of the acceleration sensor and the vehicle speed.
[0174] The fourth determining module 1005 is used to correct the longitudinal acceleration of the acceleration sensor based on the longitudinal acceleration offset, and to determine the actual slope based on the corrected longitudinal acceleration and vehicle speed.
[0175] In one possible implementation, the third determining module 1004 is specifically used for:
[0176] Determine the difference between the first slope and the second slope;
[0177] Perform a sine operation on the difference to obtain the sine result;
[0178] The longitudinal acceleration offset of the accelerometer is determined by multiplying the result of the sine calculation with the gravitational acceleration.
[0179] In one possible implementation, the fourth determining module 1005 is specifically used for:
[0180] The longitudinal acceleration is compensated based on the longitudinal acceleration offset to obtain the compensated longitudinal acceleration;
[0181] The compensated longitudinal acceleration and vehicle speed are input into the Kalman filter algorithm to output the actual slope.
[0182] In one possible implementation, the vehicle status information includes main gearbox movement information, steering information, vehicle speed information, driving resistance information, main braking information, and auxiliary braking information;
[0183] Processing module 1001 is specifically used for:
[0184] The system determines whether the main gearbox is in the upshifting process based on the main gearbox action information, whether the vehicle is in the turning state based on the steering information, whether the vehicle speed is within the speed calibration range based on the vehicle speed information, whether the driving resistance is within the resistance calibration range based on the driving resistance information, and whether the vehicle is in the braking state based on the main braking information and auxiliary braking information.
[0185] The power interruption condition is determined to be met when the main gearbox is in the upshifting process, the vehicle is not turning, the vehicle speed is within the speed specification range, the driving resistance is within the resistance specification range, and the vehicle is not braking.
[0186] In one possible implementation, the first determining module 1002 is specifically used for:
[0187] Obtain the raw vehicle speed signal from the CAN bus;
[0188] The original vehicle speed signal is filtered to obtain the filtered vehicle speed sequence.
[0189] Differentiate the filtered vehicle speed sequence to obtain the vehicle acceleration sequence.
[0190] The vehicle acceleration sequence is low-pass filtered to obtain the filtered acceleration sequence.
[0191] The minimum acceleration of the vehicle during gear shifting is obtained by performing a minimum value operation on the filtered acceleration sequence.
[0192] In one possible implementation, the second determining module 1003 is specifically used for:
[0193] Substituting the vehicle's minimum acceleration, gravitational acceleration, and rolling resistance coefficient into the longitudinal dynamics formula yields the calculation results;
[0194] Perform inverse trigonometric function operations on the calculation results to obtain the first slope.
[0195] In one possible implementation, the longitudinal dynamics formula is:
[0196]
[0197] in, The first slope, This is the minimum acceleration of the entire vehicle. It is the acceleration due to gravity. This is the rolling resistance coefficient.
[0198] The device 100 provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0199] Figure 11 This is a schematic diagram of the structure of an electronic device provided in this application. Figure 11 As shown, the electronic device 110 provided in this embodiment includes at least one processor 1101 and a memory 1102. Optionally, the device 110 further includes a communication component 1103. The processor 1101, the memory 1102, and the communication component 1103 are connected via a bus 1104.
[0200] In a specific implementation, at least one processor 1101 executes computer execution instructions stored in memory 1102, causing at least one processor 1101 to perform the above-described method.
[0201] The specific implementation process of processor 1101 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.
[0202] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.
[0203] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.
[0204] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0205] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.
[0206] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.
[0207] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.
[0208] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.
[0209] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0210] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0211] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0212] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0213] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0214] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.
Claims
1. A method of determining a slope of a vehicle, characterized by, include: Obtain vehicle status information and determine whether the power interruption condition is met based on the vehicle status information; If satisfied, determine the minimum acceleration of the entire vehicle during gear shifting based on the vehicle speed; The first gradient is determined based on the minimum acceleration of the entire vehicle. The longitudinal acceleration offset of the accelerometer is determined based on the difference between the first slope and the second slope, wherein the second slope is determined based on the longitudinal acceleration of the accelerometer and the vehicle speed. The actual slope is determined based on the longitudinal acceleration offset, vehicle speed, and longitudinal acceleration from the acceleration sensor.
2. The method of claim 1, wherein, Determining the longitudinal acceleration offset of the accelerometer based on the difference between the first slope and the second slope includes: Determine the difference between the first slope and the second slope; Perform a sine operation on the difference to obtain the sine result; The longitudinal acceleration offset of the accelerometer is determined by multiplying the sinusoidal calculation result by the gravitational acceleration.
3. The method of claim 1, wherein, The actual slope is determined based on the longitudinal acceleration offset, vehicle speed, and longitudinal acceleration from the acceleration sensor, including: The longitudinal acceleration is compensated based on the longitudinal acceleration offset to obtain the compensated longitudinal acceleration; The compensated longitudinal acceleration and the vehicle speed are input into the Kalman filter algorithm to output the actual slope.
4. The method of claim 1, wherein, The vehicle status information includes main box movement information, steering information, vehicle speed information, driving resistance information, main braking information, and auxiliary braking information; The step of determining whether the power interruption condition is met based on vehicle status information includes: Based on the main gearbox action information, determine whether the main gearbox is in the upshifting process; based on the steering information, determine whether the vehicle is in a turning state; based on the vehicle speed information, determine whether the vehicle speed is within the vehicle speed calibration range; based on the driving resistance information, determine whether the driving resistance is within the resistance calibration range; based on the main braking information and auxiliary braking information, determine whether the vehicle is in a braking state. When the following conditions are met: the main gearbox is in the upshifting process, the vehicle is not turning, the vehicle speed is within the specified speed range, the driving resistance is within the specified resistance range, and the vehicle is not braking, the power interruption condition is determined to be met.
5. The method of claim 4, wherein, The determination of the minimum acceleration of the entire vehicle during gear shifting based on vehicle speed includes: Acquire the raw vehicle speed signal from the CAN bus of the controller area network; The original vehicle speed signal is filtered to obtain a filtered vehicle speed sequence; The filtered vehicle speed sequence is differentiated to obtain the vehicle acceleration sequence; The vehicle acceleration sequence is subjected to low-pass filtering to obtain a filtered acceleration sequence; The minimum acceleration of the vehicle during gear shifting is obtained by performing a minimum value operation on the filtered acceleration sequence.
6. The method according to any one of claims 1 to 5, characterized in that, The first gradient is determined based on the vehicle's minimum acceleration, including: Substituting the minimum acceleration of the whole vehicle, gravitational acceleration, and rolling resistance coefficient into the longitudinal dynamics formula, the calculation results are obtained; The first slope is obtained by performing an inverse trigonometric function operation on the calculation result.
7. The method according to claim 6, characterized in that, The longitudinal dynamics formula satisfies: in, This is the first slope. This is the minimum acceleration of the entire vehicle. Let gravitational acceleration be the acceleration due to gravity. The rolling resistance coefficient is denoted as .
8. A device for determining the gradient of a vehicle, characterized in that, include: The processing module is used to acquire vehicle status information and determine whether the power interruption condition is met based on the vehicle status information. The first determining module is used to determine the minimum acceleration of the whole vehicle during the gear shifting process based on the vehicle speed when the power interruption condition is met. The second determining module is used to determine the first gradient based on the minimum acceleration of the entire vehicle; The third determining module is used to determine the longitudinal acceleration offset of the acceleration sensor based on the difference between the first slope and the second slope, wherein the second slope is determined based on the longitudinal acceleration of the acceleration sensor and the vehicle speed. The fourth determining module is used to correct the longitudinal acceleration of the acceleration sensor based on the longitudinal acceleration offset, and to determine the actual slope based on the corrected longitudinal acceleration and vehicle speed.
9. An electronic device, characterized in that, The method includes a memory and a processor, wherein the memory stores computer-readable instructions, and the processor is configured to, when executing the computer-readable instructions, perform the method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-readable instructions that, when executed by a processor, implement the method as described in any one of claims 1 to 7.
