Vehicle lateral control methods, electronic devices, vehicles and storage media

By dynamically calculating the gain scaling factor and proportional-integral-derivative control parameters, adaptive lateral control is achieved, solving the problem of inconsistent control effects of intelligent driving vehicles at different speeds and improving the robustness of the system and the driving experience.

CN123104766APending Publication Date: 2026-11-17BYD CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611224754.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-12
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

The lateral control system of existing intelligent driving vehicles has a large difference in control performance at different vehicle speeds. It is prone to overshoot oscillation at high speeds and slow response at low speeds, which affects the driving experience and driving safety.

Method used

By acquiring the vehicle's current speed and actual heading angle, the gain scaling factors of the outer and inner loops are dynamically calculated. Combined with proportional-integral-derivative control parameters, the target heading angle and front wheel steering angle are generated to achieve adaptive lateral control of vehicle speed.

Benefits of technology

It maintains stable and smooth control across the entire speed range, reduces hardware costs and calibration complexity, improves robustness and maintainability, adapts to different vehicle models and driving scenarios, and optimizes the driving experience and driving safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123104766A_ABST
    Figure CN123104766A_ABST
Patent Text Reader

Abstract

This application discloses a vehicle lateral control method, comprising: acquiring vehicle operating state parameters; determining an outer-loop gain scaling factor and an inner-loop gain scaling factor based on the current vehicle speed; generating a target heading angle based on the outer-loop gain scaling factor, a first outer-loop proportional-integral-derivative control parameter, and lateral position error; generating a target front wheel steering angle based on the inner-loop gain scaling factor, a first inner-loop proportional-integral-derivative control parameter, and heading angle error; and controlling vehicle steering based on the target front wheel steering angle. Thus, this application achieves vehicle speed adaptive lateral control by collecting vehicle operating state parameters, calculating inner and outer-loop gain scaling factors, and outputting the target front wheel steering angle through dual-loop cascade PID calculations to control steering. This effectively reduces the impact of vehicle speed changes on the open-loop gain of the control system, improving the smoothness of lateral control and driving safety. This application is applicable to vehicles with intelligent driving or intelligent assisted driving modes.
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, and in particular to a vehicle lateral control method, electronic device, vehicle, and computer-readable storage medium. Background Technology

[0002] In related technologies, the lateral control system of intelligent driving vehicles typically adopts a proportional-integral-derivative (PID) control architecture. The outer loop uses the vehicle's lateral position error as the control variable, while the inner loop uses the vehicle's yaw angle error. The inner loop tracks the target yaw angle output by the outer loop to achieve closed-loop regulation of the vehicle's driving trajectory. However, the control effect of this system varies significantly at different vehicle speeds. Overshoot oscillations are prone to occur at high speeds, while the response is sluggish at low speeds. This, to some extent, restricts the smoothness and robustness of the lateral control of intelligent driving, affecting the driving experience and driving safety. Summary of the Invention

[0003] This application provides a vehicle lateral control method, an electronic device, a vehicle, a computer-readable storage medium, and a computer program product.

[0004] This application provides a vehicle lateral control method, the method comprising: The vehicle's operating status parameters are obtained, including the vehicle's current speed, actual heading angle, and lateral position error. Based on the current vehicle speed, determine the outer loop gain scaling factor and the inner loop gain scaling factor; The target heading angle is generated based on the outer loop gain scaling factor, the first outer loop proportional-integral-derivative control parameters, and the lateral position error. The target front wheel steering angle is generated based on the inner loop gain scaling factor, the first inner loop proportional-integral-derivative control parameters, and the heading angle error, wherein the heading angle error is the difference between the target heading angle and the actual heading angle. The vehicle steering is controlled based on the target front wheel steering angle.

[0005] Thus, in this embodiment, by collecting operating state parameters such as the vehicle's current speed, actual heading angle, and lateral position error, the outer loop gain scaling factor and inner loop gain scaling factor are calculated based on the current speed. The outer loop gain scaling factor is combined with the first outer loop proportional-integral-derivative (PI-DE) control parameters to perform closed-loop adjustment of the lateral position error to generate the target heading angle. The difference between the target heading angle and the actual heading angle is then used as the heading angle error. Combined with the inner loop gain scaling factor and the first inner loop PI-DE control parameters, the inner loop closed-loop calculation is completed, outputting the target front wheel steering angle and using it to control the vehicle's steering. This achieves speed-adaptive vehicle lateral control. Compared to a fixed-parameter cascaded PI-DE lateral control scheme, the dynamic adjustment of the gain scaling factor ensures that the equivalent control quantities of the inner and outer loops of the cascaded dual-loop control system satisfy the mathematical correspondence of the first-order derivative in the time domain. This restores the inherent mathematical correlation between the inner and outer loops of the cascaded architecture, effectively weakening the impact of speed changes on the open-loop gain of the control system, and maintaining a stable and smooth control effect across the entire speed range. Meanwhile, compared to the adaptive proportional-integral-derivative (PI-D) scheme that relies on high-performance chips for real-time online computation, the implementation method of this application does not require complex online parameter calculations and massive data calibration. It can complete all control calculations by relying on the scaling factor associated with the basic control parameters and vehicle speed through offline calibration. While improving control performance, it retains the low-cost advantage of the PI-D architecture, which reduces hardware costs and engineering calibration complexity to a certain extent, improves the robustness and maintainability of the system, and can adapt to different vehicle models and urban and highway driving scenarios. It effectively improves the smoothness of intelligent driving lateral control and driving safety, and optimizes the user's driving experience.

[0006] In some implementations, determining the outer-loop gain scaling factor and the inner-loop gain scaling factor based on the current vehicle speed includes: The outer loop gain scaling factor is determined based on the reciprocal of the current vehicle speed, wherein the outer loop gain scaling factor is used to make the time-domain first derivative of the equivalent input of the lateral position error correspond to the target heading angle; Based on the current vehicle speed and the vehicle's physical characteristic parameters, the inner loop gain scaling factor is determined. The physical characteristic parameters include wheelbase, vehicle mass, first distance from the front axle to the vehicle's center of gravity, second distance from the rear axle to the vehicle's center of gravity, front wheel lateral stiffness, and rear wheel lateral stiffness. The inner loop gain scaling factor is used to make the time-domain first derivative of the equivalent input of the heading angle error correspond to the target front wheel steering angle.

[0007] Thus, in this embodiment, by designing an outer-loop gain scaling factor that is correlated with the reciprocal of vehicle speed and an inner-loop gain scaling factor that combines vehicle speed and vehicle physical characteristics, the equivalent control quantities of the inner and outer loops of the cascade dual-loop control system satisfy the derivative matching relationship, thereby realizing vehicle speed adaptive gain adjustment based on physical modeling and mathematical derivation. The outer-loop scaling factor eliminates the dependence of the open-loop gain of the controlled object on the square of vehicle speed, effectively mitigating the overshoot oscillation problem caused by excessive system gain at high speeds. Simultaneously, the outer-loop output naturally includes a sideslip compensation term, which can, to some extent, offset the interference of vehicle lateral slip on lateral control. Furthermore, by integrating kinematic and dynamic characteristics through the inner-loop scaling factor, the system's natural frequency and damping ratio are theoretically largely unaffected by vehicle speed, maintaining consistent dynamic response characteristics across the entire speed range, thus improving the problems of slow system response and poor following at low speeds.

[0008] Furthermore, the outer and inner loop gain scaling factors of this application are both derived from rigorous mathematical derivations of vehicle dynamics and bicycle kinematics models, possessing clear physical meaning and interpretability. Factors strongly correlated with the vehicle in the gain coefficient are transferred to the gain scaling factor, achieving decoupling between the gain coefficient and the vehicle condition. After replacing the vehicle or tires, only the corresponding physical characteristic parameters need to be updated, without having to recalibrate the entire lateral control system from scratch. This improves the robustness and maintainability of the lateral control system to a certain extent, and reduces after-sales maintenance costs and calibration workload.

[0009] In some implementations, the inner-loop gain scaling factor is generated by adding the kinematic principal term and the dynamic lateral slip correction term; the kinematic principal term is the ratio of the wheelbase to the current vehicle speed; the dynamic lateral slip correction term is calculated based on the vehicle's total mass, the current vehicle speed, the wheelbase, the first distance, the second distance, the front wheel lateral slip stiffness, and the rear wheel lateral slip stiffness.

[0010] Thus, in this embodiment, the inner-loop gain scaling factor is constructed by superimposing a kinematic principal term with a dynamic side-slip correction term. The kinematic principal term covers the basic geometric relationship of vehicle steering, ensuring gain matching accuracy under low- and medium-speed conditions. The dynamic side-slip correction term compensates for the response deviation caused by tire side-slip, ensuring that the inner-loop output accurately corresponds to the actual wheel angle across the entire speed range. Furthermore, verification through transfer function derivation shows that the inner-loop gain scaling factor theoretically makes the natural frequency and damping ratio of the inner-loop control system independent of vehicle speed, effectively eliminating the defect of cascade PID system inner-loop dynamic characteristics fluctuating with vehicle speed. This ensures, to a certain extent, that the vehicle possesses consistent steering response quality at different speeds, eliminating the need for complex parameter calibration for different speed ranges.

[0011] Furthermore, the superimposed structure combines simplicity and accuracy. When only the main kinematic terms are taken for approximation, the calculation process can be simplified, making it suitable for low-computing-power vehicle platforms. When both terms are retained, high-precision dynamic compensation can be achieved. To a certain extent, it balances the economy of engineering implementation with the superior control performance. Moreover, the inner-loop gain factor is derived analytically from the vehicle's physical parameters, possessing clear physical meaning and interpretability. After replacing the vehicle or tires, only the corresponding physical parameters need to be updated to complete the adaptation, which improves the robustness and maintainability of the control system to a certain extent.

[0012] In some embodiments, the method further includes: Obtain multiple preset vehicle speed nodes and proportional-integral-derivative control parameters corresponding to each vehicle speed node, wherein the proportional-integral-derivative control parameters include the first outer loop proportional-integral-derivative control parameters and the first inner loop proportional-integral-derivative control parameters; Based on the position of the current vehicle speed between two adjacent vehicle speed nodes, linear interpolation is performed on the first outer loop proportional-integral-derivative control parameters corresponding to the two adjacent vehicle speed nodes to generate the first outer loop proportional-integral-derivative control parameters corresponding to the current vehicle speed. Based on the position of the current vehicle speed between two adjacent vehicle speed nodes, linear interpolation is performed on the first inner loop proportional-integral-derivative control parameters corresponding to the two adjacent vehicle speed nodes to generate the first inner loop proportional-integral-derivative control parameters corresponding to the current vehicle speed.

