Vehicle deviation compensation control method, computer readable storage medium and vehicle

By combining motor torque and steering wheel torque in the vehicle steering system to determine the deviation compensation torque, the problem of insufficient matching between the deviation compensation torque and the actual steering needs of the vehicle in the existing technology is solved, thereby improving the deviation compensation effect and reducing the driver's operating burden.

CN123169999APending Publication Date: 2026-11-27BYD CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611480353.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-21
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing vehicle drift compensation control methods, the drift compensation torque is not well matched with the actual steering requirements of the vehicle, which affects the drift compensation effect.

Method used

By determining the deviation compensation torque based on the motor torque and steering wheel torque of the vehicle steering system, and combining the power assist status of the steering system and the driver's steering needs, the degree of matching between the deviation compensation torque and the actual steering needs of the vehicle is improved.

Benefits of technology

It improves the vehicle's deviation compensation effect and reduces the driver's workload when maintaining the vehicle's straight-line driving.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123169999A_ABST
    Figure CN123169999A_ABST
Patent Text Reader

Abstract

The application discloses a vehicle deviation compensation control method, a computer readable storage medium and a vehicle, and can be applied to the field of intelligent driving. The method comprises the following steps: in the case that a deviation compensation condition is met, a deviation compensation torque is determined according to a motor torque of a vehicle steering system and a steering wheel hand torque; and vehicle deviation compensation is performed based on the deviation compensation torque. The technical scheme of the application can improve the matching degree of the deviation compensation torque and actual steering demand of the vehicle, thereby improving the vehicle deviation compensation effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle control technology, specifically to a vehicle deviation compensation control method, a computer-readable storage medium, and a vehicle. Background Technology

[0002] Existing vehicle pull-off compensation control methods generally determine the pull-off compensation torque based on vehicle operating information in order to compensate for vehicle pull-off.

[0003] However, the degree of matching between the deviation compensation torque determined by the existing method and the actual steering requirements of the vehicle is limited, which affects the vehicle deviation compensation effect. Summary of the Invention

[0004] A method, apparatus, computer-readable storage medium, computer program product, electronic device, and vehicle for vehicle pull-off compensation control are provided, aiming to solve the problem of insufficient matching between the pull-off compensation torque and the actual steering requirements of the vehicle.

[0005] Firstly, a vehicle drift compensation control method is provided, comprising the following steps: Under the condition that the deviation compensation is met, the deviation compensation torque is determined based on the motor torque of the vehicle steering system and the steering wheel hand torque. Vehicle deviation compensation is performed based on the aforementioned deviation compensation torque.

[0006] Secondly, a vehicle drift compensation control device is also provided, comprising: The determination module is used to determine the deviation compensation torque based on the motor torque and steering wheel hand torque of the vehicle steering system, provided that the deviation compensation conditions are met. The compensation module is used to compensate for vehicle deviation based on the deviation compensation torque.

[0007] Thirdly, embodiments of this application also provide an electronic device, including one or more processors and a memory, wherein the memory stores a computer program, and the processor is used to run the computer program in the memory to implement any of the vehicle deviation compensation control methods provided in embodiments of this application.

[0008] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program. When the computer program is run on an electronic device, the computer program is used to cause the electronic device to execute any of the vehicle deviation compensation control methods provided in the embodiments of this application.

[0009] Fifthly, embodiments of this application also provide a computer program product, including a computer program or instructions, which, when executed by a processor, implement any of the vehicle deviation compensation control methods provided in embodiments of this application.

[0010] Sixthly, embodiments of this application also provide a vehicle, including a processor, which is used to execute any of the vehicle deviation compensation control methods provided in embodiments of this application.

[0011] In summary, the embodiments of this application determine the deviation compensation torque based on the motor torque and steering wheel torque of the vehicle steering system. This allows the deviation compensation torque to simultaneously consider the power assist status of the steering system and the driver's steering needs, thereby improving the matching degree between the deviation compensation torque and the actual steering needs of the vehicle and thus improving the vehicle deviation compensation effect. Attached Figure Description

[0012] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0013] Figure 1 This is a schematic diagram of an implementation environment scenario for the vehicle deviation compensation control method provided in the embodiments of this application; Figure 2 This is a block diagram of vehicle deviation compensation control provided in the embodiments of this application; Figure 3 This is a flowchart illustrating the vehicle deviation compensation control method provided in the embodiments of this application; Figure 4 This is a schematic diagram of the steps of vehicle deviation compensation control provided in the embodiments of this application; Figure 5 This is a schematic diagram of the state transition of the deviation compensation function provided in the embodiments of this application; Figure 6 This is a schematic diagram of the process for updating the initial value of the deviation compensation torque provided in the embodiments of this application; Figure 7 This is a schematic diagram of the calculation and output limitation process for the deviation compensation torque provided in the embodiments of this application; Figure 8 This is a schematic diagram of the vehicle deviation compensation control device provided in the embodiments of this application; Figure 9 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application; Figure 10 This is a schematic diagram of the vehicle provided in the embodiments of this application. Detailed Implementation

[0014] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0015] This application provides a vehicle pull-off compensation control method, apparatus, electronic device, computer-readable storage medium, computer program product, and vehicle. The vehicle pull-off compensation control apparatus can be integrated into an electronic device, which can be a server, such as a vehicle pull-off compensation control system, or a terminal controlled by the vehicle pull-off compensation control system.

[0016] The server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), as well as big data and artificial intelligence platforms.

[0017] The terminal can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, etc., but is not limited to these. The terminal and the server can be connected directly or indirectly through wired or wireless communication, which is not limited herein.

[0018] Please see Figure 1 Taking the integration of vehicle deviation compensation control devices into electronic devices as an example, Figure 1 This is a schematic diagram of an implementation scenario of the vehicle deviation compensation control method provided in this application. The electronic device can be a terminal device. By determining the deviation compensation torque based on the motor torque and steering wheel torque of the vehicle steering system, the deviation compensation torque can simultaneously consider the power assist state of the steering system and the driver's steering needs, thereby improving the matching degree between the deviation compensation torque and the actual steering needs of the vehicle and thus improving the vehicle deviation compensation effect.

