Adaptive compensation lane keeping system and method
The angle and torque compensation values are calculated in the lane keeping system through the adaptive compensation system, and the attenuation coefficient is introduced to solve the vehicle snaking and accuracy problems in the torque control mode, and improve the comfort and control accuracy of the driver's takeover.
Patent Information
- Application Number
- PCT/CN2023/122483
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-11
- Filing Date
- 2023-09-28
- Publication Date
- 2024-10-17
AI Technical Summary
The existing lane keeping system is easily disturbed by zero torque and road bump excitation in the torque control mode, resulting in the vehicle's serpentine driving and reduced control accuracy, and the driver's takeover feels hard and uncomfortable.
The lane keeping system using adaptive compensation calculates the basic angle compensation value and torque offset compensation value through the input module, calculation module, judgment module and output module, determines whether to compensate, and adds attenuation coefficients to the angle and torque control. The planned angle and torque after adaptive compensation are sent to EPS.
It effectively avoids the zero-position torque and road bump excitation interference of the torque control method, improves the stability of the vehicle's centered driving and the LKA control accuracy, improves the driver's takeover feel, and avoids the problem of hard feel and confrontation.
Smart Images

Figure CN2023122483_17102024_PF_FP_ABST
Abstract
Description
Lane keeping system and method with adaptive compensation Technical Field
[0001] The present invention belongs to the field of intelligent driving, and in particular relates to a lane keeping system and method with adaptive compensation. Background Art
[0002] Currently, models equipped with driver assistance cameras can implement Lane Keeping Assist (LKA) by controlling the Electronic Power Steering (EPS) system to provide steering control and assist the driver in keeping the vehicle within its lane. The main benefit to the driver is reduced steering effort and improved driving comfort.
[0003] Torque request control is a common LKA control method. Its main logic is as follows: The EPS receives the driver's steering wheel torque and the LKA function's request for the motor torque. The EPS then converts these signals to determine the total torque applied to the motor. The accuracy of the LKA controller's control signal (steering torque) calculation directly determines control performance.
[0004] The torque-controlled LKA system is susceptible to interference from EPS zero-position torque (the steering wheel motor torque is not zero when the steering wheel is straightened due to vehicle manufacturing consistency). Excessive zero-position torque can cause the vehicle to snake under LKA control, affecting control neutrality. At the same time, road bump excitation synchronization can easily change the steering wheel motor torque under the torque-controlled LKA system, causing the vehicle to snake, be off-center, and require excessive adjustments. At the same time, after the vehicle has traveled a certain mileage (referring to the total mileage of the vehicle, such as more than 50,000 miles) or frequently travels on mountain roads, the chassis will become loose and the four-wheel alignment parameters will be inaccurate. When the chassis is loose, the vehicle will deviate, control accuracy will decrease, and the vehicle will be off-center.
[0005] Angle control is another LKA request control method being adopted by a growing number of OEMs. Its main logic is that the EPS receives the driver's steering torque and the LKA function's motor angle request. This torque is then converted through the EPS's gear angle controller to control the EPS motor's steering torque. However, angle control can be uncomfortable for the driver to take over. The takeover can feel stiff and abrupt, making it difficult to intervene. Alternatively, the takeover can be forceful and require significant effort. Furthermore, after a certain amount of mileage, the chassis loosens, causing the vehicle to veer off course. This reduces angle control accuracy and can easily cause the vehicle to become uncentered.
[0006] Summary of the Invention
[0007] The present invention aims to address the above-mentioned difficulties in the prior art by providing a lane keeping system and method with adaptive compensation, which solves the problem that the torque control mode is disturbed by zero torque and road bump excitation, and solves the problem that the LKA control accuracy is reduced due to vehicle deviation, and solves the problem that the driver's takeover feels hard and abrupt, which makes it impossible for the driver to intervene, or that there is resistance during takeover and a large amount of force is required to take over.
[0008] The present invention is achieved through the following technical solutions:
[0009] A first aspect of the present invention provides an adaptive compensation lane keeping system, the system comprising: an input module, a calculation module, a judgment module, and an output module connected in sequence;
[0010] The input module is used to input parameters;
[0011] The calculation module is used to calculate the angle compensation base value, the torque offset compensation base value, the LKA request angle average, the C0 average and the attenuation coefficient;
[0012] The judgment module is used to judge whether compensation is to be performed based on the LKA request angle mean and the C0 mean. If so, the judgment module determines the compensation direction and adds the compensation direction to the angle compensation base value to obtain the angle compensation value, and adds the compensation direction to the torque offset compensation base value to obtain the torque offset compensation value;
[0013] The output module is used to obtain the adaptively compensated planned angle according to the angle compensation value and the attenuation coefficient, and send the adaptively compensated planned angle and the torque offset compensation value to the EPS.
[0014] Preferably, the parameters input by the input module include:
[0015] Vehicle speed V, yaw rate, relative distance C0 between the estimated driving line at the current vehicle position and the vehicle body, heading angle C1, curvature of the target trajectory at the current point of the vehicle C2, curvature change rate of the target trajectory C3, steering wheel torque, LKA control state, steering wheel angle, and LKA request angle.
[0016] A second aspect of the present invention provides a lane keeping method with adaptive compensation, the method comprising:
[0017] The first step is to input the following parameters: vehicle speed V, yaw rate, relative distance C0 between the estimated driving line and the vehicle body at the current vehicle position, heading angle C1, curvature of the target trajectory at the current point of the vehicle C2, curvature change rate of the target trajectory C3, steering wheel torque, LKA control state, steering wheel angle, and LKA request angle.
[0018] The second step is to calculate the angle compensation base value, torque offset compensation base value, LKA request angle average, C0 average and attenuation coefficient;
[0019] The third step is to determine whether compensation is to be performed. If yes, the compensation direction is determined. Then, the angle compensation value is obtained by adding the compensation direction to the angle compensation base value, and the torque offset compensation value is obtained by adding the compensation direction to the torque offset compensation base value, and then the process proceeds to the fourth step. If no, the process returns to the second step.
[0020] Step 4: Obtain the adaptively compensated planned angle based on the angle compensation value and the attenuation coefficient, and send the adaptively compensated planned angle and torque offset compensation value to the EPS.
[0021] In the fifth step, EPS converts the planned angle after adaptive compensation into the planned torque, and then superimposes the planned torque with the torque offset compensation value to obtain the total execution torque, and then returns to the second step.
[0022] A further improvement of the present invention is:
[0023] The operations of calculating the angle compensation basic value and the torque offset compensation basic value in the second step include:
[0024] (A1) Setting: calculation times x = 0, monitoring times y = 0, memory value = 0;
[0025] (A2), determine whether the conditions are met, if yes, proceed to step (A3), if not, proceed to step (A13);
[0026] (A3), calculate the mean value within 30 seconds and assign it to N(x);
[0027] (A4), x=x+1;
[0028] (A5) Determine whether x < the first threshold value. If yes, return to step (A2); if no, proceed to step (A6);
[0029] (A6) Determine whether x=1. If yes, proceed to step (A7). If no, proceed to step (A11).
[0030] (A7), mean = N(x-1);
[0031] (A8), determining whether the absolute value of the difference between the mean value and the memory value is greater than a set threshold value, if yes, proceeding to step (A9), if no, proceeding to step (A10);
[0032] (A9), compensation base value = mean value, memory value = compensation base value; then go to step (A15);
[0033] (A10), compensation base value = 0, memory value = 0, then go to step (A15);
[0034] (A11) Determine whether x=0. If yes, return to step (A10). If no, proceed to step (A12).
[0035] (A12), mean = 0.5N(x-1) + 0.5N(x-2), then return to step (A8);
[0036] (A13), y=y+1;
[0037] (A14), determine whether y < the second threshold value is established, if yes, return to step (A2), if no, return to step (A6);
[0038] (A15), End.
[0039] A further improvement of the present invention is:
[0040] The operation of calculating the LKA request angle mean and the C0 mean in the second step includes:
[0041] (B1) Setting: calculation times x = 0, monitoring times y = 0;
[0042] (B2) Determine whether the conditions are met, if yes, proceed to step (B3), if not, proceed to step (B11);
[0043] (B3), calculate the mean value within 30 seconds and assign it to N(x);
[0044] (B4), x=x+1;
[0045] (B5) Determine whether x < the first threshold value. If yes, return to step (B2); if no, proceed to step (B6);
[0046] (B6) Determine whether x=1. If yes, proceed to step (B7). If no, proceed to step (B8).
[0047] (B7), mean = N(x-1), then go to step (B13);
[0048] (B8) Determine whether x=0. If yes, proceed to step (B9); if no, proceed to step (B10);
[0049] (B9), mean = 0, then go to step (B13);
[0050] (B10), mean = 0.5N(x-1) + 0.5N(x-2), then go to step (B13);
[0051] (B11), y=y+1;
[0052] (B12), determine whether y < the second threshold value is established, if yes, return to step (B2), if no, return to step (B6);
[0053] (B13), End.
[0054] A further improvement of the present invention is:
[0055] The operations of determining whether the conditions are met in step (A3) and step (B3) include:
[0056] If the following four conditions are met simultaneously and last for 30 seconds, the conditions are considered met; otherwise, the conditions are considered not met:
[0057] Condition 1: |C1|<0.02;
[0058] Condition 2: |C2|<0.00003;
[0059] Condition 3: V>10kph;
[0060] Condition 4: Delay 1s after the steering wheel torque is less than 0.5Nm.
[0061] A further improvement of the present invention is:
[0062] The operation of calculating the attenuation coefficient in the second step includes:
[0063] The attenuation coefficient α is calculated using the following formula: α = (1-β) × 100%
[0064] β=1,when T C ≤T min hour
[0065] When T min <T C <T max hour
[0066] β=0,when T C ≥T max hour
[0067] Among them, T c is the current steering wheel torque, T min is the lower limit of steering wheel torque, T max is the upper limit of steering wheel torque, and β is the torque process variable.
[0068] A further improvement of the present invention is:
[0069] The operation of determining whether to perform compensation in the third step includes:
[0070] (S1), determine whether the LKA request angle mean and the C0 mean are both equal to 0, if yes, proceed to step (S3), if not, proceed to step (S2);
[0071] (S2), determining whether the directions of the LKA request angle mean and the C0 mean are opposite, if so, determining to perform compensation and then proceeding to step (S4), if not, proceeding to step (S3);
[0072] (S3), it is determined that no compensation will be made;
[0073] (S4), end.
[0074] A further improvement of the present invention is:
[0075] The operation of determining the compensation direction in the third step includes:
[0076] It is determined whether the C0 mean is greater than a threshold. If so, the compensation direction is determined to be negative; if not, the compensation direction is determined to be positive.
[0077] A further improvement of the present invention is:
[0078] The operation of obtaining the adaptively compensated planning angle according to the angle compensation value and the attenuation coefficient in the fourth step includes:
[0079] The planning angle θt after adaptive compensation is calculated using the following formula: θt=θc+α(θp-θc)K+θa,
[0080] Where: θc is the current steering wheel angle, θp is the planned angle, θa is the angle compensation value, and K = calibration constant coefficient.
[0081] Compared with the prior art, the present invention has the following advantages: the present invention replaces the original torque control with angle control, realizes lane centering control, avoids the problem that the torque control method is disturbed by zero torque and road bumps, and improves the stability of centering driving;
[0082] The present invention avoids the problem of vehicle deviation leading to a decrease in LKA control accuracy;
[0083] The present invention avoids the problems of a driver having a hard or abrupt feel when taking over, a person being unable to intervene, or a resistance when taking over, which requires a lot of force. BRIEF DESCRIPTION OF THE DRAWINGS
[0084] Figure 1. Block diagram of the angle-controlled LKA operating system.
[0085] Figure 2 shows the information processing and decision-making level control process;
[0086] FIG3 is a structural diagram of the lane keeping system with adaptive compensation according to the present invention;
[0087] Figure 4-1 Process of calculating the compensation base value;
[0088] Figure 4-2 Flow of calculating the mean C0 value and the mean LKA request angle;
[0089] Figure 5-1: Flow of determining whether to make compensation;
[0090] Figure 5-2: Flow of determining compensation direction;
[0091] Figure 6 Schematic diagram of angle control error. DETAILED DESCRIPTION
[0092] The present invention is described in further detail below with reference to the accompanying drawings:
[0093] The existing LKA system architecture for angle control is shown in Figure 1. It comprises a perception layer, a processing layer, a control layer, and an execution layer. The perception layer uses a lane edge detection system based on a video imaging system to measure the vehicle's distance and orientation relative to the left and right lane lines. This layer then outputs lane information, vehicle status information (including steering angle, yaw rate, driver hand torque, etc.), EPS status, and driver status information to the processing layer. Based on the lane and vehicle information, the processing layer derives the vehicle-lane position relationship and steering wheel status information. The control layer, the LKA controller, determines the LKA state and requested torque angle based on the vehicle-lane position and steering wheel status information input from the processing layer. The LKA execution layer comprises the EPS control system and instrument display system.
[0094] The LKA control algorithm is briefly introduced as follows:
[0095] Path tracking control is a key technology for lane keeping control. Model prediction plans the next stage path in advance, and conducts evaluation, decision-making, and execution in advance. It can overcome the impact of model errors and uncertain environmental interference, and has strong robustness and good real-time controllability.
[0096] Figure 2 illustrates the workflow of the processing and control layers in Figure 1. The driving assistance camera acquires road information and receives vehicle status information, such as steering wheel angle and steering wheel torque from the EPS, ego vehicle speed and yaw rate from the ESP, and lane position information (such as curvature and width) sensed and output by the camera. This information is then converted into C0, C1, C2, and C3. Using C0, C1, C2, C3, vehicle speed, steering wheel angle, and steering wheel torque, the camera combines this information with the ego vehicle's trajectory to perform path tracking control. A feedforward controller calculates a feedforward angle compensation, which is then fed into the feedback controller. The feedback controller, combined with the requested angle value, plans the next driving path in advance. This results in the first closed-loop control (indicated by the "+" sign between the "Feedforward Controller" and "Feedback Controller" in Figure 2) and the second closed-loop control (indicated by the "+" sign to the right of the "Speed Control Loop PI Control" in Figure 2). Incorporating feedforward control into the speed closed-loop control effectively reduces control hysteresis. Position loop P control uses a table lookup to calculate the difference between the target steering angle and vehicle speed for control. It employs a fuzzy algorithm based on the error and vehicle speed, separating high-angle conditions from low-angle request conditions, effectively resolving requests and responses for high-angle conditions. Speed loop PI control uses a table lookup to calculate the difference between the target steering angle and the actual steering angle, utilizing the integral I parameter. (In process control, the PID controller, which controls based on the proportional (P), integral (I), and differential (D) parameters of the deviation, is the most widely used automatic controller.) This addresses the issue of P control being susceptible to significant interference from the road environment, particularly on steep curves or slopes. Using only P control can lead to large steering wheel movements, slow convergence, and uncomfortable control. Furthermore, to prevent overshoot caused by excessively large integral I parameters, an integral I trigger condition and an integral I clearing function are implemented. The feedforward controller uses a table lookup to calculate the target steering angle. By incorporating feedforward control, the strength of feedback control is weakened, effectively reducing interference from cornering and sloped roads. This forms a third level of closed-loop control, as indicated by the "+" signs to the right of "Angle Planning Control" and "Position Loop P Control" in Figure 2. The feedforward angle compensation output by the feedforward controller is superimposed with the LKA angle request value from the third level of closed-loop control to obtain the planned angle θp. This planned angle θp is then input to the EPS. The EPS's gear angle controller converts this into torque, which is used as the total torque of the EPS motor.
[0097] The present invention incorporates adaptive compensation (i.e., Autofix compensation in Figure 2) into the existing processing flow. Specifically, the planned angle θp is superimposed with the adaptive compensation and then input into the EPS, forming a fourth control closed loop, as indicated by the "+" sign to the right of "Autofix compensation" in Figure 2.
[0098] Adaptive compensation can address the impact on LKA control stability when the vehicle deviates or the zero torque is not within the design threshold. It mainly obtains the force consistent with the vehicle's motion state, which can improve the LKA control performance to a certain extent.
[0099] The steps of adaptive compensation provided by the present invention are shown in Figure 3. Through adaptive compensation, the camera controller cooperates with the EPS controller to perform angle closed-loop control. Compared with other LKA controls, the adaptive compensation added by the present invention realizes an additional angle closed-loop control, with better control accuracy, stability, and comfort.
[0100] Specifically, as shown in FIG3 , the adaptive compensation lane keeping system provided by the present invention includes: an input module, a calculation module, a judgment module, and an output module connected in sequence. The input module is used to input parameters. The input parameters are all from the data collected in real time by the existing vehicle (the functions of collecting these data are all functions that the existing vehicles already have, which are briefly introduced as follows: the camera receives information from the vehicle status, such as the steering wheel angle and motor torque information provided by EPS, the vehicle speed V and yaw rate provided by ESP, and the lane line curvature and width output by the camera using perception to obtain C0, C1, C2, and C3). The input parameters include: vehicle speed V, yaw rate, C0, C1, C2, C3, steering wheel torque (driver's hand force), LKA control state, steering wheel angle, and LKA request angle. C0, C1, C2, and C3 are the four parameters of the polynomial curve. C0 is the relative distance between the estimated driving line of the current vehicle position and the vehicle body (the camera calculates it by subtracting half the width of the lane line according to the planned trajectory and recognition), and C1 is the heading angle θ ( The following equations represent the angle between the camera's trajectory and the lane line: C2 is the curvature of the target trajectory at the current point in the vehicle's path (directly output by the camera); and C3 is the rate of change of the curvature of the target trajectory (obtained by performing a time difference based on C2). The data collected by the vehicle in real time is fed into the input module, which then sends the input parameters to the calculation module in real time.
[0101] The calculation module is configured to calculate an angle compensation base value, a torque offset compensation base value, an average LKA request angle, a C0 average value, and an attenuation coefficient. Specifically, the calculation module uses the process shown in FIG4-1 to obtain the angle compensation base value and the torque offset compensation base value (in FIG4-1 , "angle compensation base value" and "torque offset compensation base value" are collectively referred to as compensation base values), based on the steering wheel angle and steering wheel torque (driver's hand force) sent by the input module. The calculation module also uses the process shown in FIG4-2 to obtain the C0 average value and the LKA request angle average value (in FIG4-2 , "C0 average value" and "LKA request angle average value" are collectively referred to as average values), based on the C0 and LKA request angles sent by the input module. The calculation module calculates the angle compensation base value, torque offset compensation base value, average LKA request angle, C0 average value, and an attenuation coefficient in real time based on the received parameters, and transmits these data to the judgment module in real time.
[0102] The judgment module is used to determine whether compensation should be performed based on the LKA request angle mean and the C0 mean. If so, it determines the compensation direction (i.e., positive or negative sign), adds the compensation direction to the angle compensation base value to obtain the angle compensation value, and adds the compensation direction to the torque offset compensation base value to obtain the torque offset compensation value. The angle compensation value, torque offset compensation value, and attenuation coefficient are then sent to the output module. If not, no data is sent to the output module. Specifically, the judgment module performs the judgment using the process shown in Figure 5.
[0103] The output module is used to obtain the adaptively compensated planned angle according to the angle compensation value and the attenuation coefficient, and send the adaptively compensated planned angle and the torque offset compensation value to the EPS.
[0104] The gear tooth angle controller in the EPS uses an existing algorithm to convert the adaptively compensated planned angle into a planned torque, and then superimposes the planned torque with the torque offset compensation value to obtain the total execution torque, which is the total torque finally executed by the EPS motor.
[0105] The present invention also provides a lane keeping method with adaptive compensation, the method comprising:
[0106] The first step is to input parameters. The input parameters include: vehicle speed V, yaw rate, C0, C1, C2, C3, steering wheel torque, LKA control state, steering wheel angle, and LKA request angle. These parameters are collected and input in real time.
[0107] The second step is to calculate the angle compensation base value, torque offset compensation base value, LKA request angle average, C0 average and attenuation coefficient; the second step is to perform real-time calculation based on the parameters received in real time.
[0108] Specifically, as shown in Figure 4-1, the operations for calculating the angle compensation base value and the torque offset compensation base value in the second step include:
[0109] (A1) Setting: calculation times x = 0, monitoring times y = 0, memory value = 0;
[0110] (A2), determine whether the conditions are met, if yes, proceed to step (A3), if not, proceed to step (A13);
[0111] (A3) Calculate the 30-second mean and assign it to N(x). The vehicle itself samples data at regular intervals (e.g., 0.1 seconds). The 30-second mean is calculated by adding the data sampled over 30 seconds and dividing it by the number of samples. For example, to calculate the mean steering wheel angle, add all steering wheel angles sampled over 30 seconds and divide by the number of samples. Similarly, the mean steering wheel torque at zero position can be calculated. For simplicity, Figure 4-1 only shows the "30-second mean."
[0112] (A4), x=x+1;
[0113] (A5) Determine whether x < the first threshold. If so, return to step (A2); if not, proceed to step (A6). The first threshold is set based on actual needs. Based on practical experience, when the number of calculations approaches 10, the output compensation base value tends to stabilize. Therefore, to avoid continuous calculation without being able to output a specific compensation base value, the first threshold is set to 10 in the embodiment shown in FIG4-1.
[0114] (A6) Determine whether x=1. If yes, proceed to step (A7). If no, proceed to step (A11).
[0115] (A7), mean = N(x-1); Entering step (A7) indicates that only one calculation has been performed, that is, only N(0). At this time, N(0) can be assigned to the mean. The "mean" here refers to the mean of the steering wheel angle and the mean of the steering wheel zero position torque.
[0116] (A8) Determine whether the absolute value of the difference between the mean and the stored value is greater than a set threshold. If so, proceed to step (A9); if not, proceed to step (A10). For example, for the mean steering wheel angle, the threshold is set to 0.3 degrees. Experience shows that when the vehicle is not deviating and is on a straight road, the steering wheel angle zero deviation can be within ±0.3°. If the absolute value of the difference between the mean calculated in this round and the compensation base value calculated in the previous round is less than 0.3 degrees, no compensation is performed. If the absolute value of the difference is greater than 0.3 degrees, compensation is performed.
[0117] (A9), compensation base value = average value, memory value = compensation base value; then proceed to step (A15); the "compensation base value" in step (A9) refers to the angle compensation base value and the torque offset compensation base value; the "memory value" refers to the angle compensation memory value and the torque offset compensation memory value, that is, the angle compensation base value obtained in the previous round of calculation and the torque offset compensation base value obtained in the previous round of calculation.
[0118] (A10), compensation base value = 0, memory value = 0, and then proceed to step (A15); entering step (A10) indicates that the absolute value of the difference between the mean and the compensation base value obtained by the previous round of calculation is less than or equal to the set threshold, or no calculation has been performed, that is, no supplement is required, so in step (A10), the angle compensation base value and the torque offset compensation base value are set to 0.
[0119] (A11) Determine whether x=0. If yes, return to step (A10). If no, proceed to step (A12).
[0120] (A12), mean = 0.5N(x-1) + 0.5N(x-2), then return to step (A8); entering step (A12) indicates that more than one calculation has been performed. In step (A12), the mean values obtained from the last two calculations are averaged and assigned to the mean.
[0121] (A13), y=y+1;
[0122] (A14) Determine whether y < the second threshold value. If so, return to step (A2); if not, return to step (A6). The second threshold value is set according to actual needs. To avoid the situation where the calculation continues without being able to output a specific compensation value, the second threshold value is set to 20 in the embodiment shown in FIG4-1.
[0123] (A15) End. At this point, one round of calculation is completed, and the angle compensation base value and torque offset compensation base value are obtained.
[0124] As shown in Figure 4-2, the operations for calculating the mean LKA request angle and the mean C0 in the second step include:
[0125] (B1) Setting: calculation times x = 0, monitoring times y = 0;
[0126] (B2) Determine whether the conditions are met, if yes, proceed to step (B3), if not, proceed to step (B11);
[0127] (B3) Calculate the 30-second average and assign it to N(x). The vehicle itself samples data at regular intervals (e.g., 0.1 seconds). The 30-second average is calculated by adding the data sampled over 30 seconds and dividing it by the number of samples. For example, the average C0 is calculated by adding all C0 samples over 30 seconds and dividing it by the number of samples. Similarly, the average LKA request angle over 30 seconds can be calculated. For simplicity, Figure 4-2 only shows the "30-second average."
[0128] (B4), x=x+1;
[0129] (B5) Determine whether x < the first threshold value. If yes, return to step (B2); if no, proceed to step (B6);
[0130] (B6) Determine whether x=1. If yes, proceed to step (B7). If no, proceed to step (B8).
[0131] (B7), mean = N(x-1), then proceed to step (B13); proceeding to step (B7) indicates that only the mean within 30 seconds has been calculated once, that is, only N(0). At this time, N(0) can be assigned to the mean. The "mean" here refers to the C0 mean and the LKA request angle mean.
[0132] (B8) Determine whether x=0. If yes, proceed to step (B9); if no, proceed to step (B10);
[0133] (B9), mean = 0, then go to step (B13); entering this step indicates that the conditions have not been met, so no calculation is performed. The "mean" here refers to the C0 mean and the LKA request angle mean, which are set to 0 in this step;
[0134] (B10), mean = 0.5N(x-1) + 0.5N(x-2), then go to step (B13); at this time, take the average of the last two calculated means as the mean, where "mean" refers to the C0 mean and the LKA request angle mean;
[0135] (B11), y=y+1;
[0136] (B12), determine whether y < the second threshold value is established, if yes, return to step (B2), if no, return to step (B6);
[0137] (B13) End. At this point, one round of calculation is completed, and the C0 mean and the LKA request angle mean are obtained.
[0138] When the vehicle is traveling straight, the steering wheel angle at this time is considered to be the steering wheel zero position. In order to avoid the phenomenon of overcorrection caused by the adaptive compensation mechanism, it is necessary to limit the triggering conditions. The operations of determining whether the conditions are met in step (A2) and step (B2) specifically include:
[0139] If the following four conditions are met simultaneously and last for 30 seconds, the conditions are considered met; otherwise, the conditions are considered not met:
[0140] Condition 1: |C1|<0.02;
[0141] Condition 2: |C2|<0.00003;
[0142] Condition 3: V>10kph;
[0143] Condition 4: Delay 1s after the steering wheel torque is less than 0.5Nm.
[0144] The first few steps in the flowcharts shown in Figures 4-1 and 4-2 are essentially the same. In actual processing, the four mean values are calculated simultaneously. Specifically, when the conditions are met, the mean of the steering wheel angle, the mean of the LKA angle request, the mean of C0, and the mean of the steering wheel zero torque are calculated. The mean of the steering wheel angle and the mean of the steering wheel zero torque are then processed using the subsequent steps in Figure 4-1 to obtain the angle compensation base value and the torque offset compensation base value, respectively. The mean of the LKA request angle and the mean of C0 are processed using the subsequent steps in Figure 4-2 to obtain the LKA request angle mean and the mean of C0, respectively. If the conditions are never met, meaning no calculations have been performed, all values are set to 0. For ease of description, the overall calculation process is split into two flows, as shown in Figures 4-1 and 4-2.
[0145] Furthermore, if the driver attempts to take over the steering wheel to change lanes, overtake, avoid obstacles, or other such actions, this can also cause a significant discrepancy between the actual angle and the system's real-time planned angle. For example, if the intelligent driving system's planned requested angle is 0°, and the driver manually turns the steering wheel to 10° for some reason, this will result in a 10° discrepancy between the system's real-time planned angle and the actual angle, as shown in Figure 6. This creates a counter-resistance between the intelligent driving system's steering wheel and the driver. Therefore, the intelligent driving system needs to more carefully monitor the driver's takeover behavior in real time to eliminate this resistance.
[0146] To reduce the angular error caused by the aforementioned takeover process, the present invention adds an attenuation coefficient α. This attenuation coefficient α is used to adjust the requested angle in real time, bringing it closer to the actual steering wheel angle. This reduces control error, lowering the output torque of the gear tooth angle controller and, in turn, improving the resistance torque felt by the driver. The present invention achieves damping compensation through the attenuation coefficient α. This damping compensation improves the driver's feel when taking over LKA, addressing issues such as stiff and abrupt takeovers under conventional angle control, making it difficult for the driver to intervene, or requiring significant effort due to resistance. Furthermore, after the driver takes over, the control effect is controllable, avoiding overshoot and oscillation.
[0147] Specifically, the operation of calculating the attenuation coefficient in the second step includes:
[0148] The attenuation coefficient α is calculated using the following formula: α = (1-β) × 100%
[0149] β=1,when T C ≤T min hour
[0150] When T min <T C <T max hour
[0151] β=0,when T C ≥T max hour
[0152] Among them, Tc is the current steering wheel torque, T min is the lower limit of steering wheel torque (the value already set in the system), T max is the steering wheel torque upper limit (the value already set in the system), and β is the torque process variable. When the driver manually turns the steering wheel, the intelligent driving system will monitor the steering wheel torque and set the attenuation coefficient. c Less than or equal to the steering wheel torque lower limit T min When T c Greater than or equal to the steering wheel torque upper limit T max When T c When the value is between two values, linear interpolation is used for attenuation.
[0153] The third step is to determine whether compensation is to be performed. If so, determine the compensation direction, then add the compensation direction to the angle compensation base value to obtain the angle compensation value, and add the compensation direction to the torque offset compensation base value to obtain the torque offset compensation value, and then enter the fourth step; if not, return to the second step (through the processes of Figures 4-1 and 4-2, use the real-time obtained C1, C2, V, and steering wheel torque to continuously determine whether the conditions are met. When the number of calculations reaches the first threshold or the monitoring number reaches the second threshold, the current round of calculations is completed. If it is determined that compensation is not to be performed, return to the second step to start the next round of calculations).
[0154] After obtaining the angle compensation base value, torque offset compensation base value, LKA request angle average, C0 average, and attenuation coefficient, it is necessary to determine whether compensation is required and the positive or negative sign of the compensation value. Figures 5-1 and 5-2 are the workflow diagrams of the judgment module. As shown in Figure 5-1, the operation of determining whether compensation is required in the third step includes:
[0155] (S1), determine whether the LKA request angle mean and the C0 mean are both equal to 0, if yes, proceed to step (S3), if not, proceed to step (S2);
[0156] (S2) Determine whether the directions of the LKA request angle mean and the C0 mean are opposite (if one is positive and the other is negative, it indicates that the vehicle control is not centered or the control range is insufficient, so compensation is required). If so, determine to perform compensation and then transfer to step (S4); if not, enter step (S3);
[0157] (S3) It is determined that no compensation is required. As shown in the process of Figure 4-2, the LKA request angle mean and C0 mean will be equal to 0 only when no calculation is performed. As shown in the process of Figure 4-1, the compensation base values are also 0 at this time. Therefore, no compensation is required in this case.
[0158] (S4), end.
[0159] As shown in FIG5-2, the operation of determining the compensation direction in the third step includes:
[0160] Determine whether the C0 mean is greater than a threshold. If so, the compensation direction is negative; if not, the compensation direction is positive. Generally, the left is negative and the right is positive based on the driver's side. The threshold can be set based on actual experience.
[0161] Step 4: Obtain the adaptively compensated planned angle based on the angle compensation value and the attenuation coefficient, and send the adaptively compensated planned angle and torque offset compensation value to the EPS.
[0162] The operation of obtaining the adaptively compensated planning angle according to the angle compensation value and the attenuation coefficient in the fourth step includes:
[0163] The planning angle θt after adaptive compensation is calculated using the following formula: θt=θc+α(θp-θc)K+θa,
[0164] Where: θc is the current steering wheel angle, θp is the planned angle, θa is the angle compensation value, and K = calibration constant coefficient (the value of K is an empirical parameter).
[0165] In step 5, the EPS converts the adaptively compensated planned angle into a planned torque. The planned torque is then added to the torque offset compensation value (the torque offset compensation value is signed; simply add the planned torque and torque offset compensation values together). This yields the total executed torque, and the EPS returns to step 2. The EPS motor controls the vehicle based on the total executed torque. After this round of adaptive compensation is complete, the EPS returns to step 2 and begins a new round of calculations, continuously performing adaptive compensation based on the input parameters in real time.
[0166] Currently, after receiving angle commands from the intelligent driving controller, the EPS (Electronic Steering System) uses a table to obtain the basic power assist curve, damping torque curve, and aligning torque curve based on the current vehicle speed, driver torque applied to the steering wheel (i.e., driver hand force), and current steering wheel angle, and converts the output steering wheel torque. Simultaneously, the LKA (Learning and Control) system responds to the command value in the shortest possible time to ensure optimal control performance. However, during the activation phase, if the controller's requested angle deviates significantly from the actual angle, the steering wheel can rotate rapidly, causing the driver to experience a significant force. This invention addresses the effects of EPS zero-position torque through torque offset compensation and angle compensation, improving EPS control accuracy and addressing issues such as LKA control being off-center and snaking. This improves LKA control accuracy in situations where the vehicle's chassis is loose and the vehicle is drifting. Furthermore, damping compensation provides comfort control for the EPS, ensuring a less aggressive angle response and exit, with a gradual rise and fall process. This improves driver comfort during control and optimizes hand force.
[0167] The above technical solution is only one embodiment of the present invention. For those skilled in the art, it is easy to make various types of improvements or modifications based on the principles disclosed in the present invention, and it is not limited to the technical solution described in the above specific embodiments of the present invention. Therefore, the above description is only preferred and does not have a restrictive meaning.
Claims
1. An adaptive lane keeping system, Features: The system comprises: an input module, a calculation module, a judgment module and an output module connected in sequence; The input module is used to input parameters; The calculation module is used to calculate the angle compensation basic value, the torque offset compensation basic value, the LKA request angle mean, the C0 mean and the attenuation coefficient; The judgment module is used to judge whether to perform compensation according to the LKA request angle mean and the C0 mean. If yes, the compensation direction is determined, and the angle compensation value is obtained by adding the compensation direction to the angle compensation base value, and the torque offset compensation value is obtained by adding the compensation direction to the torque offset compensation base value; The output module is used to obtain the planned angle after adaptive compensation according to the angle compensation value and the attenuation coefficient, and send the planned angle after adaptive compensation and the torque offset compensation value to the EPS.
2. The lane keeping system with adaptive compensation according to claim 1, Features: The parameters input by the input module include: Vehicle speed V, yaw rate, relative distance C0 between the estimated driving line of the current vehicle position and the vehicle body, heading angle C1, curvature of the target trajectory of the vehicle at the current point C2, curvature change rate of the target trajectory C3, steering wheel torque, LKA control state, steering wheel angle, LKA request angle.
3. An adaptive lane keeping method, Features: The method comprises: Step 1: Input parameters: vehicle speed V, yaw rate, relative distance C0 between the estimated driving line of the current vehicle position and the vehicle body, heading angle C1, curvature of the target trajectory of the vehicle at the current point C2, curvature change rate of the target trajectory C3, steering wheel torque, LKA control state, steering wheel angle, LKA request angle; The second step is to calculate the angle compensation base value, torque offset compensation base value, LKA request angle average, C0 average and attenuation coefficient; The third step is to determine whether compensation is to be performed. If so, determine the compensation direction, then add the compensation direction to the angle compensation base value to obtain the angle compensation value, and add the compensation direction to the torque offset compensation base value to obtain the angle compensation value. After the direction is determined, the torque offset compensation value is obtained, and then the fourth step is entered; if not, it returns to the second step; Step 4: Obtain the planned angle after adaptive compensation according to the angle compensation value and the attenuation coefficient, and send the planned angle after adaptive compensation and the torque offset compensation value to the EPS; In the fifth step, EPS converts the planned angle after adaptive compensation into the planned torque, and then superimposes the planned torque with the torque offset compensation value to obtain the total execution torque, and then returns to the second step.
4. The lane keeping method with adaptive compensation according to claim 3, Features: The operation of calculating the angle compensation basic value and the torque offset compensation basic value in the second step includes: (A1), setting: calculation times x = 0, monitoring times y = 0, memory value = 0; (A2), determine whether the condition is met, if yes, proceed to step (A3), if not, proceed to step (A13); (A3), calculate the mean value within 30 seconds and assign it to N(x); (A4), x=x+1; (A5), determine whether x < the first threshold value. If yes, return to step (A2); if no, proceed to step (A6); (A6), determine whether x=1 is true, if yes, go to step (A7), if no, go to step (A11); (A7), mean = N(x-1); (A8), determining whether the absolute value of the difference between the mean value and the memory value is greater than a set threshold value, if yes, proceeding to step (A9), if no, proceeding to step (A10); (A9), compensation base value = mean value, memory value = compensation base value; then proceed to step (A15); (A10), compensation base value = 0, memory value = 0, then go to step (A15); (A11), determine whether x=0 is established, if yes, return to step (A10), if no, go to step (A12); (A12), mean = 0.5N(x-1) + 0.5N(x-2), then return to step (A8); (A13), y=y+1; (A14), determine whether y<second threshold value is established, if yes, return to step (A2), if no, return to step (A6); (A15), End.
5. The lane keeping method with adaptive compensation according to claim 3, Features: The operation of calculating the LKA request angle mean and the C0 mean in the second step includes: (B1), setting: calculation times x = 0, monitoring times y = 0; (B2), determine whether the condition is met, if yes, proceed to step (B3), if not, proceed to step (B11); (B3), calculate the mean value within 30 seconds and assign it to N(x); (B4), x=x+1; (B5), determine whether x < the first threshold value is established, if yes, return to step (B2), if no, proceed to step (B6); (B6), determine whether x=1 is true, if yes, go to step (B7), if no, go to step (B8); (B7), mean = N(x-1), then go to step (B13); (B8), determine whether x=0 is true, if yes, go to step (B9), if no, go to step (B10); (B9), mean = 0, then go to step (B13); (B10), mean = 0.5N(x-1) + 0.5N(x-2), then go to step (B13); (B11), y=y+1; (B12), determine whether y<second threshold value is established, if yes, return to step (B2), if no, return to step (B6); (B13), End.
6. The lane keeping method with adaptive compensation according to claim 3, Features: The operations of determining whether the conditions are met in step (A3) and step (B3) include: If the following four conditions are met at the same time and last for 30 seconds, the conditions are considered met, otherwise the conditions are considered not met: Condition 1: |C1|<0.02; Condition 2: |C2|<0.00003; Condition 3: V>10kph; Condition 4: Delay 1s after the steering wheel torque is <0.5Nm.
7. The lane keeping method with adaptive compensation according to claim 3, Features: The operation of calculating the attenuation coefficient in the second step includes: The attenuation coefficient α is calculated using the following formula: α=(1-β)×100% β=1,when T C ≤T min hour When T min <T C <T max hour β=0,when T C ≥T max hour Among them, T c is the current steering wheel torque, T min is the lower limit of steering wheel torque, T max is the upper limit of steering wheel torque, and β is the torque process variable.
8. The lane keeping method with adaptive compensation according to claim 3, Features: The operation of determining whether to perform compensation in the third step includes: (S1), determine whether the LKA request angle mean and the C0 mean are both equal to 0, if yes, proceed to step (S3), if not, proceed to step (S2); (S2), determining whether the directions of the LKA request angle mean and the C0 mean are opposite, if so, determining to perform compensation, and then proceeding to step (S4), if not, proceeding to step (S3); (S3), it is determined that no compensation will be made; (S4), end.
9. The lane keeping method with adaptive compensation according to claim 3, Features: The operation of determining the compensation direction in the third step includes: It is determined whether the C0 mean is greater than a threshold value. If so, the compensation direction is determined to be negative; if not, the compensation direction is determined to be positive.
10. The lane keeping method with adaptive compensation according to claim 7, Features: The operation of obtaining the planning angle after adaptive compensation according to the angle compensation value and the attenuation coefficient in the fourth step includes: The planning angle θt after adaptive compensation is calculated using the following formula: θt=θc+α(θp-θc)K+θa, Where: θc is the current steering wheel angle, θp is the planned angle, θa is the angle compensation value, and K = calibration constant coefficient.
Citation Information
Patent Citations
Lane-keeping auxiliary method and system
CN109760677A
Control method and controller for lane keeping system and lane keeping system
CN110329254A
A method and a system for controlling vehicle lane holding
CN111108035A
Lane departure active correction method based on torque control
CN111891125A
Intelligent auxiliary driving method, device and equipment and storage medium
CN115476916A
Cited By
Adaptive compensation lane keeping system and method
CN116238493A
Adaptive compensation lane keeping system and method
CN116238493B
Lane centering driving control method and system
CN120056998A
Compensation method for vehicle deviation and related device
CN120716688A