[0013] Thus, in this embodiment, by presetting discrete vehicle speed nodes and calibrating corresponding reference control parameters, and then performing linear interpolation on the inner and outer loop control parameters based on the current vehicle speed to generate real-time reference parameters, continuous and smooth adaptation of proportional-integral-derivative control parameters across the entire speed domain is achieved. Compared to gain scheduling schemes that rely on manual experience to construct overall parameter curves, the parameter generation mode using node calibration plus linear interpolation provides clear and explicit parameter correspondences, effectively reducing calibration workload. Furthermore, parameter changes exhibit linear continuity, improving the smoothness of the lateral control process to a certain extent. Simultaneously, compared to adaptive gain schemes that rely on high-performance chips for online real-time computation, the parameter generation process only requires simple linear interpolation calculations, resulting in extremely low computational overhead and eliminating the need for high-specification hardware chips. This effectively reduces system costs and hardware barriers while ensuring control performance.

[0014] In addition, the node-based calibration mode improves the convenience of parameter maintenance. When changing vehicle hardware or adjusting control requirements, only the parameters of the corresponding nodes need to be recalibrated to complete the adaptation without reconstructing the overall parameter system. This improves the robustness and engineering adaptation efficiency of the system to a certain extent, and can effectively adapt to the lateral control requirements of different vehicle speed ranges, ensuring control stability and trajectory following performance in the full speed range.

[0015] In some embodiments, generating the target heading angle based on the outer loop gain scaling factor, the first outer loop proportional-integral-derivative control parameters, and the lateral position error includes: The outer loop gain scaling factor is multiplied by the outer loop proportional coefficient, outer loop integral coefficient and outer loop derivative coefficient respectively to generate the second outer loop proportional-integral-derivative control parameters. The lateral position error is controlled proportionally, integrally, and derivatively based on the second outer loop proportional-integral-derivative control parameters to generate the target heading angle.

[0016] Thus, in this embodiment, by applying the outer loop gain scaling factor to the three types of control parameters (proportional, integral, and derivative) of the outer loop respectively, equivalent second outer loop control parameters are generated before closed-loop calculation is performed. This achieves derivative matching and adaptive vehicle speed adjustment of the outer loop control. Compared to the fixed-parameter outer loop proportional-integral-derivative control scheme, parameter scaling ensures that the equivalent input of the lateral position error and the target heading angle satisfy the mathematical relationship of the first derivative in the time domain. This provides a clear theoretical basis for the control connection of the cascaded dual loops, improving the smoothness of lateral control to a certain extent, reducing overshoot oscillations and drifting phenomena at high speeds. Moreover, parameter scaling only requires simple multiplication operations, resulting in extremely low computational overhead. It fully retains the advantages of the proportional-integral-derivative control architecture—low cost and ease of implementation—making it convenient for rapid deployment and application on various advanced driver assistance system hardware platforms.

[0017] In some implementations, generating the target front wheel steering angle based on the inner loop gain scaling factor, the first inner loop proportional-integral-derivative control parameters, and the heading angle error includes: The inner loop gain scaling factor is multiplied by the inner loop proportional coefficient, the inner loop integral coefficient, and the inner loop derivative coefficient to generate the second inner loop proportional-integral-derivative control parameters. The heading angle error is controlled by proportional-integral-derivative (PI-D) based on the second inner loop proportional-integral-derivative (PI-D) control parameters to generate the target front wheel steering angle.

[0018] Thus, in this embodiment, by applying the inner loop gain scaling factor to the three types of control parameters (proportional, integral, and derivative) of the inner loop respectively, equivalent second inner loop proportional-integral-derivative control parameters are generated before closed-loop calculation is performed. This achieves derivative matching and adaptive vehicle speed adjustment of the inner loop control. Compared to the fixed-parameter inner loop proportional-integral-derivative control scheme, parameter scaling ensures that the equivalent input of the heading angle error and the target front wheel steering angle satisfy the mathematical relationship of the first derivative in the time domain. This provides a clear theoretical basis for the connection of the inner loop control in the cascaded dual-loop configuration, improving the smoothness from heading control to steering execution to a certain extent, reducing overshoot oscillations and dragging phenomena at high speeds. Furthermore, the inner loop scaling factor integrates the kinematic principal term and the dynamic sideslip correction term, which can approximate the true steering response scale across the entire speed domain, automatically compensating for control deviations caused by tire sideslip, and improving heading control accuracy under complex driving conditions to a certain extent.

[0019] Furthermore, parameter scaling can be achieved with simple multiplication operations, resulting in extremely low computational overhead. It fully retains the advantages of the proportional-integral-derivative control architecture, which is low-cost and easy to implement, making it convenient for rapid deployment and application on various advanced driver assistance system hardware platforms.

[0020] In some implementations, the ratio of the second outer loop proportional-integral-derivative control parameter to the second inner loop proportional-integral-derivative control parameter is greater than a preset value.

[0021] Thus, in this embodiment, by limiting the ratio of the second outer loop proportional-integral-derivative (PI-DI) control parameter to the second inner loop PI-DI control parameter to be greater than a preset value, the gain ratio constraint and bandwidth separation guarantee of the cascade dual-loop system are achieved. Compared to cascade control schemes without gain ratio constraints, forcibly maintaining the hierarchical control relationship where the inner loop response is faster than the outer loop by a fixed ratio threshold effectively avoids the problems of inner and outer loop bandwidth coupling and cascade instability caused by gain scaling due to vehicle speed changes. To a certain extent, this improves the stability of the lateral control system across the entire speed range and reduces undesirable driving phenomena such as jitter and jerkiness. At the same time, by combining the ratio constraint with the gain scaling mechanism, the vehicle speed adaptive control advantage brought by the derivative matching design is retained, ensuring the stability margin of the cascade system. This effectively solves the problems of high-speed overshoot and jitter, and low-speed undershoot and poor following performance of dual-loop PI-DI control. While improving the smoothness of lateral control, it also enhances the robustness of the control system operation, enabling it to adapt to the lateral control requirements of intelligent driving at different vehicle speeds and optimizing the driving experience and driving safety.

[0022] This application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, it implements the methods described in some of the above embodiments.

[0023] This application also provides a vehicle that includes the electronic devices described in some of the above embodiments.

[0024] This application also provides a computer-readable storage medium storing a computer program that, when executed by one or more processors, implements the methods described in some of the above embodiments.

[0025] This application also provides a computer program product, including a computer program / instructions that, when executed by a processor, implement the methods described in some of the above embodiments.

[0026] The electronic device, vehicle, computer-readable storage medium, and computer program product provided in this application, when implementing the above method, first acquire the vehicle's operating state parameters, wherein the operating state parameters include the vehicle's current speed, actual heading angle, and lateral position error; based on the current speed, determine the outer loop gain scaling factor and the inner loop gain scaling factor; then, based on the outer loop gain scaling factor, the first outer loop proportional-integral-derivative control parameter, and the lateral position error, generate the target heading angle; based on the inner loop gain scaling factor, the first inner loop proportional-integral-derivative control parameter, and the heading angle error, generate the target front wheel steering angle, wherein the heading angle error is the difference between the target heading angle and the actual heading angle; finally, control the vehicle's steering based on the target front wheel steering angle. Thus, in this embodiment, by collecting operating state parameters such as the vehicle's current speed, actual heading angle, and lateral position error, the outer loop gain scaling factor and inner loop gain scaling factor are calculated based on the current speed. The outer loop gain scaling factor is combined with the first outer loop proportional-integral-derivative (PI-DE) control parameters to perform closed-loop adjustment of the lateral position error to generate the target heading angle. The difference between the target heading angle and the actual heading angle is then used as the heading angle error. Combined with the inner loop gain scaling factor and the first inner loop PI-DE control parameters, the inner loop closed-loop calculation is completed, outputting the target front wheel steering angle and using it to control the vehicle's steering. This achieves speed-adaptive vehicle lateral control. Compared to a fixed-parameter cascaded PI-DE lateral control scheme, the dynamic adjustment of the gain scaling factor ensures that the equivalent control quantities of the inner and outer loops of the cascaded dual-loop control system satisfy the mathematical correspondence of the first-order derivative in the time domain. This restores the inherent mathematical correlation between the inner and outer loops of the cascaded architecture, effectively weakening the impact of speed changes on the open-loop gain of the control system, and maintaining a stable and smooth control effect across the entire speed range. Meanwhile, compared to the adaptive proportional-integral-derivative (PI-D) scheme that relies on high-performance chips for real-time online computation, the implementation method of this application does not require complex online parameter calculations and massive data calibration. It can complete all control calculations by relying on the scaling factor associated with the basic control parameters and vehicle speed through offline calibration. While improving control performance, it retains the low-cost advantage of the PI-D architecture, which reduces hardware costs and engineering calibration complexity to a certain extent, improves the robustness and maintainability of the system, and can adapt to different vehicle models and urban and highway driving scenarios. It effectively improves the smoothness of intelligent driving lateral control and driving safety, and optimizes the user's driving experience.

[0027] Additional aspects and advantages of embodiments of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of embodiments of this application. Attached Figure Description

[0028] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, wherein: Figure 1 This is one of the schematic flowcharts of a vehicle lateral control method according to certain embodiments of this application; Figure 2 This is a second schematic flowchart of a vehicle lateral control method according to certain embodiments of this application; Figure 3 This is the third flowchart of a vehicle lateral control method according to certain embodiments of this application; Figure 4 This is a schematic diagram of the outer loop control processing flow of some embodiments of this application; Figure 5 This is a schematic diagram of the inner loop control processing flow of some embodiments of this application; Figure 6 This is a schematic diagram illustrating the relationship between lateral error and heading angle in the vehicle coordinate system according to certain embodiments of this application; Figure 7 This is a schematic diagram of the wheel angle of a bicycle model according to certain embodiments of this application; Figure 8 This is the fourth flowchart of a vehicle lateral control method according to certain embodiments of this application; Figure 9 This is the fifth of the flowcharts illustrating a vehicle lateral control method according to certain embodiments of this application; Figure 10 This is the sixth flowchart of a vehicle lateral control method according to certain embodiments of this application. Detailed Implementation

[0029] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the embodiments of this application, and should not be construed as limiting the embodiments of this application.

[0030] With the rapid development and widespread adoption of the intelligent driving industry, Advanced Driver Assistance Systems (ADAS) have become a core component of passenger vehicles. Among these, lateral trajectory control, as the underlying support for functions such as lane keeping and path following, directly determines the smoothness, stability, and safety of vehicle operation. In related technologies, the lateral control system of intelligent driving vehicles typically employs a proportional-integral-derivative (PID) control architecture. The outer loop uses the vehicle's lateral position error as the control variable, while the inner loop uses the vehicle's heading angle error. The inner loop tracks the target heading angle output by the outer loop, achieving closed-loop adjustment of the vehicle's trajectory. The PID architecture boasts advantages such as clear structure, low computational load, and strong engineering adaptability, leading to its widespread mass production application in low- to mid-range ADAS products. However, due to the influence of vehicle dynamics, there is a lack of mathematical correspondence between the first-order derivative in the time domain between the inner and outer loop control variables. The open-loop gain of the controlled object increases with the square of the vehicle speed, resulting in significant differences in the control performance of the control system at different vehicle speeds. At high speeds, it is prone to overshoot oscillations, while at low speeds, the response is slow and the trajectory following is poor. It is difficult to achieve full-speed domain control quality, which to some extent affects the user's driving experience and driving safety.