[0019] It should be noted that, Figure 1The schematic diagram illustrating the implementation environment of the vehicle drift compensation control method is merely an example. The implementation environment of the vehicle drift compensation control method described in this application is intended to more clearly illustrate the technical solutions of this application and does not constitute a limitation on the technical solutions provided in this application. Those skilled in the art will recognize that, with the evolution of data processing and the emergence of new business scenarios, the technical solutions provided in this application are equally applicable to similar technical problems.

[0020] The solutions provided in this application are specifically illustrated through the following embodiments. It should be noted that the order of description of the following embodiments is not intended to limit the preferred order of the embodiments.

[0021] This embodiment will be described from the perspective of a vehicle deviation compensation control device, which can be integrated into an electronic device, which can be a terminal and / or a server, and this application does not limit it.

[0022] Firstly, this application provides a vehicle drift compensation control method applied to vehicles with a vehicle steering system. The vehicle steering system provides auxiliary torque to the vehicle's steering mechanism via a motor. During straight-line driving, influenced by the external environment or vehicle body structure, the vehicle may tend to drift to one side, requiring the driver to continuously apply corrective torque to the steering wheel to maintain straight-line driving. This application implements torque compensation through the vehicle steering system to reduce the corrective torque applied by the driver to maintain straight-line driving.

[0023] The vehicle drift compensation control method provided in this application embodiment can be executed by the controller of the vehicle steering system. The controller acquires vehicle status information and steering wheel information related to drift compensation, determines whether the drift compensation conditions are met based on the acquired information, and determines the drift compensation torque when the drift compensation conditions are met, and controls the motor to implement vehicle drift compensation through the steering mechanism.

[0024] See Figure 2 In this embodiment, based on relevant status information and vehicle operating parameters, the functional prerequisites and vehicle stability conditions are determined, and the state of the lane deviation compensation function is determined accordingly. Based on the determined functional state, the motor torque of the vehicle steering system, and the steering wheel torque, the lane deviation compensation torque is determined. After limiting the output of the lane deviation compensation torque, it is superimposed on the motor torque before compensation to control the motor to implement vehicle lane deviation compensation. Furthermore, the lane deviation compensation torque is statistically analyzed while in a holding state, and the initial value of the lane deviation compensation torque is updated when update conditions are met. This initial value is used for subsequent compensation calculations and power-down storage.

[0025] Please see Figure 3 , Figure 3This is a schematic flowchart of a vehicle deviation compensation control method provided in an embodiment of this application. The vehicle deviation compensation control method includes the following steps.

[0026] Step S101: If the conditions for deviation compensation are met, determine the deviation compensation torque based on the motor torque and steering wheel torque of the vehicle steering system.

[0027] The lane deviation compensation condition is used to determine whether the current conditions meet the requirements for lane deviation compensation calculation based on motor torque and steering wheel torque. The lane deviation compensation condition can be determined based on the operating status of the vehicle's lateral control function, the vehicle's driving status, and the driver's driving control status.

[0028] Motor torque refers to the basic motor control torque in the vehicle steering system before the addition of drift compensation torque, and can be obtained from the vehicle steering system control process. Steering wheel torque refers to the torque applied by the driver to the steering wheel, which can be determined by the torque signal obtained from the steering wheel torque angle sensor. Drift compensation torque is the torque used to compensate for vehicle drift, determined based on the aforementioned motor torque and steering wheel torque.

[0029] Meeting the straight-ahead conditions does not mean the vehicle is free from a tendency to veer off course. When a vehicle does tend to veer off course, the driver can maintain straight-line driving by continuously applying steering wheel torque. Therefore, when the vehicle is traveling straight and the driver is maintaining stable steering wheel control, a veergence compensation torque can be determined based on the motor torque and steering wheel torque to reduce the burden on the driver to continuously apply force to maintain straight-line driving.

[0030] Step S102: Perform vehicle deviation compensation based on the deviation compensation torque.

[0031] Specifically, the determined deviation compensation torque is used for motor control of the vehicle steering system, and the motor applies the corresponding compensation action through the steering mechanism.

[0032] In one implementation, the deviation compensation torque is superimposed on the base motor control torque of the vehicle steering system, and the motor is controlled to operate according to the superimposed motor control torque, so that the motor provides both steering assistance and deviation compensation. The motor torque used for calculation in step S101 is the base motor control torque before the deviation compensation torque is superimposed, and is distinct from the torque used for motor control after superposition.

[0033] While the conditions for vehicle misalignment compensation are continuously met, the misalignment compensation torque can be updated according to a set calculation cycle, and vehicle misalignment compensation can be implemented based on the updated misalignment compensation torque. For situations requiring output limitations, slope and amplitude limitations can also be applied before using the misalignment compensation torque for motor control.

[0034] When the conditions for deviation compensation are met, the motor torque of the vehicle steering system and the steering wheel torque are used together to determine the deviation compensation torque, and the compensation is implemented through the vehicle steering system. This achieves vehicle deviation compensation by combining the power assist of the vehicle steering system and the force applied by the driver, thereby reducing the driver's operational burden when maintaining straight-line driving.

[0035] See Figure 4 In one specific implementation of this embodiment, the functional prerequisites and vehicle stability conditions are first determined, and the state of the vehicle drift compensation function is identified. While in the holding state, the drift compensation torque is statistically analyzed. When the drift compensation function transitions from the holding state to the active state, a reference value for the drift compensation torque is first determined based on the statistical results, and the initial value of the drift compensation torque is updated. Subsequently, the drift compensation torque is determined based on the functional state, and its slope and amplitude are limited, and vehicle drift compensation is executed. The above control process is executed according to a set cycle.

[0036] In some embodiments, determining the deviation compensation torque based on the motor torque and steering wheel torque of the vehicle steering system includes: obtaining an initial value of the deviation compensation torque; determining a torque compensation adjustment amount based on the motor torque and steering wheel torque; and determining the deviation compensation torque based on the torque compensation adjustment amount and the initial value of the deviation compensation torque.

[0037] The initial value of the drift compensation torque is used to provide the starting compensation level for this drift compensation calculation. The vehicle steering system can read the pre-stored initial value of drift compensation and use it as the initial value of the drift compensation torque. This initial value can be stored when the vehicle is powered off and read and used after the vehicle is powered on again, so that subsequent drift compensation calculations can utilize the already saved compensation information.

[0038] The torque compensation adjustment amount is used to characterize the adjustment step size used when updating the deviation compensation torque within a single calculation cycle. The torque compensation adjustment amount has a different purpose than the deviation compensation torque; the former is used to update the existing compensation level, while the latter is used for the execution of vehicle deviation compensation.

[0039] Specifically, the motor torque and steering wheel torque used in the current cycle calculation are obtained, the two are added together, and the result is divided by a set coefficient to obtain the torque compensation adjustment amount for the current cycle. The calculation relationship is as follows: Torque compensation adjustment amount = (motor torque + steering wheel hand torque) / setting coefficient.

[0040] The set coefficient is a non-zero value, used to determine the proportional relationship between the sum of the motor torque and the steering wheel torque and the torque compensation adjustment amount.

[0041] In this embodiment, the motor torque and steering wheel torque involved in the addition operation use the same torque measurement unit, torque reference, and direction convention, so that the addition result has a consistent physical meaning. Both input torques retain their corresponding direction information, and the torque compensation adjustment amount is determined according to their algebraic sum, rather than directly adding the absolute values ​​of the two torques.

[0042] After obtaining the torque compensation adjustment amount, the initial value of the deviation compensation torque is used as the starting basis to determine the deviation compensation torque. When performing continuous compensation calculations, the deviation compensation torque can also be updated cycle by cycle in combination with the deviation compensation torque determined in the previous cycle, so that the deviation compensation torque is adjusted with the changes in motor torque and steering wheel torque.

[0043] By using initial values ​​to provide the initial compensation level, and determining the torque compensation adjustment amount based on motor torque and steering wheel torque, dynamic calculation of the deviation compensation torque is achieved based on existing compensation information.

[0044] In some embodiments, determining the deviation compensation torque based on the torque compensation adjustment amount and the initial value of the deviation compensation torque includes: obtaining the deviation compensation torque of the vehicle at the current moment based on the sum of the torque compensation adjustment amount and the initial value of the deviation compensation torque; and determining the deviation compensation torque at the next moment based on the deviation compensation torque of the vehicle at the current moment, the motor torque at the next moment, and the steering wheel torque.

[0045] In this embodiment, the deviation compensation torque is updated according to a set calculation cycle. The current moment and the next moment correspond to two adjacent calculation cycles, respectively. Specifically, the current moment, which uses the initial value of the deviation compensation torque for initialization calculation, corresponds to the first calculation cycle of this compensation calculation.

[0046] In the first calculation cycle, the torque compensation adjustment amount is determined based on the motor torque and steering wheel torque of that cycle. This torque compensation adjustment amount is then added to the initial value of the deviation compensation torque to obtain the deviation compensation torque for the first calculation cycle. The calculation relationship is as follows: The deviation compensation torque for the first calculation cycle = the initial value of the deviation compensation torque + the torque compensation adjustment amount for the first calculation cycle.

[0047] In the next calculation cycle, the motor torque and steering wheel torque of that cycle are obtained. Based on these two values, the torque compensation adjustment amount for the next calculation cycle is determined. This torque compensation adjustment amount is then added to the deviation compensation torque of the current calculation cycle to obtain the deviation compensation torque for the next calculation cycle. The calculation relationship is as follows: The deviation compensation torque for the next calculation cycle = deviation compensation torque for the current calculation cycle + torque compensation adjustment for the next calculation cycle.

[0048] Subsequent calculation cycles will continue to be updated according to the above relationship, that is, based on the deviation compensation torque of the previous calculation cycle, the torque compensation adjustment amount of the current calculation cycle will be added.

[0049] The initial value of the misalignment compensation torque, which was included during initialization, is already included in the misalignment compensation torque of the previous calculation cycle. Therefore, the initial value of the misalignment compensation torque is only included in the first calculation, and this initial value is not repeatedly added in subsequent cycles, thereby avoiding the initial value being repeatedly accumulated cycle by cycle.

[0050] By employing a calculation method that combines initial initialization with subsequent recursion, the deviation compensation torque is continuously updated between adjacent calculation cycles, enabling the motor torque and steering wheel torque of different cycles to participate in the compensation calculation of the corresponding cycle.

[0051] In some embodiments, the deviation compensation conditions include functional prerequisites and vehicle stability conditions. The functional prerequisite is that the vehicle's lateral control function is not activated. The vehicle stability conditions include that the vehicle is in a specified driving state and the driver is in a stable driving state. If both the functional prerequisite and the vehicle stability conditions are met, the deviation compensation function is activated. Otherwise, the deviation compensation function is kept in a holding state.

[0052] The specified driving conditions include the vehicle meeting the conditions for straight-line driving and constant-speed driving. The driver is in a stable driving state, including the driver not taking their hands off the steering wheel and the driver's control of the steering wheel meeting the stability requirements.

[0053] Lateral control functions refer to functions that control the lateral movement of a vehicle, such as lane keeping assist or lane centering control. In this embodiment, the "activation state" refers to the actual activation state of the lateral control function, reflecting whether the lateral control function is currently engaged.

[0054] Specifically, the system can acquire vehicle lateral control status information from the forward-facing camera and determine whether the lateral control function is actually active. If the lateral control function is not actually active, it is determined that the prerequisite for the function is met; if the lateral control function is actually active, it is determined that the prerequisite for the function is not met.

[0055] If a vehicle has multiple lateral control functions involved in the above judgment, and any one of the lateral control functions is actually active, then the precondition for that function is determined to be unmet.

[0056] If the deviation compensation function is already in a held or active state, the actual activation state of the lateral control function continues to be acquired. When the lateral control function is actually activated, the deviation compensation function is turned off. The deviation compensation function switches its state accordingly based on the actual activation state of the lateral control function, and does not reverse the actual activation state of the lateral control function without relying on the deviation compensation function's state.

[0057] In one specific implementation, in addition to determining the actual activation state of the lateral control function, the system also considers the drift compensation enable state, the vehicle body information validity state, the steering wheel sensor state, the vehicle steering system safety limit state, vehicle speed, and steering wheel angle to determine whether the drift compensation function is allowed to be activated.

[0058] The enabled status of deviation compensation can be determined by the deviation compensation enable switch. When the deviation compensation function is enabled, other activation conditions will be determined.

[0059] The valid status of vehicle information includes the valid status of yaw rate, lateral acceleration, longitudinal acceleration, and vehicle speed, which can be determined based on the corresponding valid status bits in the vehicle message. If all the above-mentioned relevant status bits indicate validity, the corresponding signals are used for subsequent judgments.