[0031] To mitigate the impact of vehicle speed variations on lateral control, some technical solutions employ offline calibration to obtain fixed inner and outer loop control parameters. These parameters are adapted to control requirements within typical vehicle speed ranges based on empirical data, resulting in a simple overall architecture, requiring no additional hardware support, and exhibiting extremely low computational overhead. However, this fixed-parameter approach fails to fundamentally address the inherent deficiency of a lack of derivative correspondence between inner and outer loop control variables. The characteristic of the controlled object's open-loop gain increasing with the square of vehicle speed is not effectively compensated, and full-speed-domain control stability remains difficult to achieve.

[0032] To overcome the limitations of fixed-parameter solutions, some technical solutions employ gain scheduling. This involves constructing a parameter curve function relating vehicle speed to PID gain based on vehicle model calibration experience, without altering the cascade system's fundamental architecture. During vehicle operation, the corresponding gain parameter is queried and matched according to the real-time vehicle speed, achieving dynamic parameter adaptation at different speeds. However, this approach relies on manual experience to construct the parameter mapping relationship, resulting in parameter curves lacking clear physical meaning, poor interpretability, and insufficient system robustness. Changing vehicle hardware or tire parameters necessitates recalibrating across the entire speed domain, and differences in parameter tuning by different personnel can easily lead to system performance fluctuations, resulting in high after-sales maintenance costs.

[0033] Furthermore, some technical solutions employ an adaptive PID architecture. By adjusting the control system architecture and adding an online computing module, real-time vehicle and road condition data are collected through onboard sensors. This data is then combined with a preset algorithm to generate real-time PID gain coefficients, dynamically adapting to various operating conditions during driving. However, this approach requires collecting massive amounts of real-vehicle data to build the algorithm model, increasing calibration workload and parameter tuning complexity. Additionally, online gain calculation has inherent latency, placing high demands on the performance of sensing and computing hardware. High-performance onboard chips are required, increasing system hardware costs and deviating from the low-cost, easily deployable product positioning of the PID architecture, making it difficult to widely apply in large-scale mass production projects.

[0034] In summary, how to effectively suppress the interference of vehicle speed on the quality of lateral control while maintaining the inherent economy and engineering simplicity of the PID architecture, and achieve stable and robust trajectory tracking control across the entire speed range, has become a pressing technical challenge in the field of ADAS lateral control.

[0035] Based on the above issues, please refer to the following: Figure 1 and Figure 2 This application provides a vehicle lateral control method, the method comprising: 01: Obtain the vehicle's operating status parameters, including the vehicle's current speed, actual heading angle, and lateral position error; 02: Determine the outer loop gain scaling factor and the inner loop gain scaling factor based on the current vehicle speed; 03: Generate the target heading angle based on the outer loop gain scaling factor, the first outer loop proportional-integral-derivative control parameters, and the lateral position error; 04: Based on the inner loop gain scaling factor, the first inner loop proportional-integral-derivative control parameters, and the heading angle error, generate the target front wheel steering angle, where the heading angle error is the difference between the target heading angle and the actual heading angle; 05: Control the vehicle steering based on the target front wheel angle.

[0036] This application provides a vehicle lateral control device. The vehicle lateral control method of this application can be implemented by the vehicle lateral control device of this application. Specifically, the vehicle lateral control device includes an acquisition module, a determination module, a first processing module, a second processing module, and a control module. The acquisition module is used to acquire the vehicle's operating state parameters, wherein the operating state parameters include the vehicle's current speed, actual heading angle, and lateral position error. The determination module is used to determine the outer loop gain scaling factor and the inner loop gain scaling factor based on the current vehicle speed. The first processing module is used to generate a target heading angle based on the outer loop gain scaling factor, the first outer loop proportional-integral-derivative control parameters, and the lateral position error. The second processing module is used to generate a target front wheel steering angle based on the inner loop gain scaling factor, the first inner loop proportional-integral-derivative control parameters, and the heading angle error, wherein the heading angle error is the difference between the target heading angle and the actual heading angle. The control module is used to control the vehicle steering based on the target front wheel steering angle.

[0037] This application also provides a server, which includes a memory and a processor. The vehicle lateral control method of this application can be implemented by the server of this application. Specifically, the memory stores a computer program, and the processor is used to acquire the vehicle's operating state parameters, including the vehicle's current speed, actual heading angle, and lateral position error. The processor is also used to determine the outer loop gain scaling factor and the inner loop gain scaling factor based on the current vehicle speed. The processor is also used to generate a target heading angle based on the outer loop gain scaling factor, the first outer loop proportional-integral-derivative control parameters, and the lateral position error. The processor is also used to generate a target front wheel steering angle based on the inner loop gain scaling factor, the first inner loop proportional-integral-derivative control parameters, and the heading angle error, wherein the heading angle error is the difference between the target heading angle and the actual heading angle. The processor is also used to control the vehicle steering based on the target front wheel steering angle.

[0038] Specifically, the vehicle lateral control method can be understood as an automatic control method applied to intelligent driving scenarios to adjust the lateral driving posture of the vehicle so that the vehicle can drive stably along a preset lane trajectory.

[0039] Operating status parameters can be understood as a set of quantitative parameters that characterize the current driving motion state of a vehicle, reflecting information such as the vehicle's position offset, orientation angle, and driving speed.

[0040] Current vehicle speed can be understood as the longitudinal speed of the vehicle along the direction of its movement at the current moment.

[0041] The actual heading angle can be understood as the angle between the vehicle's current heading and the tangent of the lane centerline, used to quantitatively characterize the degree of deviation of the vehicle's current driving direction from the target trajectory.

[0042] Lateral position error can be understood as the lateral vertical distance between the vehicle's reference point and the current lane centerline, and is used to quantitatively characterize the lateral offset of the vehicle relative to the target driving trajectory.

[0043] The outer loop gain scaling factor can be understood as a dynamic correction coefficient applied to the outer loop PID control parameters. Its value is dynamically adjusted with the current vehicle speed. It is used to perform an equivalent transformation on the control quantity input to the outer loop, so that a derivative-matched control relationship is formed between the cascaded double loops, and the smoothness of the control connection between the inner and outer loops is optimized.

[0044] The inner loop gain scaling factor can be understood as a dynamic correction coefficient applied to the inner loop PID control parameters. Its value is dynamically adjusted with the current vehicle speed. It is used to perform an equivalent transformation on the control quantity input to the inner loop, so that the inner loop control quantity and the final steering output quantity form a derivative-matched control relationship, ensuring a smooth transition from heading control to wheel angle control.

[0045] The first outer loop proportional-integral-derivative control parameters can be understood as the pre-calibrated reference parameters of the outer loop PID controller, including the outer loop proportional coefficient, outer loop integral coefficient, and outer loop derivative coefficient.

[0046] The target heading angle can be understood as the desired vehicle heading angle value calculated and output by the outer loop PID controller, which is used to guide the vehicle to adjust its driving direction in order to gradually eliminate lateral position error.

[0047] The first inner loop proportional-integral-derivative control parameters can be understood as the pre-calibrated reference parameters of the inner loop PID controller, including the inner loop proportional coefficient, inner loop integral coefficient, and inner loop derivative coefficient.

[0048] The heading angle error can be understood as the difference between the target heading angle and the actual heading angle, which directly reflects the degree of deviation between the vehicle's current actual heading and the desired heading.

[0049] The target front wheel steering angle can be understood as the desired front wheel deflection angle calculated and output by the inner loop PID controller, which is used to drive the vehicle to complete the steering action to adjust the driving direction.

[0050] like Figure 2 As shown, during the operation of vehicle lateral control, the electronic equipment first collects the vehicle's operating status parameters through the on-board sensing module and the body sensing system, and obtains status data such as the current vehicle speed, actual heading angle, and lateral position error.

[0051] Subsequently, the electronic equipment determines the outer-loop gain scaling factor and the inner-loop gain scaling factor based on the acquired current vehicle speed. Both the outer-loop and inner-loop gain scaling factors dynamically change with the current vehicle speed to perform equivalent transformations on the inner and outer loop inputs of the cascade proportional-integral-derivative control. This ensures that the time-domain first derivative of the equivalent outer-loop input corresponds to the mathematical relationship between the inner-loop input, and the time-domain first derivative of the equivalent inner-loop input corresponds to the mathematical relationship between the final output. This achieves derivative-matching control characteristics within the cascade control architecture.

[0052] In the outer loop control stage, the electronic system combines the outer loop gain scaling factor with the first outer loop proportional-integral-derivative control parameters, performs PID calculations with the lateral position error as input, and finally outputs the target heading angle. The goal of the outer loop control is to calculate the desired heading angle that the vehicle should maintain based on the degree of lateral deviation, and gradually eliminate the lateral position error through continuous heading adjustments, so that the vehicle returns to the lane centerline.

[0053] In the inner-loop control stage, the electronic system first calculates the difference between the target heading angle and the actual heading angle to obtain the heading angle error. Then, it combines the inner-loop gain scaling factor with the first inner-loop proportional-integral-derivative control parameters, using the heading angle error as input to perform PID calculations, ultimately outputting the target front wheel steering angle. The goal of the inner-loop control is to quickly track the target heading command output from the outer loop, adjusting the front wheel steering angle to ensure the vehicle's actual heading continuously matches the desired heading, thus guaranteeing the successful execution of the outer-loop control objective.

[0054] Finally, the electronic device sends the generated target front wheel steering angle to the vehicle steering actuator, driving the vehicle to complete the corresponding steering action. Through the closed-loop coordination of the outer and inner loops, continuous closed-loop control of the vehicle's lateral driving posture is achieved.

[0055] Thus, in this embodiment, by collecting operating state parameters such as the vehicle's current speed, actual heading angle, and lateral position error, the outer loop gain scaling factor and inner loop gain scaling factor are calculated based on the current vehicle speed. The outer loop gain scaling factor is combined with the first outer loop proportional-integral-derivative (PI-DE) control parameters to perform closed-loop adjustment of the lateral position error to generate the target heading angle. The difference between the target heading angle and the actual heading angle is then used as the heading angle error. Combined with the inner loop gain scaling factor and the first inner loop PI-DE control parameters, the inner loop closed-loop calculation is completed, outputting the target front wheel steering angle and using it to control the vehicle's steering. This achieves speed-adaptive vehicle lateral control. Compared to a fixed-parameter cascaded PI-DE lateral control scheme, the dynamic adjustment of the gain scaling factor ensures that the equivalent control quantities of the inner and outer loops of the cascaded dual-loop control system satisfy the mathematical correspondence of the first-order derivative in the time domain. This restores the inherent mathematical correlation between the inner and outer loops of the cascaded architecture, effectively weakening the impact of vehicle speed changes on the open-loop gain of the control system, and maintaining a stable and smooth control effect across the entire speed range. Meanwhile, compared to the adaptive proportional-integral-derivative (PI-D) scheme that relies on high-performance chips for real-time online computation, the implementation method of this application does not require complex online parameter calculations and massive data calibration. It can complete all control calculations by relying on the scaling factor associated with the basic control parameters and vehicle speed through offline calibration. While improving control performance, it retains the low-cost advantage of the PI-D architecture, which reduces hardware costs and engineering calibration complexity to a certain extent, improves the robustness and maintainability of the system, and can adapt to different vehicle models and urban and highway driving scenarios. It effectively improves the smoothness of intelligent driving lateral control and driving safety, and optimizes the user's driving experience.

[0056] Please refer to the following: Figure 2 , Figure 3 , Figure 4 , Figure 5 and Figure 6 In some implementations, step 02 includes: 021: Determine the outer loop gain scaling factor based on the reciprocal of the current vehicle speed. The outer loop gain scaling factor is used to make the time-domain first derivative of the equivalent input of the lateral position error correspond to the target heading angle. 022: Based on the current vehicle speed and the vehicle's physical characteristic parameters, determine the inner loop gain scaling factor. The physical characteristic parameters include wheelbase, vehicle mass, first distance from the front axle to the vehicle's center of gravity, second distance from the rear axle to the vehicle's center of gravity, front wheel lateral stiffness, and rear wheel lateral stiffness. The inner loop gain scaling factor is used to make the time-domain first derivative of the equivalent input of the heading angle error correspond to the target front wheel steering angle.

[0057] In some implementations, the determining module is further configured to determine an outer-loop gain scaling factor based on the reciprocal of the current vehicle speed, wherein the outer-loop gain scaling factor is used to make the time-domain first derivative of the equivalent input of the lateral position error correspond to the target heading angle. The determining module is further configured to determine an inner-loop gain scaling factor based on the current vehicle speed and the vehicle's physical characteristic parameters, wherein the physical characteristic parameters include wheelbase, vehicle mass, a first distance from the front axle to the vehicle's center of gravity, a second distance from the rear axle to the vehicle's center of gravity, the vehicle's front wheel lateral stiffness, and the vehicle's rear wheel lateral stiffness, and the inner-loop gain scaling factor is used to make the time-domain first derivative of the equivalent input of the heading angle error correspond to the target front wheel steering angle.

[0058] In some implementations, the processor is further configured to determine an outer-loop gain scaling factor based on the reciprocal of the current vehicle speed, wherein the outer-loop gain scaling factor is used to align the time-domain first derivative of the equivalent input of the lateral position error with the target heading angle. The processor is further configured to determine an inner-loop gain scaling factor based on the current vehicle speed and the vehicle's physical characteristic parameters, wherein the physical characteristic parameters include wheelbase, vehicle mass, a first distance from the front axle to the vehicle's center of gravity, a second distance from the rear axle to the vehicle's center of gravity, front wheel lateral stiffness, and rear wheel lateral stiffness, and the inner-loop gain scaling factor is used to align the time-domain first derivative of the equivalent input of the heading angle error with the target front wheel steering angle.

[0059] Specifically, the reciprocal of the current vehicle speed can be understood as the reciprocal of the vehicle's longitudinal speed. The derivative relationship between the inner and outer rings is matched by performing a reciprocal scaling transformation on the lateral position error.

[0060] The equivalent input quantity of the lateral position error can be understood as the equivalent control quantity obtained by scaling the original lateral position error through the outer loop gain scaling factor. This equivalent input quantity of the lateral position error satisfies the mathematical property that the first derivative in the time domain corresponds to the target heading angle.

[0061] The first derivative in the time domain can be understood as the instantaneous rate of change of a physical quantity as it changes continuously with time. In a cascade control architecture, this is reflected in the rate of change of the equivalent input in the outer loop corresponding to the input in the inner loop.

[0062] The physical characteristic parameters of a vehicle can be understood as a set of quantitative parameters that characterize the inherent geometric and dynamic properties of the vehicle, including wheelbase, vehicle mass, center of gravity position parameters, and tire lateral stiffness parameters.

[0063] Wheelbase can be understood as the longitudinal straight-line distance between the center of the front axle and the center of the rear axle of a vehicle.

[0064] The vehicle's total mass can be understood as the total mass of the vehicle in its ready-to-use state.

[0065] The first distance can be understood as the longitudinal distance from the center of the front axle of the vehicle to the center of gravity of the vehicle.

[0066] The second distance can be understood as the longitudinal distance from the center of the rear axle of the vehicle to the center of gravity of the vehicle.

[0067] The front wheel lateral stiffness of a vehicle can be understood as the magnitude of the lateral force that the front wheel tires can provide when generating a unit lateral angle, which directly affects the front wheel lateral response when the vehicle is turning.

[0068] The rear wheel lateral stiffness of a vehicle can be understood as the magnitude of the lateral force that the rear tire can provide when it generates a unit lateral slip angle. Together with the front wheel lateral stiffness, it determines the lateral dynamic response and steady-state steering characteristics of the entire vehicle.

[0069] The equivalent input quantity of the heading angle error can be understood as the equivalent control quantity obtained after scaling the original heading angle error by the inner loop gain scaling factor. The equivalent input quantity of the heading angle error satisfies the mathematical characteristic that the first derivative in the time domain corresponds to the target front wheel steering angle.

[0070] like Figure 2 and Figure 4 As shown, in determining the two types of gain scaling factors, the electronic device first retrieves the current vehicle speed and determines the outer-loop gain scaling factor by using the reciprocal of the current vehicle speed. The function of the outer-loop gain scaling factor is to perform an equivalent transformation on the lateral position error, so that the time-domain first derivative of the transformed equivalent input corresponds to the target heading angle.

[0071] In some implementations, the outer-loop gain scaling factor can be derived based on the geometry of the vehicle's lateral motion.

[0072] According to the outer-loop PID formula, the input in the outer loop is the lateral error. The output is the target heading angle. To make the time-domain first derivative of the equivalent input of the outer loop equal to the tangent of the target heading angle... Correspondingly, it is necessary to address the lateral error. Find the first derivative in the time domain.

[0073] Please see Figure 6 The electronic device first establishes a vehicle coordinate system, with the center of the rear axle as the origin O, the vehicle's orientation as the positive X-axis, and the left side of the vehicle as the positive Y-axis. Within this coordinate system, the electronic device calculates the lateral distance from the rear axle center O to the current lane centerline and defines this lateral distance as the lateral position error. Simultaneously, the perception module obtains the vehicle's current heading angle, which is the tangent of the angle between the vehicle's current heading and the center line of the current lane. In the aforementioned vehicle coordinate system, the actual heading angle is the slope of the lane centerline function at the origin. Therefore, the lateral position error... The first-order time-domain derivative satisfies the kinematic formula:

[0074] in, For the time-domain first derivative of the lateral position error, Current vehicle speed This is the tangent of the vehicle's heading angle. This refers to the vehicle's lateral speed.

[0075] Figure 6 The two curves in the diagram represent the center lines of the same lane segment at their respective moments, and the change in their positional relationship is caused by vehicle displacement within a very short time interval. , Each is a pair of the same point at different times, where, and On the Y-axis of the vehicle body, for The angle between the tangent at the point and the X-axis.

[0076] Depend on Figure 6 It can be seen that the lateral error at the current moment for Horizontal error at the previous moment for At the minimum moment Inside, .

[0077] In a very short time Inside, It can be approximated as ,but .in, It is the distance the vehicle travels in the X direction, that is... , It is the distance the vehicle travels along the Y direction, that is... Substituting into the original expression, we get... This refers to the lateral error of the outer loop input. The first-order time-domain derivative.

[0078] If we set the outer loop gain scaling factor Then the equivalent input quantity of the lateral position error is The time-domain first derivative of the equivalent input of the outer loop is:

[0079] Under normal driving conditions, the lateral speed of a vehicle is much less than its longitudinal speed, that is... Therefore, the time-domain first derivative of the equivalent input is approximately equal to the tangent of the heading angle, i.e. Therefore, the time-domain first derivative of the equivalent input of the outer loop is related to the tangent of the target heading angle. A correspondence is formed, realizing the derivative matching property of the outer loop.

[0080] The equivalent state quantity of the outer loop is determined by the lateral position error. Transform into This makes the time-domain first derivative of the lateral error approximately equal to the inner loop input. Meanwhile, the outer ring output naturally includes The term refers to the sideslip angle, which can achieve the effect of sideslip compensation.

[0081] Subsequently, as Figure 2 and Figure 5 As shown, the electronic device determines the inner-loop gain scaling factor by combining the current vehicle speed with the vehicle's physical characteristic parameters. The function of the inner-loop gain scaling factor is to perform an equivalent transformation on the heading angle error, so that the time-domain first derivative of the transformed equivalent input corresponds to the target front wheel steering angle.

[0082] In some implementations, the inner loop gain scaling factor can be derived based on vehicle dynamics and bicycle kinematics models. The main function of the inner loop scaling factor is to ensure that the equivalent input of the inner loop is proportional to the wheel angle within a very short time period, thereby guaranteeing the derivative matching characteristics of the inner loop and making the inner loop output directly correspond to the front wheel angle.

[0083] Thus, in this embodiment, by designing an outer-loop gain scaling factor that is correlated with the reciprocal of vehicle speed and an inner-loop gain scaling factor that combines vehicle speed and vehicle physical characteristics, the equivalent control quantities of the inner and outer loops of the cascade dual-loop control system satisfy the derivative matching relationship, thereby realizing vehicle speed adaptive gain adjustment based on physical modeling and mathematical derivation. The outer-loop scaling factor eliminates the dependence of the open-loop gain of the controlled object on the square of vehicle speed, effectively mitigating the overshoot oscillation problem caused by excessive system gain at high speeds. Simultaneously, the outer-loop output naturally includes a sideslip compensation term, which can, to some extent, offset the interference of vehicle lateral slip on lateral control. Furthermore, by integrating kinematic and dynamic characteristics through the inner-loop scaling factor, the system's natural frequency and damping ratio are theoretically largely unaffected by vehicle speed, maintaining consistent dynamic response characteristics across the entire speed range, thus improving the problems of slow system response and poor following at low speeds.