[0060] The steering wheel sensor status includes the steering angle fault status and torque fault status of the steering wheel torque and angle sensors. If both the steering angle and torque are functioning correctly, the corresponding steering wheel information is used for further assessment.

[0061] The vehicle steering system safety limit status is used to determine whether the vehicle steering system is functioning normally. If the vehicle steering system is operating normally, the conditions for determining the activation of the lane deviation compensation function can then be determined.

[0062] At the same time, it determines whether the current steering wheel angle is greater than or equal to the lower limit threshold of the function activation angle and less than or equal to the upper limit threshold of the function activation angle, and determines whether the current vehicle speed is greater than or equal to the lower limit threshold of the function activation speed and less than or equal to the upper limit threshold of the function activation speed.

[0063] If all the above activation conditions are met, the deviation compensation function is allowed to enter the subsequent control process.

[0064] By using the actual activation status of the lateral control function as the prerequisite for judging the deviation compensation function, and combining relevant signals and system status to determine whether the deviation compensation function is allowed to be activated, the operating conditions of deviation compensation can be controlled, reducing the mutual interference between deviation compensation and the vehicle's lateral control function.

[0065] In some embodiments, when the lane deviation compensation function is in the holding state, the vehicle performs lane deviation compensation based on the initial value of the lane deviation compensation torque; when the lane deviation compensation function is in the activated state, the vehicle determines the lane deviation compensation torque based on the motor torque of the vehicle steering system and the steering wheel torque.

[0066] Specifically, the system determines whether a vehicle meets the straight-ahead condition based on the current yaw rate, lateral acceleration, and the four-wheel wheel speed difference. The vehicle is deemed to meet the straight-ahead condition if the yaw rate used for the determination does not exceed a set yaw rate threshold, the lateral acceleration does not exceed a set lateral acceleration threshold, and the four-wheel wheel speed difference does not exceed a set wheel speed difference threshold.

[0067] The vehicle's ability to travel at a constant speed is determined based on its current longitudinal acceleration. If the longitudinal acceleration used for this determination does not exceed a set longitudinal acceleration threshold, the vehicle is deemed to meet the conditions for constant speed travel.

[0068] The driver's stability is determined based on the current steering wheel speed and steering wheel torque. If the steering wheel speed used for this determination does not exceed a set steering wheel speed threshold, and the steering wheel torque is between a set lower limit and a set upper limit, the driver is considered to be in a stable driving state with their hands still on the wheel. Specifically, the steering wheel torque must be greater than the set lower limit and less than the set upper limit.

[0069] In one specific implementation, the aforementioned yaw rate threshold, lateral acceleration threshold, longitudinal acceleration threshold, and steering wheel rotation speed threshold are used to constrain the amplitude of the corresponding motion. For the aforementioned signals with directional signs, their absolute values ​​are compared with the corresponding thresholds to avoid inconsistencies in stability judgments caused by different positive and negative directions.

[0070] When determining whether the driver is holding the steering wheel stably, the amplitude of the steering wheel torque is compared with the aforementioned lower and upper torque limits. When determining the torque compensation adjustment, the directional information of the steering wheel torque is retained. Therefore, the same steering wheel torque signal can be used for stability assessment and compensation torque calculation, depending on the processing purpose.

[0071] The vehicle is considered to have met stability conditions when it meets the conditions for straight-line driving and constant speed driving, and the driver is in a stable driving state.

[0072] This embodiment controls the lane misalignment compensation function to switch between a closed state, a held state, and an active state based on functional prerequisites and vehicle stability conditions. The functional prerequisites are used to determine whether the lane misalignment compensation function is allowed to operate, while the vehicle stability conditions are used to further determine whether to allow entering the active state of dynamically calculating the lane misalignment compensation torque, based on whether operation is allowed.

[0073] When determining a state transition, the functional prerequisites are prioritized. If the functional prerequisites are not met, the lane deviation compensation function is deactivated and will no longer be activated based on vehicle stability conditions. If the functional prerequisites are met, the subsequent state is determined based on the current functional state and vehicle stability conditions.

[0074] See Figure 5 The vehicle drift compensation function includes three states: off, hold, and active. When determining the state transition, the preconditions are prioritized. If the preconditions are not met, the drift compensation function enters the off state. When the preconditions are met, the drift compensation function can transition from the off state to the hold state, and after the vehicle stability conditions are continuously met for a set time threshold, it transitions from the hold state to the active state. In the active state, if the preconditions are still met but the vehicle stability conditions are not, it switches to the hold state. If the vehicle stability conditions are interrupted, the continuous satisfaction time is re-evaluated.

[0075] When the vehicle drift compensation function is in the off state, if the preconditions for the function are met, the control function will enter the holding state. In the holding state, the initial value of the drift compensation torque is used as the drift compensation torque corresponding to this state, and vehicle drift compensation is performed based on this initial value.

[0076] If the lane deviation compensation function is in the hold state and the prerequisite conditions for the function continue to be met, it is determined whether the vehicle stability conditions are met. If the vehicle stability conditions are met, the lane deviation compensation function is activated.

[0077] In one specific implementation, a time threshold is set to determine whether the vehicle stability condition is continuously met. Timing begins when the vehicle stability condition is first met, and the condition is continuously assessed during this time. If the vehicle stability condition remains met, timing continues; if the vehicle stability condition is no longer met before reaching the set time threshold, the current continuous satisfaction process ends, and the accumulated time is not included in the next continuous satisfaction process. Once the vehicle stability condition is met again, the continuous satisfaction time is reassessed.

[0078] When the vehicle stability conditions are met continuously for a set time threshold, and the functional prerequisites are still met, the control deviation compensation function changes from the hold state to the active state.

[0079] In the active state, the torque compensation adjustment amount is determined based on the motor torque and steering wheel torque of the vehicle steering system. The initial calculation is performed in combination with the initial value of the deviation compensation torque, and the adjustment is continued to be updated based on the deviation compensation torque of the previous cycle in subsequent cycles.

[0080] In the active state, if the functional prerequisites are still met, but the vehicle stability conditions are not met, the control function for lane deviation compensation will switch from the active state to the holding state. In the holding state, compensation is performed according to the initial value of the lane deviation compensation torque, and the torque compensation adjustment is not added periodically according to the calculation method in the active state.