[0084] Furthermore, the outer and inner loop gain scaling factors of this application are both derived from rigorous mathematical derivations of vehicle dynamics and bicycle kinematics models, possessing clear physical meaning and interpretability. Factors strongly correlated with the vehicle in the gain coefficient are transferred to the gain scaling factor, achieving decoupling between the gain coefficient and the vehicle condition. After replacing the vehicle or tires, only the corresponding physical characteristic parameters need to be updated, without having to recalibrate the entire lateral control system from scratch. This improves the robustness and maintainability of the lateral control system to a certain extent, and reduces after-sales maintenance costs and calibration workload.

[0085] Please see Figure 7In some implementations, the inner loop gain scaling factor is generated by adding the kinematic principal term and the dynamic lateral slip correction term; the kinematic principal term is the ratio of wheelbase to current vehicle speed; the dynamic lateral slip correction term is calculated based on the vehicle's total mass, current vehicle speed, wheelbase, first distance, second distance, front wheel lateral slip stiffness, and rear wheel lateral slip stiffness.

[0086] Specifically, the kinematic principal term can be understood as a component of the inner loop scaling factor derived from the bicycle kinematic model, representing the proportional relationship between the changes in the front wheel steering angle and the heading angle at the vehicle steering kinematic level, and its value is the ratio of the wheelbase to the current vehicle speed.

[0087] The dynamic sideslip correction term can be understood as a compensation component that takes into account the tire sideslip mechanical characteristics. It is calculated and generated based on physical parameters such as vehicle mass, current speed, wheelbase, first distance from the front axle to the center of gravity, second distance from the rear axle to the center of gravity, front wheel sideslip stiffness, and rear wheel sideslip stiffness. It is used to correct the influence of tire sideslip angle on steering response and improve control accuracy under high-speed conditions.

[0088] In some implementations, the inner loop scaling factor needs to make the equivalent input of the inner loop equal to the wheel angle. The scaling factor is proportional over a very short time period to satisfy the derivative matching principle of cascade control. Based on this, the basic construction form of the inner loop scaling factor is derived as follows:

[0089] in, This is the inner ring scaling factor. It has an extremely short control cycle.

[0090] To simplify the calculation, a small-angle approximation is made for the tangent of the heading angle, assuming that the tangent is approximately equal to the ratio of the vehicle's lateral velocity to its longitudinal velocity. .

[0091] Subsequently, as Figure 7 As shown, combined with the lateral acceleration relationship Relationship with centripetal acceleration By gradually substituting and deducing, we can obtain:

[0092] in, This is the turning radius.

[0093] Meanwhile, the lateral force and torque during the vehicle's steady-state steering process satisfy the following equilibrium relationship:

[0094] in, The resultant force is in the Y-axis direction. For the overall vehicle weight, The radius of curvature of the current driving trajectory. The lateral force is from the front wheel. The lateral force is from the rear wheel. For the front wheel lateral stiffness, For rear wheel lateral stiffness, The front wheel slip angle, Rear wheel slip angle, The first distance from the front axle to the center of gravity. This is the second distance from the rear axle to the center of mass. and The subscripts indicate the front and rear wheels, respectively.

[0095] According to the bicycle kinematics model, the front wheel steering angle of the vehicle With wheelbase Turning radius and front wheel slip angle Rear wheel slip angle The relationship between them is:

[0096] According to the vehicle dynamics model, the front wheel slip angle Rear wheel slip angle The difference can be expressed as:

[0097] Substituting the above dynamic relationships into the bicycle kinematic model, we can obtain the front wheel steering angle. The complete expression:

[0098] Combining the previous equations, we can obtain the inner loop gain scaling factor as follows:

[0099] Accordingly, the inner-loop gain scaling factor consists of the kinematic principal term and the dynamic side-bias correction term.

[0100] In practical applications, the electronic device first reads the pre-stored vehicle physical characteristic parameters, including wheelbase, vehicle mass, first distance from the front axle to the center of gravity, second distance from the rear axle to the center of gravity, front wheel lateral stiffness and rear wheel lateral stiffness, and at the same time obtains the vehicle's current speed in real time through onboard sensors.

[0101] Subsequently, the kinematic principal term of the inner-loop gain scaling factor is calculated, and the corresponding formula is:

[0102] in, Represents wheelbase. This represents the current vehicle speed.

[0103] Simultaneously calculate the dynamic side-bias correction term of the inner-loop gain scaling factor, with the corresponding formula being: .

[0104] Finally, the kinematic principal term is added to the dynamic lateral deviation correction term to obtain the complete inner-loop gain scaling factor.

[0105] After calculating the inner loop gain scaling factor, the inner loop gain scaling factor is applied to the various control parameters of the inner loop PID, so that the time-domain first derivative of the equivalent input of the inner loop forms a matching relationship with the target front wheel angle, thereby realizing the derivative matching design of the cascade system.

[0106] Thus, in this embodiment, the inner-loop gain scaling factor adopts an analytical construction form of kinematic principal terms superimposed with dynamic side-slip correction terms. The kinematic principal terms cover the basic geometric relationships of vehicle steering, ensuring gain matching accuracy under low- and medium-speed conditions. The dynamic side-slip correction terms compensate for the response deviation caused by tire side-slip, ensuring that the inner-loop output accurately corresponds to the actual wheel angle across the entire speed range. Furthermore, verification through transfer function derivation shows that the inner-loop gain scaling factor theoretically makes the natural frequency and damping ratio of the inner-loop control system independent of vehicle speed, effectively eliminating the defect of cascade PID system inner-loop dynamic characteristics fluctuating with vehicle speed. This can, to a certain extent, ensure that the vehicle has consistent steering response quality at different speeds, eliminating the need for complex parameter calibration for different speed ranges.

[0107] Furthermore, the construction of the kinematic principal term superimposed with the dynamic side-bias correction term combines simplicity and accuracy. When only the kinematic principal term is taken as an approximation, the calculation process can be simplified, making it suitable for low-computing-power vehicle platforms. When both terms are retained, high-precision dynamic compensation can be achieved. To a certain extent, this balances the economy of engineering implementation with the superior control performance. Moreover, the inner-loop gain factor is derived analytically from the vehicle's physical parameters, possessing clear physical meaning and interpretability. After replacing the vehicle or tires, only the corresponding physical parameters need to be updated to complete the adaptation, which to a certain extent improves the robustness and maintainability of the control system.

[0108] Please refer to the following: Figure 4 , Figure 5 and Figure 8 In some embodiments, the vehicle lateral control method further includes: 06: Obtain multiple preset vehicle speed nodes and the proportional-integral-derivative control parameters corresponding to each vehicle speed node, wherein the proportional-integral-derivative control parameters include the first outer loop proportional-integral-derivative control parameters and the first inner loop proportional-integral-derivative control parameters; 07: Based on the position of the current vehicle speed between two adjacent speed nodes, perform linear interpolation on the first outer loop proportional-integral-derivative control parameters corresponding to the two adjacent speed nodes respectively to generate the first outer loop proportional-integral-derivative control parameters corresponding to the current vehicle speed; 08: Based on the position of the current vehicle speed between two adjacent speed nodes, perform linear interpolation on the first inner loop proportional-integral-derivative control parameters corresponding to the two adjacent speed nodes respectively, and generate the first inner loop proportional-integral-derivative control parameters corresponding to the current vehicle speed.

[0109] In some embodiments, the determining module is further configured to acquire a plurality of preset vehicle speed nodes and proportional-integral-derivative (PID) control parameters corresponding to each vehicle speed node, wherein the PID control parameters include a first outer loop PID control parameter and a first inner loop PID control parameter. The determining module is further configured to perform linear interpolation on the first outer loop PID control parameters corresponding to the two adjacent vehicle speed nodes based on the position of the current vehicle speed between the two adjacent vehicle speed nodes, thereby generating the first outer loop PID control parameters corresponding to the current vehicle speed. The determining module is further configured to perform linear interpolation on the first inner loop PID control parameters corresponding to the two adjacent vehicle speed nodes based on the position of the current vehicle speed between the two adjacent vehicle speed nodes, thereby generating the first inner loop PID control parameters corresponding to the current vehicle speed.

[0110] In some embodiments, the processor is further configured to acquire a plurality of preset vehicle speed nodes and proportional-integral-derivative (PID) control parameters corresponding to each vehicle speed node, wherein the PID control parameters include a first outer loop PID control parameter and a first inner loop PID control parameter. The processor is further configured to perform linear interpolation on the first outer loop PID control parameters corresponding to the two adjacent vehicle speed nodes based on the position of the current vehicle speed between the two adjacent vehicle speed nodes, thereby generating a first outer loop PID control parameter corresponding to the current vehicle speed. The processor is further configured to perform linear interpolation on the first inner loop PID control parameters corresponding to the two adjacent vehicle speed nodes based on the position of the current vehicle speed between the two adjacent vehicle speed nodes, thereby generating a first inner loop PID control parameter corresponding to the current vehicle speed.

[0111] Specifically, the preset multiple vehicle speed nodes can be understood as several pre-set discrete vehicle speed reference values, which can be used to construct a discrete correspondence between vehicle speed and control parameters, providing reference support for full-speed domain parameter adaptation.

[0112] Linear interpolation can be understood as a numerical calculation method that, based on two sets of known reference values, calculates the corresponding values ​​of the point to be solved by means of a linear proportional relationship according to the relative position of the point to be solved between the two reference points. It can achieve a continuous and smooth transition of parameters between discrete reference points.

[0113] like Figure 4 and Figure 5 As shown, the electronic device pre-stores multiple preset vehicle speed nodes and proportional-integral-derivative control parameters corresponding to each vehicle speed node. Each set of proportional-integral-derivative control parameters includes a first outer loop proportional-integral-derivative control parameter and a first inner loop proportional-integral-derivative control parameter.

[0114] In some implementations, the vehicle speed node can be set according to the actual operating speed range of the vehicle and the control accuracy requirements. For example, it can be set to typical vehicle speed levels such as 10km / h, 30km / h, 60km / h, 90km / h, and 120km / h.

[0115] During the vehicle calibration phase, technicians perform parameter tuning for each speed node to ensure that the lateral control performance at the corresponding speed meets design specifications such as stability, response speed, and overshoot. The vehicle speed is kept constant during the calibration process to ensure that the correspondence between the reference parameters and the vehicle speed is accurate and reliable.

[0116] During actual vehicle operation, the electronic equipment acquires the current vehicle speed in real time, first determines the numerical range of the current vehicle speed, and then locates two adjacent preset vehicle speed nodes.

[0117] For the first outer loop proportional-integral-derivative control parameters, the electronic device performs linear interpolation on the first outer loop proportional-integral-derivative control parameters corresponding to the two adjacent speed nodes based on the relative position of the current vehicle speed between the two adjacent speed nodes, and generates the first outer loop proportional-integral-derivative control parameters that match the current vehicle speed.

[0118] Similarly, for the first inner loop proportional-integral-derivative (PI-DE) control parameters, the electronic device performs linear interpolation on the corresponding first inner loop PI-DE control parameters for each of the two adjacent speed nodes based on the relative position of the current vehicle speed between them, generating first inner loop PI-DE control parameters that match the current vehicle speed. The interpolation logic for the inner loop is the same as that for the outer loop, performing linear interpolation on the proportional, integral, and derivative coefficients of the inner loop to obtain the inner loop reference control parameters at the current vehicle speed.

[0119] Understandably, by using linear interpolation, only a finite number of discrete speed nodes need to be calibrated to cover the parameter requirements across the entire speed range. Moreover, the parameters change continuously with the vehicle speed, avoiding the abrupt changes in control caused by discrete gear shifting.

[0120] Thus, in this embodiment, by presetting discrete vehicle speed nodes and calibrating corresponding reference control parameters, and then performing linear interpolation on the inner and outer loop control parameters based on the current vehicle speed to generate real-time reference parameters, continuous and smooth adaptation of proportional-integral-derivative control parameters across the entire speed domain is achieved. Compared to gain scheduling schemes that rely on manual experience to construct overall parameter curves, the parameter generation mode using node calibration plus linear interpolation provides clear and explicit parameter correspondences, effectively reducing calibration workload. Furthermore, parameter changes exhibit linear continuity, improving the smoothness of the lateral control process to a certain extent. Simultaneously, compared to adaptive gain schemes that rely on high-performance chips for online real-time computation, the parameter generation process only requires simple linear interpolation calculations, resulting in extremely low computational overhead and eliminating the need for high-specification hardware chips. This effectively reduces system costs and hardware barriers while ensuring control performance.

[0121] In addition, the node-based calibration mode improves the convenience of parameter maintenance. When changing vehicle hardware or adjusting control requirements, only the parameters of the corresponding nodes need to be recalibrated to complete the adaptation without reconstructing the overall parameter system. This improves the robustness and engineering adaptation efficiency of the system to a certain extent, and can effectively adapt to the lateral control requirements of different vehicle speed ranges, ensuring control stability and trajectory following performance in the full speed range.

[0122] Please refer to the following: Figure 2 , Figure 4 and Figure 9 In some implementations, step 03 includes: 031: Multiply the outer loop gain scaling factor by the outer loop proportional coefficient, outer loop integral coefficient, and outer loop derivative coefficient respectively to generate the second outer loop proportional-integral-derivative control parameters; 032: Based on the proportional-integral-derivative control parameters of the second outer ring, perform proportional-integral-derivative control on the lateral position error to generate the target heading angle.

[0123] In some embodiments, the first processing module is further configured to multiply the outer loop gain scaling factor by the outer loop proportional coefficient, the outer loop integral coefficient, and the outer loop derivative coefficient, respectively, to generate second outer loop proportional-integral-derivative control parameters. The first processing module is further configured to perform proportional-integral-derivative control on the lateral position error based on the second outer loop proportional-integral-derivative control parameters to generate the target heading angle.

[0124] In some implementations, the processor is further configured to multiply the outer-loop gain scaling factor by the outer-loop proportional coefficient, outer-loop integral coefficient, and outer-loop derivative coefficient, respectively, to generate second outer-loop proportional-integral-derivative control parameters. The processor is also configured to perform proportional-integral-derivative control on the lateral position error based on the second outer-loop proportional-integral-derivative control parameters to generate the target heading angle.

[0125] Specifically, the outer loop proportional coefficient can be understood as the reference control coefficient in the outer loop PID controller used to proportionally amplify the lateral position error and quickly respond to the current trajectory deviation. The magnitude of the value directly determines the response sensitivity and deviation correction strength of the outer loop control.

[0126] The outer loop integral coefficient can be understood as the benchmark control coefficient in the outer loop PID controller used to accumulate historical lateral position errors and gradually eliminate steady-state trajectory deviations, ensuring that the vehicle can eventually converge stably to the target driving trajectory.

[0127] The outer-loop differential coefficient can be understood as the benchmark control coefficient in the outer-loop PID controller, which is used to output the advance adjustment amount according to the changing trend of the lateral position error and suppress the overshoot oscillation phenomenon in the control process, thereby improving the stability of the lateral control process.

[0128] The second outer loop proportional-integral-derivative control parameters can be understood as the equivalent set of control parameters obtained after the original first outer loop proportional-integral-derivative control parameters have been scaled and corrected by the outer loop gain scaling factor. It includes three types of corrected proportional coefficients, integral coefficients, and derivative coefficients.

[0129] Proportional-integral-derivative (PI-DI) control can be understood as a classic closed-loop control algorithm. It adjusts the error signal by combining the three operations of proportional, integral, and derivative, so that the controlled variable can stably track the target value, while taking into account response speed, steady-state accuracy, and operational stability.

[0130] like Figure 2 and Figure 4 As shown, in the outer loop control loop for generating the target heading angle, the electronic equipment first acquires the pre-calibrated first outer loop proportional-integral-derivative control parameters. The first outer loop proportional-integral-derivative control parameters include three types of reference control coefficients: outer loop proportional coefficient, outer loop integral coefficient, and outer loop derivative coefficient.

[0131] Subsequently, the electronic device multiplies the outer loop gain scaling factor by the outer loop proportional coefficient, outer loop integral coefficient, and outer loop derivative coefficient one by one to complete the scaling correction of the three types of control parameters and generate the second outer loop proportional-integral-derivative control parameters.

[0132] The basic operational formula for proportional-integral-derivative control is:

[0133] in, For the output of the PID controller, This is the input error amount. , , These are the proportional, integral, and derivative control parameters, respectively.

[0134] Introducing an outer loop gain scaling factor After being applied to the control parameters, the corresponding calculation formula is:

[0135] Since the outer-loop gain scaling factor is decoupled from time, the above formula is mathematically equivalent to applying the scaling factor to the input error, thus forming an equivalent input quantity. By designing the scaling factor to vary with vehicle speed, a mathematical relationship can be established between the time-domain first derivative of the equivalent input and the target heading angle, thereby enabling the cascaded dual-loop control to satisfy the derivative matching characteristic.

[0136] After parameter scaling is completed, the electronic device uses the lateral position error as the outer loop control input and performs a complete proportional-integral-derivative control operation based on the second outer loop proportional-integral-derivative control parameters.

[0137] The proportional term outputs an adjustment amount synchronously according to the magnitude of the current lateral position error, quickly responding to the current trajectory deviation. The integral term accumulates historical lateral position errors, gradually eliminating steady-state trajectory deviation. The derivative term outputs an advance adjustment amount according to the rate of change of the lateral position error, suppressing overshoot and oscillation during the control process.

[0138] After the three types of adjustment quantities are superimposed and calculated, the target heading angle is finally generated and transmitted down to the inner loop control loop as the target input quantity of the inner loop.

[0139] Thus, in this embodiment, by applying the outer loop gain scaling factor to the three types of control parameters (proportional, integral, and derivative) of the outer loop respectively, equivalent second outer loop control parameters are generated before closed-loop calculation is performed. This achieves derivative matching and adaptive vehicle speed adjustment of the outer loop control. Compared to the fixed-parameter outer loop proportional-integral-derivative control scheme, parameter scaling ensures that the equivalent input of the lateral position error and the target heading angle satisfy the mathematical relationship of the first derivative in the time domain. This provides a clear theoretical basis for the control connection of the cascaded dual loops, improving the smoothness of lateral control to a certain extent, reducing overshoot oscillations and drifting phenomena at high speeds. Moreover, parameter scaling only requires simple multiplication operations, resulting in extremely low computational overhead. It fully retains the advantages of the proportional-integral-derivative control architecture—low cost and ease of implementation—making it convenient for rapid deployment and application on various advanced driver assistance system hardware platforms.

[0140] Please refer to the following: Figure 2 , Figure 5 and Figure 10 In some implementations, step 04 includes: 041: Multiply the inner loop gain scaling factor by the inner loop proportional coefficient, inner loop integral coefficient, and inner loop derivative coefficient respectively to generate the second inner loop proportional-integral-derivative control parameters; 042: Based on the second inner loop proportional-integral-derivative control parameters, proportional-integral-derivative control is applied to the heading angle error to generate the target front wheel steering angle.

[0141] In some embodiments, the second processing module is further configured to multiply the inner loop gain scaling factor by the inner loop proportional coefficient, the inner loop integral coefficient, and the inner loop derivative coefficient, respectively, to generate second inner loop proportional-integral-derivative control parameters. The second processing module is also configured to perform proportional-integral-derivative control on the heading angle error based on the second inner loop proportional-integral-derivative control parameters to generate the target nose wheel steering angle.

[0142] In some implementations, the processor is further configured to multiply the inner loop gain scaling factor by the inner loop proportional coefficient, the inner loop integral coefficient, and the inner loop derivative coefficient, respectively, to generate second inner loop proportional-integral-derivative control parameters. The processor is also configured to perform proportional-integral-derivative control on the heading angle error based on the second inner loop proportional-integral-derivative control parameters to generate the target front wheel steering angle.

[0143] Specifically, the inner loop proportional coefficient can be understood as the reference control coefficient in the inner loop PID controller used to proportionally amplify the heading angle error and quickly respond to the current heading deviation. The magnitude of the value directly determines the response sensitivity and angle deviation correction strength of the inner loop control.

[0144] The inner loop integral coefficient can be understood as the benchmark control coefficient in the inner loop PID controller used to accumulate historical heading angle errors and gradually eliminate steady-state heading deviations, ensuring that the vehicle can eventually converge stably to the target heading.

[0145] The inner loop differential coefficient can be understood as the reference control coefficient in the inner loop PID controller, which is used to output the advance adjustment amount according to the changing trend of the heading angle error and suppress the overshoot oscillation phenomenon in the control process, thereby improving the smoothness of the heading control process.

[0146] The second inner loop proportional-integral-derivative control parameters can be understood as the equivalent set of control parameters obtained after scaling and correcting the original first inner loop proportional-integral-derivative control parameters by the inner loop gain scaling factor, including the corrected proportional coefficient, integral coefficient, and derivative coefficient.

[0147] Proportional-integral-derivative (PI-DI) control can be understood as a classic closed-loop control algorithm. It adjusts the error signal by combining the three operations of proportional, integral, and derivative, so that the controlled variable can stably track the target value, while taking into account response speed, steady-state accuracy, and operational stability.

[0148] In the inner loop control loop for generating the target front wheel steering angle, the electronic equipment first acquires the pre-calibrated first inner loop proportional-integral-derivative control parameters, which include three types of reference control coefficients: inner loop proportional coefficient, inner loop integral coefficient, and inner loop derivative coefficient.