[0081] In either the hold or active state, if the functional prerequisites are not met, the lane deviation compensation function will be deactivated. Entering the deactivated state has higher priority than entering the active or hold state. Therefore, in the hold state, even if the vehicle stability conditions are met, the function will still be deactivated if the functional prerequisites are not met; similarly, in the active state, if both the functional prerequisites and vehicle stability conditions are not met, the function will also be deactivated.

[0082] The calculated value of the misalignment compensation torque is zero in the off state, the initial value in the hold state, and the dynamic calculation result in the active state. When output limiting is used, the calculated values ​​determined based on the functional state need to be further limited before being used for motor control.

[0083] By controlling the state switching based on functional prerequisites and vehicle stability conditions, the system can differentiate and manage the shutdown of the deviation compensation function, the initial torque compensation, and the dynamic torque calculation, so that the method of determining the compensation torque is adapted to the current vehicle state.

[0084] In some embodiments, the method further includes: determining a reference value for a deviation compensation torque based on the deviation compensation torque of the vehicle under the holding state; determining the difference between the reference value for the deviation compensation torque and the initial value for the deviation compensation torque; and updating the initial value for the deviation compensation torque based on the difference.

[0085] The reference value for the misalignment compensation torque is used as a comparison basis for deciding whether to update the initial value of the misalignment compensation torque. This reference value differs in purpose from the misalignment compensation torque directly used for motor control; the former is used for initial value update judgment, while the latter is used for compensation execution.

[0086] Specifically, the deviation compensation torque is acquired while maintaining the current state. This acquired torque is then statistically analyzed and converted to obtain a reference value. Subsequently, this reference value is compared with the initial deviation compensation torque value before the update, and the difference between the two is used to determine whether to update the initial value.

[0087] In one specific implementation, the difference used for update judgment is obtained by subtracting the reference value of the deviation compensation torque from the initial value of the deviation compensation torque before the update. The calculation relationship is as follows: Difference = Initial value of deviation compensation torque - Reference value of deviation compensation torque.

[0088] The direction of the difference calculation corresponds to the preset difference range used for judgment, and it is not arbitrarily replaced with the reverse difference or absolute difference during the calculation process.

[0089] When the difference meets the preset update conditions, the initial value of the deviation compensation torque is updated; when the difference does not meet the preset update conditions, the original initial value of the deviation compensation torque remains unchanged. The initial value determined after the update judgment is used for subsequent deviation compensation calculations and can also be used as the deviation compensation starting value that needs to be saved when the vehicle is powered off, so that it can be read and used when the vehicle is powered on again.

[0090] By determining the reference value based on the compensation torque under the held state, and deciding whether to update based on the difference between the reference value and the initial value, the initial compensation level used in subsequent compensation calculations is updated.

[0091] In some embodiments, determining a reference value for the drift compensation torque based on the drift compensation torque of the vehicle in the holding state includes: determining an average drift compensation torque based on the average value of the drift compensation torque determined multiple times in the holding state; and determining a reference value for the drift compensation torque based on the average drift compensation torque and a set compensation torque storage coefficient when the drift compensation function enters the active state from the holding state.

[0092] See Figure 6 During the hold state of the deviation compensation function, the actual output deviation compensation torque of each control cycle is accumulated, and the sample size is recorded. When the deviation compensation function transitions from the hold state to the active state, the average deviation compensation torque is determined based on the accumulated compensation torque and sample size during the hold period. Then, the reference value of the deviation compensation torque is determined by multiplying the average deviation compensation torque by the set compensation torque storage coefficient. The difference between the initial value of the deviation compensation torque and the reference value is used for judgment. If the difference is greater than the lower limit of the set storage difference and less than the upper limit of the set storage difference, the initial value of the deviation compensation torque is updated to the reference value; otherwise, the initial value remains unchanged. After completing the above processing, the accumulated compensation torque and sample size are cleared to zero. For cases where the function is neither in the hold state nor transitioning from the hold state to the active state, the above statistics are also cleared to zero.

[0093] In this embodiment, a single continuous period of holding the state is considered a statistical period. During this statistical period, the current output deviation compensation torque is obtained according to the calculation cycle. Each deviation compensation torque obtained is added to the cumulative compensation torque, and the number of torques participating in the accumulation is recorded.

[0094] Each calculation period involved in the statistics corresponds to one sample of deviation compensation torque. The cumulative compensation torque is the algebraic sum of all samples within this statistical period, and the number of torques included in the cumulative calculation is the number of samples obtained during this statistical period.

[0095] The cumulative compensation torque for the current cycle is determined according to the following relationship: The cumulative compensation torque of the current cycle = the cumulative compensation torque of the previous cycle + the deviation compensation torque of the current cycle.

[0096] The cumulative compensation torque of the previous cycle refers to the cumulative result of the deviation compensation torque of each cycle that participated in this statistic, rather than just the deviation compensation torque of a single output in the previous cycle.

[0097] When the deviation compensation function transitions from the hold state to the active state, the average deviation compensation torque is calculated by averaging the cumulative compensation torque obtained during the current statistical period and the number of samples. The calculation relationship is as follows: Average deviation compensation torque = cumulative compensation torque / number of torques involved in the cumulative calculation.

[0098] The above average calculation is based on the already obtained samples, and the number of samples involved in the calculation is greater than zero.

[0099] Subsequently, the average deviation compensation torque is multiplied by the set compensation torque storage coefficient to obtain the deviation compensation torque reference value. The calculation relationship is as follows: The reference value of the deviation compensation torque = the average deviation compensation torque × the set compensation torque storage coefficient.

[0100] The average deviation compensation torque reflects the average compensation level during the current state maintenance period, while the deviation compensation torque reference value is the value used for initial value update judgment after the average compensation level is converted by the storage coefficient.

[0101] The compensation torque storage coefficient is set as a calibration value, which can be calibrated based on the deviation compensation torque data obtained from the actual vehicle under different road conditions. This is used to determine the part of the average deviation compensation torque that participates in the current initial value update.

[0102] After obtaining the reference value for the misalignment compensation torque, the difference between the initial value and the reference value of the misalignment compensation torque before the update is determined. The preset difference range is limited by a set lower limit and a set upper limit for the stored difference. When the difference is greater than the set lower limit and less than the set upper limit, the initial value of the misalignment compensation torque is updated to the reference value; otherwise, the original initial value remains unchanged. If the difference equals any boundary of the range, the update is not performed.