[0149] The electronic device will then calculate the obtained inner-loop gain scaling factor. The parameters are multiplied one by one with the inner loop proportional coefficient, inner loop integral coefficient, and inner loop derivative coefficient to complete the scaling correction of the three types of control parameters and generate the second inner loop proportional-integral-derivative control parameters.

[0150] The basic operational formula for proportional-integral-derivative control is:

[0151] in, For the output of the PID controller, This is the input error amount. , , These are the proportional, integral, and derivative control parameters, respectively.

[0152] Introducing an inner-loop gain scaling factor After being applied to the control parameters, the corresponding calculation formula is:

[0153] Since the inner-loop gain scaling factor is decoupled from time, the above operation is mathematically equivalent to applying the scaling factor to the input error, thus forming an equivalent input. By designing a scaling factor that combines the variation law of vehicle speed and vehicle physical characteristics, the time-domain first derivative of the equivalent input quantity can be made to form a corresponding mathematical relationship with the target front wheel steering angle, thereby enabling the inner loop control to meet the derivative matching characteristics.

[0154] After scaling the control parameters, the electronic equipment uses the heading angle error as the inner loop control input and performs a complete proportional-integral-derivative control operation based on the second inner loop proportional-integral-derivative control parameters.

[0155] The proportional term outputs an adjustment amount synchronously according to the magnitude of the current heading angle error, quickly responding to the current heading deviation. The integral term accumulates historical heading angle errors, gradually eliminating steady-state heading deviations. The derivative term outputs an advance adjustment amount according to the rate of change of the heading angle error, suppressing overshoot and oscillations during the control process.

[0156] After the above three types of adjustment values ​​are superimposed and calculated, the target front wheel angle is finally generated and transmitted down to the vehicle steering actuator to drive the steering action.

[0157] Thus, in this embodiment, by applying the inner loop gain scaling factor to the three types of control parameters (proportional, integral, and derivative) of the inner loop respectively, equivalent second inner loop proportional-integral-derivative control parameters are generated before closed-loop calculation is performed. This achieves derivative matching and adaptive vehicle speed adjustment of the inner loop control. Compared to the fixed-parameter inner loop proportional-integral-derivative control scheme, parameter scaling ensures that the equivalent input of the heading angle error and the target front wheel steering angle satisfy the mathematical relationship of the first derivative in the time domain. This provides a clear theoretical basis for the connection of the inner loop control in the cascaded dual-loop configuration, improving the smoothness from heading control to steering execution to a certain extent, reducing overshoot oscillations and dragging phenomena at high speeds. Furthermore, the inner loop scaling factor integrates the kinematic principal term and the dynamic sideslip correction term, which can approximate the true steering response scale across the entire speed domain, automatically compensating for control deviations caused by tire sideslip, and improving heading control accuracy under complex driving conditions to a certain extent.

[0158] Furthermore, parameter scaling can be achieved with simple multiplication operations, resulting in extremely low computational overhead. It fully retains the advantages of the proportional-integral-derivative control architecture, which is low-cost and easy to implement, making it convenient for rapid deployment and application on various advanced driver assistance system hardware platforms.

[0159] In some implementations, the ratio of the second outer loop proportional-integral-derivative control parameter to the second inner loop proportional-integral-derivative control parameter is greater than a preset value.

[0160] Specifically, the preset value can be understood as the gain ratio critical threshold set in advance according to the stability criterion of cascade control. It is used to constrain the relative magnitude of the equivalent gains of the inner and outer loops, ensure that the response speed of the inner loop is always faster than that of the outer loop, and maintain the hierarchical decoupling and stable operation of the cascade control. In relevant engineering applications, the preset value can be 3.

[0161] In practical applications, the stable operation of a cascade control system must follow the principle of bandwidth separation, that is, the response speed of the inner loop control loop must be faster than that of the outer loop control loop, so as to ensure that the target command output by the outer loop is quickly tracked and executed by the inner loop, thereby avoiding the problems of oscillation and divergence of the transverse control system caused by the mutual coupling of the inner and outer loop adjustment processes.

[0162] After introducing a gain scaling factor that dynamically changes with vehicle speed, the equivalent gains of the inner and outer loops will change in real time with the vehicle speed. Under low-speed conditions, the reciprocal term of the vehicle speed in the outer loop gain scaling factor and the principal kinematic term in the inner loop gain scaling factor will both increase as the vehicle speed decreases. If no constraints are imposed, the inner and outer loop gain ratios will easily become unbalanced, disrupting the hierarchical relationship of bandwidth separation, and leading to problems such as cascaded control instability and vehicle jitter.

[0163] Therefore, after generating the second outer loop proportional-integral-derivative control parameters and the second inner loop proportional-integral-derivative control parameters respectively, the electronic device needs to calculate the gain ratio of the above two types of equivalent control parameters in real time and ensure that the gain ratio is always greater than the preset value.

[0164] By constraining the ratio of the two types of control parameters by preset values, when the vehicle speed changes and the gain scaling factor changes, the ratio of the outer loop equivalent gain to the inner loop equivalent gain is always kept above the preset value. This maintains the hierarchical control relationship in which the inner loop response bandwidth is higher than that of the outer loop in the entire speed range, thus maintaining the cascade stability of the cascade control system.

[0165] For example, when the vehicle speed approaches zero in the low-speed range, the speed-related terms in the gain scaling factor are prone to gain divergence. At this time, the ratio constraint can lock the relative ratio of the equivalent gains of the inner and outer loops within a reasonable range. Combined with the low-speed gain limiting mechanism, this effectively avoids the jitter problem caused by the low-speed gain explosion, while ensuring that the inner and outer loop gain ratio is greater than the preset value, maintaining the bandwidth separation characteristics of the cascade control system, and ensuring the stable convergence of the cascade control.

[0166] Thus, in this embodiment, by limiting the ratio of the second outer loop proportional-integral-derivative (PI-DI) control parameter to the second inner loop PI-DI control parameter to be greater than a preset value, the gain ratio constraint and bandwidth separation guarantee of the cascade dual-loop system are achieved. Compared to cascade control schemes without gain ratio constraints, forcibly maintaining the hierarchical control relationship where the inner loop response is faster than the outer loop by a fixed ratio threshold effectively avoids the problems of inner and outer loop bandwidth coupling and cascade instability caused by gain scaling due to vehicle speed changes. To a certain extent, this improves the stability of the lateral control system across the entire speed range and reduces undesirable driving phenomena such as jitter and jerkiness. At the same time, by combining the ratio constraint with the gain scaling mechanism, the vehicle speed adaptive control advantage brought by the derivative matching design is retained, ensuring the stability margin of the cascade system. This effectively solves the problems of high-speed overshoot and jitter, and low-speed undershoot and poor following performance of dual-loop PI-DI control. While improving the smoothness of lateral control, it also enhances the robustness of the control system operation, enabling it to adapt to the lateral control requirements of intelligent driving at different vehicle speeds and optimizing the driving experience and driving safety.

[0167] Please refer to the following: Figure 2 , Figure 4 , Figure 5 , Figure 6 and Figure 7 The following uses the lateral control process of a certain intelligent driving vehicle as an example to explain the vehicle lateral control method of this application: The vehicle lateral control method in this application is based on a dual-loop cascade PID architecture. The goal is to achieve derivative matching between the inner and outer loops by introducing a gain scaling factor, thereby obtaining a stable and smooth lateral control effect across the entire speed domain.

[0168] like Figure 2 As shown, the electronic device calls the perception module to read the vehicle's fixed parameter file through visual sensors or vision-radar fusion, obtain the distance between the current vehicle position and the lane centerline, and collect the current vehicle speed information, as well as the vehicle's physical characteristic parameters such as the vehicle's total mass, front and rear wheelbase (the first distance from the front axle to the vehicle's center of gravity, the second distance from the rear axle to the vehicle's center of gravity, and the wheelbase), and the front and rear tire lateral stiffness (i.e., the lateral stiffness of the front wheel and the lateral stiffness of the rear wheel). All data is then transmitted to the outer loop PID module, i.e., the outer loop PID controller.

[0169] like Figure 6 As shown, before entering the outer loop control, the electronic device first establishes a vehicle coordinate system, with the center of the vehicle's rear axle as the origin O, the vehicle's orientation as the positive X-axis, and the left side of the vehicle as the positive Y-axis. In this coordinate system, the electronic device calculates the lateral distance from the center of the vehicle's rear axle O to the current lane centerline and defines this lateral distance as the lateral position error. Simultaneously, the perception module obtains the vehicle's current heading angle, which is the tangent of the angle between the vehicle's current heading and the center line of the current lane. In the aforementioned vehicle coordinate system, the actual heading angle is the slope of the lane centerline function at the origin. Therefore, the lateral position error... The first-order time-domain derivative satisfies the kinematic formula:

[0170] in, For the time-domain first derivative of the lateral position error, Current vehicle speed This is the tangent of the actual heading angle. This refers to the vehicle's lateral speed.

[0171] Subsequently, after entering the outer loop PID module, the electronic equipment first determines the corresponding basic gain parameters based on the current vehicle speed. For example... Figure 4 and Figure 5 As shown, the electronic device has multiple preset vehicle speed nodes pre-stored, such as 10km / h, 30km / h, 60km / h, 90km / h, and 120km / h.

[0172] Each preset speed node corresponds to a set of first outer ring ratios. integral Differential control parameters and the first inner loop ratio integral Differential control parameters, first outer loop proportional integral The differential control parameters include the outer loop proportional coefficient, outer loop integral coefficient, outer loop differential coefficient, and the first inner loop proportional coefficient. integral The differential control parameters include the inner loop proportional coefficient, the inner loop integral coefficient, and the inner loop differential coefficient.

[0173] The above proportional-integral-derivative control parameters can be calibrated during the vehicle's factory calibration phase after the vehicle speed has been stabilized at each fixed node.

[0174] During actual vehicle operation, after acquiring the current vehicle speed, the electronic equipment locates two adjacent preset speed nodes within the current speed range and uses linear interpolation to calculate the corresponding first outer ring ratio at the current speed. integral The differential control parameters are the outer loop proportional coefficient PGain, the outer loop integral coefficient IGain, and the outer loop differential coefficient DGain.

[0175] Understandably, the above linear interpolation method effectively simplifies the workload of parameter calibration, decouples vehicle speed from time, and provides the prerequisite for the subsequent mathematical derivation of the gain scaling factor.

[0176] Next, after obtaining the basic gain parameters, the electronic device calculates the outer loop gain scaling factor based on the current vehicle speed.

[0177] like Figure 6 As shown, the two curves are the center lines of the same lane segment at their respective times, and the change in their positional relationship is caused by the vehicle displacement within this minimum time. , Each is a pair of the same point at different times, where, and On the Y-axis of the vehicle body, for The angle between the tangent at the point and the X-axis. (From...) Figure 6 It can be seen that the lateral position error at the current moment for lateral position error at the previous moment for Therefore, at the minimum moment Inside, .