[0103] Updating the initial value of the deviation compensation torque to the reference value means replacing the initial value with the reference value, not directly adding the reference value as an increment to the initial value.

[0104] During the transition from the hold state to the active state, the statistical results obtained during the hold state are used first to complete the reference value calculation and initial value update judgment, and then the current statistical analysis ends. After entering the non-hold state, the cumulative compensation torque is set to zero, and the corresponding sample number is simultaneously cleared to prevent subsequent statistics from being mixed with data from the previous hold state.

[0105] After the initial value update judgment is completed, the first compensation calculation in the active state uses the initial value of the deviation compensation torque determined at this time. If the update conditions are met, the updated initial value is used; if the update conditions are not met, the unchanged initial value is used. Subsequent calculation cycles are recursively calculated based on the deviation compensation torque of the previous cycle and the torque compensation adjustment amount of the current cycle.

[0106] By averaging the deviation compensation torques obtained multiple times under the holding state, and combining the set compensation torque storage coefficient and preset difference range to perform replacement updates, the starting compensation level for subsequent compensation calculations can be managed based on the torque statistics under the holding state.

[0107] In some embodiments, vehicle deviation compensation based on deviation compensation torque includes: performing vehicle deviation compensation based on deviation compensation torque when the slope of the change of deviation compensation torque does not exceed a preset slope; and determining a new deviation compensation torque at the current moment based on the deviation compensation torque at the previous moment and the preset slope when the slope of the change of deviation compensation torque exceeds the preset slope, and performing vehicle deviation compensation based on the new deviation compensation torque.

[0108] See Figure 7 Within each control cycle, the state of the vehicle drift compensation function is determined based on functional prerequisites and vehicle stability conditions. In the off state, the calculated drift compensation torque is set to zero; in the hold state, the calculated drift compensation torque is determined based on the initial value; in the active state, the torque compensation adjustment is determined based on the motor torque and steering wheel torque. Specifically, the first calculation cycle after entering the active state is based on the initial value of the drift compensation torque, and subsequent cycles are recursively calculated based on the drift compensation torque of the previous cycle. The determined drift compensation torque is sequentially subject to slope and amplitude limitations to obtain the output torque used for vehicle drift compensation. Torque changes caused by state switching are also subject to the same output limitation processing.

[0109] The slope of the deviation compensation torque is used to characterize the rate of change of the deviation compensation torque over time. In this embodiment, deviation compensation control is performed according to a set cycle. First, the calculated value of the deviation compensation torque for the current cycle is determined based on the state of the deviation compensation function. Then, the slope of the calculated value for the current cycle is limited based on the actual output deviation compensation torque of the previous cycle.

[0110] Specifically, the calculated value of the deviation compensation torque for the current cycle is subtracted from the actual output deviation compensation torque for the previous cycle to obtain the torque change for the current cycle. In one embodiment, the absolute value of this torque change is divided by the set cycle to obtain the slope change used for slope limit judgment.

[0111] The preset slope is a non-negative value, used to limit the allowable torque change per unit time. Multiplying the preset slope by the set period yields the maximum allowable torque change for the current period; the calculation relationship is as follows: The maximum allowable torque variation = preset slope × set period.

[0112] When the absolute value of the torque change in this cycle does not exceed the maximum allowable torque change, the calculated value of the deviation compensation torque for the current cycle is retained, and no slope correction is performed.

[0113] When the torque change in this cycle is positive and its absolute value exceeds the maximum allowable torque change, the actual output torque for deviation compensation in the previous cycle is added to the maximum allowable torque change to obtain the deviation compensation torque after slope limitation. The calculation relationship is as follows: The deviation compensation torque after slope limitation = the actual deviation compensation torque output in the previous cycle + the preset slope × the set cycle.

[0114] When the torque change in this cycle is negative and its absolute value exceeds the maximum allowable torque change, the deviation compensation torque after slope limitation is obtained by subtracting the maximum allowable torque change from the actual output deviation compensation torque of the previous cycle. The calculation relationship is as follows: The deviation compensation torque after slope limitation = the actual deviation compensation torque output in the previous cycle - the preset slope × the set cycle.

[0115] Through the above processing, during the increase and decrease of the compensating torque, the torque change amplitude within a single cycle is constrained according to the corresponding direction of change. The torque after slope constraint changes towards the current calculated value and will not exceed the current calculated value due to this slope constraint processing.

[0116] The aforementioned slope limitation is also used for torque output processing when the deviation compensation function switches between the off, hold, and active states. When entering the off state, the calculated deviation compensation torque for the current cycle is zero, and the actual output changes towards zero according to the slope limitation method. When entering the hold state, the calculated value is the initial value of the deviation compensation torque, and the actual output changes towards this initial value according to the slope limitation method. In the active state, corresponding output limitation processing is performed based on the cycle-by-cycle dynamic calculation results.

[0117] In a further embodiment, after the slope limitation is completed, the amplitude of the deviation compensation torque is also limited to avoid excessive compensation torque causing abnormal steering wheel rotation.

[0118] Specifically, the amplitude of the deviation compensation torque after slope limitation is compared with the set upper limit of amplitude. When the amplitude does not exceed the set upper limit of amplitude, the deviation compensation torque after slope limitation is retained; when the amplitude exceeds the set upper limit of amplitude, its amplitude is limited to the set upper limit of amplitude while retaining the torque direction.

[0119] When the compensation direction is represented by a signed torque value, its amplitude is represented by the absolute value of the torque. When the deviation compensation torque after slope limitation is greater than the upper limit of the set amplitude in the positive direction, it is limited to the upper limit in the positive direction; when it is less than the opposite of the upper limit of the set amplitude, it is limited to the opposite of the upper limit; when it is within the above range, the torque remains unchanged.

[0120] Finally, the deviation compensation torque obtained after slope and amplitude limitation is superimposed on the basic motor control torque of the vehicle steering system. The vehicle steering system controls the motor to work according to the superimposed torque, and applies deviation compensation to the vehicle through the steering mechanism.

[0121] The deviation compensation torque of the actual output in this cycle is retained as the torque of the previous cycle used for the output limit processing in the next cycle, so that the output limit of adjacent cycles is based on the actual output.

[0122] By limiting the slope of the deviation compensation torque, the rate of change of the compensation torque during dynamic calculation and state switching is constrained, reducing the impact of sudden changes in compensation torque on steering feel; by further limiting the amplitude, the output amplitude of the compensation torque is constrained, avoiding abnormal steering wheel rotation caused by excessive compensation torque.