[0178] In a very short time Inside, It can be approximated as ,but . It is the distance the vehicle travels in the X direction, that is... , It is the distance the vehicle travels along the Y direction, that is... Substituting into the original expression, we get... That is, the time-domain first derivative formula of the above-mentioned lateral position error.

[0179] If we set the outer loop gain scaling factor Because the calibration process is performed at a fixed vehicle speed, If it can be considered as not changing with time, then the equivalent input of the outer loop is... The time-domain first derivative is:

[0180] Under normal driving conditions, the lateral speed of a vehicle is much less than its longitudinal speed, that is... Therefore, the time-domain first derivative of the equivalent input is approximately equal to the tangent of the heading angle, i.e. Therefore, the time-domain first derivative of the equivalent input of the outer loop is related to the tangent of the target heading angle. A correspondence is formed, realizing the derivative matching property of the outer loop.

[0181] The equivalent state quantity of the outer loop is determined by the lateral position error. Transform into This makes the time-domain first derivative of the lateral error approximately equal to the inner loop input. Meanwhile, the outer ring output naturally includes The term refers to the sideslip angle, which can achieve the effect of sideslip compensation.

[0182] Subsequently, as Figure 4 As shown, the electronic device multiplies the outer loop gain scaling factor by the outer loop proportional coefficient, outer loop integral coefficient, and outer loop derivative coefficient, respectively, to generate the second outer loop proportional-integral-derivative control parameters.

[0183] Subsequently, the lateral position error is used as the outer loop input, based on the second outer loop ratio. integral The derivative control parameters are used to perform PID calculations. The basic PID calculation formula is:

[0184] The outer loop calculation formula after introducing the outer loop gain scaling factor is:

[0185] Finally, the target heading angle is obtained by calculating the outer loop calculation formula based on the outer loop gain scaling factor, and then sent to the inner loop.

[0186] Subsequently, the first inner ring ratio corresponding to the current vehicle speed is obtained using the same linear interpolation method. integral The differential control parameters are the inner loop proportional coefficient PGain, the inner loop integral coefficient IGain, and the inner loop differential coefficient DGain.

[0187] The inner-loop gain scaling factor is obtained analytically through the simultaneous equations of bicycle kinematics and dynamics. The geometric relationship of the bicycle model is as follows: Figure 7 , Figure 7 Center axis distance First distance from front axle to center of gravity Second distance from rear axle to center of gravity Turning radius Front wheel steering angle Front wheel slip angle Rear wheel slip angle , and The subscripts indicate the front and rear wheels, respectively.

[0188] According to the bicycle kinematics model, the front wheel steering angle of the vehicle With wheelbase Turning radius and front wheel slip angle Rear wheel slip angle The relationship between them is:

[0189] According to the vehicle dynamics model, the front wheel slip angle Rear wheel slip angle The difference can be expressed as:

[0190] Substituting the above dynamic relationships into the bicycle kinematic model, we can obtain the front wheel steering angle. The complete expression:

[0191] The inner loop scaling factor needs to make the equivalent input of the inner loop equal to the wheel angle. Proportional within a very short time period, satisfying the derivative matching principle of cascade control, the basic construction form of the inner loop scaling factor can be deduced from this:

[0192] in, It has an extremely short control cycle.

[0193] To simplify the calculation, a small-angle approximation is made for the tangent of the heading angle, assuming that the tangent is approximately equal to the ratio of the vehicle's lateral velocity to its longitudinal velocity. .

[0194] Subsequently, combining the lateral acceleration relationship Relationship with centripetal acceleration By gradually substituting and deducing, we can obtain:

[0195] Combining the previous equations, we can obtain the inner loop gain scaling factor as follows:

[0196] in, For the overall vehicle quality, For the front wheel lateral stiffness, For rear wheel lateral stiffness, This represents the current vehicle speed.

[0197] The above formula for calculating the inner-loop gain scaling factor includes the kinematic principal term. With dynamic side slip correction term The two factors combined approximate the actual steering response scale across the entire speed range.

[0198] When only the inner loop gain scaling factor is considered, the kinematic principal term is... When making an approximation, the inner loop natural frequency Damping ratio Theoretically, it is independent of vehicle speed, achieving consistent dynamic characteristics across the entire speed range.

[0199] Subsequently, as Figure 5 As shown, after obtaining the inner loop gain scaling factor, the following steps are performed: Multiplying each of the inner loop proportionality coefficient, inner loop integral coefficient, and inner loop differential coefficient respectively yields the second inner loop proportionality coefficient. integral Differential control parameters.

[0200] Next, the inner loop PID module uses the heading angle error For input quantity, based on the ratio of the second inner loop. integral The inner-loop calculation formula after introducing the inner-loop gain scaling factor for the differential control parameters to perform PID calculation is as follows:

[0201] Finally, the target front wheel steering angle is calculated and output, and then sent to the vehicle steering actuator to drive the vehicle to steer.

[0202] Throughout the entire control operation, the electronic device also needs to maintain the ratio of the second outer loop. integral Differential control parameters and the second inner loop proportional integral The ratio of the differential control parameters is greater than a preset value to ensure bandwidth separation in the cascade system and maintain cascade stability. In some implementations, the preset value can be 3.

[0203] Due to the outer loop gain scaling factor With the inner loop gain scaling factor and the internal kinematic principal term At vehicle speed When the gain approaches 0, gain divergence will occur. It is necessary to set an upper limit on the equivalent gain of the inner and outer loops in the low-speed range to protect the equivalent gain at low speed, suppress the gain divergence phenomenon, and at the same time ensure that the inner and outer loop gain ratio is still greater than the preset value under low-speed conditions to avoid the problem of low-speed jitter.

[0204] This application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, it implements the methods of some of the above-described embodiments.

[0205] This application also provides a vehicle that includes electronic devices according to some of the above embodiments.

[0206] This application also provides a computer-readable storage medium storing a computer program that, when executed by one or more processors, implements the methods of some of the above-described embodiments.

[0207] This application also provides a computer program product, including a computer program / instructions that, when executed by a processor, implement the methods of some of the above-described embodiments.

[0208] It is understood that a computer program includes computer program code. Computer program code can be in the form of source code, object code, executable files, or some intermediate form. Computer-readable storage media can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), and software distribution media, etc.

[0209] In this specification, the terms "specifically," "furthermore," "particularly," "understandably," etc., refer to specific features, structures, materials, or characteristics described in connection with embodiments or examples that are included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0210] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of executable request code comprising one or more steps for implementing a particular logical function or process, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order according to the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.

[0211] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.

Claims

1. A vehicle lateral control method, characterized in that, The method includes: The vehicle's operating status parameters are obtained, including the vehicle's current speed, actual heading angle, and lateral position error. Based on the current vehicle speed, determine the outer loop gain scaling factor and the inner loop gain scaling factor; The target heading angle is generated based on the outer loop gain scaling factor, the first outer loop proportional-integral-derivative control parameters, and the lateral position error. The target front wheel steering angle is generated based on the inner loop gain scaling factor, the first inner loop proportional-integral-derivative control parameters, and the heading angle error, wherein the heading angle error is the difference between the target heading angle and the actual heading angle. The vehicle steering is controlled based on the target front wheel steering angle.

2. The method according to claim 1, characterized in that, The step of determining the outer loop gain scaling factor and the inner loop gain scaling factor based on the current vehicle speed includes: The outer loop gain scaling factor is determined based on the reciprocal of the current vehicle speed, wherein the outer loop gain scaling factor is used to make the time-domain first derivative of the equivalent input of the lateral position error correspond to the target heading angle; Based on the current vehicle speed and the vehicle's physical characteristic parameters, the inner loop gain scaling factor is determined. The physical characteristic parameters include wheelbase, vehicle mass, first distance from the front axle to the vehicle's center of gravity, second distance from the rear axle to the vehicle's center of gravity, front wheel lateral stiffness, and rear wheel lateral stiffness. The inner loop gain scaling factor is used to make the time-domain first derivative of the equivalent input of the heading angle error correspond to the target front wheel steering angle.

3. The method according to claim 2, characterized in that, The inner loop gain scaling factor is generated by adding the kinematic principal term and the dynamic side slip correction term; the kinematic principal term is the ratio of the wheelbase to the current vehicle speed; The dynamic lateral slip correction term is calculated and generated based on the vehicle's total mass, current speed, wheelbase, first distance, second distance, front wheel lateral slip stiffness, and rear wheel lateral slip stiffness.

4. The method according to claim 1, characterized in that, The method further includes: Obtain multiple preset vehicle speed nodes and proportional-integral-derivative control parameters corresponding to each vehicle speed node, wherein the proportional-integral-derivative control parameters include the first outer loop proportional-integral-derivative control parameters and the first inner loop proportional-integral-derivative control parameters; Based on the position of the current vehicle speed between two adjacent vehicle speed nodes, linear interpolation is performed on the first outer loop proportional-integral-derivative control parameters corresponding to the two adjacent vehicle speed nodes to generate the first outer loop proportional-integral-derivative control parameters corresponding to the current vehicle speed. Based on the position of the current vehicle speed between two adjacent vehicle speed nodes, linear interpolation is performed on the first inner loop proportional-integral-derivative control parameters corresponding to the two adjacent vehicle speed nodes to generate the first inner loop proportional-integral-derivative control parameters corresponding to the current vehicle speed.

5. The method according to claim 1, characterized in that, The step of generating the target heading angle based on the outer loop gain scaling factor, the first outer loop proportional-integral-derivative control parameters, and the lateral position error includes: The outer loop gain scaling factor is multiplied by the outer loop proportional coefficient, outer loop integral coefficient and outer loop derivative coefficient respectively to generate the second outer loop proportional-integral-derivative control parameters. The lateral position error is controlled proportionally, integrally, and derivatively based on the second outer loop proportional-integral-derivative control parameters to generate the target heading angle.

6. The method according to claim 5, characterized in that, The step of generating the target front wheel steering angle based on the inner loop gain scaling factor, the first inner loop proportional-integral-derivative control parameters, and the heading angle error includes: The inner loop gain scaling factor is multiplied by the inner loop proportional coefficient, the inner loop integral coefficient and the inner loop derivative coefficient respectively to generate the second inner loop proportional-integral-derivative control parameters. The heading angle error is controlled by proportional-integral-derivative (PI-D) based on the second inner loop proportional-integral-derivative (PI-D) control parameters to generate the target front wheel steering angle.

7. The method according to claim 6, characterized in that, The ratio of the second outer loop proportional-integral-derivative control parameter to the second inner loop proportional-integral-derivative control parameter is greater than a preset value.

8. An electronic device, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, it implements the method according to any one of claims 1-7.

9. A vehicle, characterized in that, The vehicle includes the electronic equipment as described in claim 8.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by one or more processors, implements the method of any one of claims 1-7.