[0123] To facilitate better implementation of the vehicle drift compensation control method provided in this application, this application also provides an apparatus based on the above-described vehicle drift compensation control method. The meanings of the terms used are the same as in the above-described vehicle drift compensation control method, and specific implementation details can be found in the descriptions in the method embodiments.

[0124] For example, such as Figure 8 As shown, the vehicle drift compensation control device may include: The determination module 201 is used to determine the deviation compensation torque based on the motor torque and steering wheel hand torque of the vehicle steering system when the deviation compensation conditions are met. The compensation module 202 is used to compensate for vehicle deviation based on the deviation compensation torque.

[0125] In some embodiments, the determining module 201 is further configured to: Obtain the initial value of the deviation compensation torque; The torque compensation adjustment amount is determined based on the motor torque and the steering wheel torque. The deviation compensation torque is determined based on the torque compensation adjustment amount and the initial value of the deviation compensation torque.

[0126] In some optional implementations, the compensation module 201 is further configured to: Based on the sum of the torque compensation adjustment and the initial value of the deviation compensation torque, the deviation compensation torque of the vehicle at the current moment is obtained. The deviation compensation torque for the next moment is determined based on the vehicle's deviation compensation torque at the current moment, the motor torque at the next moment, and the steering wheel torque.

[0127] In some alternative implementations, the above-mentioned deviation compensation conditions include a functional prerequisite condition, which is that the vehicle's lateral control function is not activated.

[0128] In some optional implementations, the above-mentioned deviation compensation conditions also include vehicle stability conditions, which include the vehicle being in a specified driving state and the driver being in a stable driving state. The aforementioned determining module 201 is also used for: When the aforementioned functional preconditions are met, the control function for deviation compensation changes from the off state to the hold state; When the lane deviation compensation function is in the holding state and the vehicle stability conditions are met, the lane deviation compensation function is controlled to enter the active state. If the aforementioned functional prerequisites are not met, the deviation compensation function is controlled to enter the off state; When the lane deviation compensation function is in the activated state and the vehicle stability conditions are not met, the lane deviation compensation function is controlled to switch from the activated state to the hold state. In the holding state, the vehicle performs deviation compensation based on the initial value of the deviation compensation torque; In the activated state, the vehicle determines the deviation compensation torque based on the motor torque of the vehicle steering system and the steering wheel torque.

[0129] In some optional implementations, the determining module 201 is further configured to: Based on the vehicle's deviation compensation torque in the holding state, determine the reference value of the deviation compensation torque; Determine the difference between the reference value of the deviation compensation torque and the initial value of the deviation compensation torque, and update the initial value of the deviation compensation torque based on the difference.

[0130] In some optional implementations, the determining module 201 is further configured to: The average deviation compensation torque is determined based on the average value of the deviation compensation torque determined multiple times under the aforementioned holding state. When the deviation compensation function changes from the holding state to the active state, the deviation compensation torque reference value is determined based on the average deviation compensation torque and the set compensation torque storage coefficient. The step of updating the initial value of the deviation compensation torque based on the difference includes: If the difference is within a preset difference range, the initial value of the deviation compensation torque is updated to the reference value of the deviation compensation torque.

[0131] In some optional implementations, the compensation module 202 is further configured to: If the slope of the change in the deviation compensation torque does not exceed the preset slope, vehicle deviation compensation is performed based on the deviation compensation torque. If the slope of the change in the deviation compensation torque exceeds the preset slope, a new deviation compensation torque is determined at the current moment based on the deviation compensation torque at the previous moment and the preset slope, and vehicle deviation compensation is performed.

[0132] The vehicle drift compensation control device according to the embodiments of this application determines the drift compensation torque based on the motor torque of the vehicle steering system and the steering wheel hand torque, so that the drift compensation torque can simultaneously take into account the power assist state of the steering system and the driver's steering needs, thereby improving the matching degree between the drift compensation torque and the actual steering needs of the vehicle and thus improving the vehicle drift compensation effect.

[0133] In practice, each of the above modules can be implemented as an independent entity or can be combined arbitrarily to be implemented as the same or several entities. For the specific implementation methods and corresponding beneficial effects of each of the above modules, please refer to the previous method embodiments, which will not be repeated here.

[0134] This application also provides an electronic device, such as... Figure 9 As shown, it illustrates a structural schematic diagram of the electronic device involved in the embodiments of this application, specifically: The electronic device may include components such as a processor 301 with one or more processing cores, a memory 302 with one or more storage media, a power supply 303, and an input unit 304. Those skilled in the art will understand that... Figure 10 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein: The processor 301 is the control center of the electronic device, connecting various parts of the device via various interfaces and lines. It executes computer programs and / or modules stored in the memory 302, and calls data stored in the memory 302 to perform various functions and process data. Optionally, the processor 301 may include one or more processing cores; preferably, the processor 301 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 301.

[0135] The memory 302 can be used to store computer programs and modules. The processor 301 executes various functional applications and vehicle drift compensation control by running the computer programs and modules stored in the memory 302. The memory 302 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, computer programs required for at least one function (such as audible and visual prompts, vehicle drift compensation control, etc.), etc.; the data storage area may store data created based on the use of the electronic device. In addition, the memory 302 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 302 may also include memory electronics to provide the processor 301 with access to the memory 302.

[0136] The electronic device also includes a power supply 303 that supplies power to various components. Preferably, the power supply 303 can be logically connected to the processor 301 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 303 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0137] The electronic device may also include an input unit 304, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0138] Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 301 in the electronic device loads the executable files corresponding to the processes of one or more computer programs into the memory 302 according to the following instructions, and the processor 301 runs the computer programs stored in the memory 302 to realize various functions, such as: Under the condition that the deviation compensation is met, the deviation compensation torque is determined based on the motor torque of the vehicle steering system and the steering wheel hand torque. Vehicle deviation compensation is performed based on the aforementioned deviation compensation torque.

[0139] Therefore, the electronic device provided in this application embodiment can determine the deviation compensation torque based on the motor torque and steering wheel torque of the vehicle steering system, so that the deviation compensation torque can simultaneously consider the power assist state of the steering system and the driver's steering needs, thereby improving the matching degree between the deviation compensation torque and the actual steering needs of the vehicle and thus improving the vehicle deviation compensation effect.

[0140] For details on the specific implementation methods and corresponding beneficial effects of each of the above operations, please refer to the detailed description of the vehicle deviation compensation control method above, which will not be repeated here.

[0141] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by a computer program, or by a computer program controlling related hardware. The computer program can be stored in a storage medium and loaded and executed by a processor.

[0142] Therefore, embodiments of this application provide a computer-readable storage medium storing a computer program that can be loaded by a processor to execute the steps of any of the vehicle drift compensation control methods provided in embodiments of this application. For example, the computer program can execute the following steps: Under the condition that the deviation compensation is met, the deviation compensation torque is determined based on the motor torque of the vehicle steering system and the steering wheel hand torque. Vehicle deviation compensation is performed based on the aforementioned deviation compensation torque.

[0143] Therefore, the storage medium provided in this application embodiment can determine the deviation compensation torque based on the motor torque and steering wheel torque of the vehicle steering system, so that the deviation compensation torque can simultaneously consider the power assist state of the steering system and the driver's steering needs, thereby improving the matching degree between the deviation compensation torque and the actual steering needs of the vehicle and thus improving the vehicle deviation compensation effect.

[0144] For details on the specific implementation methods and corresponding beneficial effects of the above operations, please refer to the previous embodiments, which will not be repeated here.

[0145] The storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0146] Since the computer program stored in the storage medium can execute the steps in any of the vehicle deviation compensation control methods provided in the embodiments of this application, the beneficial effects that any of the vehicle deviation compensation control methods provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.

[0147] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a storage medium. A processor of a computer device reads the computer instructions from the storage medium and executes the computer instructions, causing the computer device to perform the aforementioned vehicle yaw compensation control method.

[0148] This application also provides a vehicle that includes the aforementioned vehicle deviation compensation control device, or processor, or the aforementioned electronic device, or the aforementioned computer program product.

[0149] For example, please refer to Figure 10 The vehicle 400 includes the aforementioned electronic equipment, which determines the deviation compensation torque based on the motor torque of the vehicle steering system and the steering wheel torque. This allows the deviation compensation torque to simultaneously consider the power assist status of the steering system and the driver's steering needs, thereby improving the matching degree between the deviation compensation torque and the actual steering needs of the vehicle and thus improving the vehicle deviation compensation effect.

[0150] This application does not limit the specific structure of the vehicle. The specific implementation methods and corresponding beneficial effects of the above-described operations of the control equipment are also applicable to this vehicle. For details, please refer to the detailed description of the vehicle deviation compensation control method above, which will not be repeated here.

[0151] The foregoing has provided a detailed description of a vehicle deviation compensation control method, device, electronic device, storage medium, computer program product, and vehicle provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for compensating and controlling vehicle deviation, characterized in that, include: Under the condition that the deviation compensation is met, the deviation compensation torque is determined based on the motor torque of the vehicle steering system and the steering wheel torque. Vehicle deviation compensation is performed based on the aforementioned deviation compensation torque.

2. The vehicle deviation compensation control method according to claim 1, characterized in that, The determination of the deviation compensation torque based on the motor torque and steering wheel torque of the vehicle steering system includes: The torque compensation adjustment amount is determined based on the motor torque and the steering wheel torque. The deviation compensation torque is determined based on the torque compensation adjustment amount and the initial value of the deviation compensation torque.

3. The vehicle drift compensation control method according to claim 2, characterized in that, The step of determining the deviation compensation torque based on the torque compensation adjustment amount and the initial value of the deviation compensation torque includes: Based on the sum of the torque compensation adjustment and the initial value of the deviation compensation torque, the deviation compensation torque of the vehicle at the current moment is obtained. The vehicle's deviation compensation torque at the next moment is determined based on the vehicle's deviation compensation torque at the current moment, the motor torque at the next moment, and the steering wheel torque.

4. The vehicle drift compensation control method according to claim 1, characterized in that, The deviation compensation conditions include functional prerequisites and vehicle stability conditions. The functional prerequisite is that the vehicle's lateral control function is not activated. The vehicle stability conditions include that the vehicle is in a specified driving state and the driver is in a stable driving state. The method further includes: When the aforementioned functional prerequisites and vehicle stability conditions are met, the control deviation compensation function is activated. Otherwise, the deviation compensation function is put into a hold state.

5. The vehicle deviation compensation control method according to claim 4, characterized in that, The method further includes: When the vehicle pulls to one side while the pull-to-one function is in the holding state, the vehicle performs pull-to-one compensation based on the initial value of the pull-to-one compensation torque. When the vehicle drift compensation function is activated, the vehicle determines the drift compensation torque based on the motor torque of the vehicle steering system and the steering wheel torque.

6. The vehicle drift compensation control method according to claim 4, characterized in that, The method further includes: Based on the vehicle's deviation compensation torque in the holding state, determine the reference value of the deviation compensation torque; Determine the difference between the reference value of the deviation compensation torque and the initial value of the deviation compensation torque, and update the initial value of the deviation compensation torque based on the difference.

7. The vehicle drift compensation control method according to claim 6, characterized in that, The step of updating the initial value of the deviation compensation torque based on the difference includes: If the difference is within a preset difference range, the initial value of the deviation compensation torque is updated according to the reference value of the deviation compensation torque. The reference value of the deviation compensation torque is determined based on the average deviation compensation torque and the set compensation torque storage coefficient. The average deviation compensation torque is determined based on multiple deviation compensation torques in the holding state.

8. The vehicle drift compensation control method according to any one of claims 1-7, characterized in that, The method of compensating for vehicle deviation based on the deviation compensation torque includes: If the slope of the change in the deviation compensation torque does not exceed the preset slope, vehicle deviation compensation is performed based on the deviation compensation torque. If the slope of the change in the deviation compensation torque exceeds the preset slope, a new deviation compensation torque is determined at the current moment based on the deviation compensation torque at the previous moment and the preset slope, and vehicle deviation compensation is performed.

9. A computer-readable storage medium having a computer program or instructions stored thereon, characterized in that, When the computer program or instructions are executed by the processor, they implement the steps of the vehicle deviation compensation control method according to any one of claims 1 to 8.

10. A vehicle, characterized in that, The vehicle includes a processor for performing the steps of the vehicle drift compensation control method according to any one of claims 1 to 8.