Detailed Description
The application provides a method and a device for controlling yaw stability of an electric automobile, and aims to solve the technical problems that in the prior art, the efficiency and the accuracy are low in the optical fiber vibration alarm of an oil-gas pipeline.
Summary of the application
The steering stability during the driving operation of the automobile refers to the performance of the vehicle capable of traveling according to the operation intention of the driver without being disturbed by external factors. The evaluation of the vehicle steering stability relates to physical parameters, the evaluation of the steering stability at present mainly comprises a subjective evaluation method and an objective evaluation method, the subjective evaluation method is mainly evaluated through the driving feeling of a driver, and the subjective evaluation method cannot form a data system and cannot help engineers to develop a control system in the early stage. The objective evaluation method mainly selects parameters capable of representing the vehicle stability performance as a control object, wherein the vehicle yaw velocity is an important parameter for evaluating the vehicle stability, and the size of the vehicle mass center slip angle represents the vehicle track holding capacity. Therefore, the yaw velocity and the centroid slip angle are selected as evaluation indexes at present to design a yaw stability control algorithm of the vehicle.
Currently, for example, vehicle yaw stability control algorithms include various algorithms such as PID control, fuzzy control, and the like. However, the PID control is poor in robustness and sensitive to external disturbance, and a large amount of engineering experience is needed for determining the fuzzy control logic and the membership function. Therefore, most control algorithms in the vehicle yaw stability control algorithm in the prior art are low in robustness, need a large amount of engineering experience support, and are difficult to implement, so that the technical problem of poor vehicle yaw control stability exists.
In view of the above technical problems, the technical solution provided by the present application has the following general idea:
according to the technical scheme, an entire vehicle dynamic model of the electric vehicle is constructed, in the driving process, output results including a longitudinal vehicle speed and a front wheel corner are obtained according to steering wheel corners and pedal signal information input to the vehicle dynamic model by a driver, then an ideal yaw rate is obtained through calculation, a mass center side offset angle and an actual yaw rate of the vehicle are obtained, further errors of the actual yaw rate and the ideal yaw rate are obtained, the errors serve as control variables, the control variables are input into a sliding mode controller based on a sliding mode control algorithm, an additional yaw moment to be applied is obtained, the additional yaw moment is distributed to each wheel, and vehicle yaw stability is controlled.
Having described the basic principles of the present application, the technical solutions in the present application will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments of the present application, and the present application is not limited to the exemplary embodiments described herein. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application. It should be further noted that, for the convenience of description, only some but not all of the elements relevant to the present application are shown in the drawings.
Example one
As shown in fig. 1, the embodiment of the present application provides a yaw stability control method for an electric vehicle, which is applied to an electric vehicle having a wheel hub motor for each wheel. The electric automobile can include four wheels, but every wheel all can regard as the drive wheel, and single round, unipolar control, electric automobile does not have derailleur part, and the forward gear and the shelves of backing up of vehicle are realized by the just reversal of in-wheel motor. In this embodiment, the driving modes of the electric vehicle include four driving modes, including a front driving mode, a rear driving mode, a four driving mode and an AUTO mode, and a driver can freely switch the driving modes according to the driving condition requirements and personal preferences.
As shown in fig. 1, the method according to the embodiment of the present application includes:
s100: establishing a vehicle dynamic model;
specifically, a vehicle dynamic model is constructed according to the overall dimension, the model number, various power parameters and the like of the wheel, and the vehicle dynamic model is arranged into a vehicle dynamic model based on a sliding mode control algorithm in the construction process
Of a standard state spaceAnd (5) expressing.
In fact, the yaw stability control algorithm in the embodiment of the application adopts layered control, the upper layer control algorithm calculates the additional yaw moment through the difference between the ideal state parameters of the vehicle and the actual state parameters of the vehicle, and the lower layer control algorithm distributes the additional yaw moment obtained by the upper layer to the four wheels of the vehicle according to a certain target. The upper-layer control algorithm adopts a sliding mode control algorithm with better robustness to calculate. Based on a sliding mode control algorithm, there are
As shown in fig. 2, the sliding mode control algorithm in the embodiment of the present application includes a first stage and a second stage, where the first stage is a process in which the system state quantity approaches the sliding mode surface, and the second stage is a process in which the system state quantity slides on the sliding mode surface.
When the initial state of the system is not near the sliding mode surface, approach control is needed. After the system reaches the sliding mode surface, the sliding mode control enters the second-stage sliding mode motion, and the equivalent control is needed in the stage.
In the first stage of sliding mode control, namely the stage that the system approaches to the sliding mode surface, when the system is near the sliding mode surface, the system cannot approach to the sliding mode surface by any approach law at will, otherwise the system buffles up and down on the sliding mode surface, the approach quality can be optimized by the approach law which is reasonably designed, and the approach law mainly comprises a constant speed approach law, an exponential approach law, a power approach law and the like.
S200: inputting a steering wheel angle and a pedal signal into the vehicle dynamic model to obtain a first output result of the vehicle dynamic model, wherein the first output result comprises a longitudinal vehicle speed and a front wheel steering angle, and an ideal yaw rate is calculated by utilizing the longitudinal vehicle speed and the front wheel steering angle;
specifically, the steering wheel angle and the pedal signal are driving parameters input to a vehicle dynamic model by a driver according to a driving demand.
According to the steering wheel angle and pedal signal data, a vehicle dynamics model can calculate to obtain a first output result. The first output result includes longitudinal vehicle speed and front wheel steering angle data, and an ideal yaw rate is further calculated based on the longitudinal vehicle speed and the front wheel steering angle of the vehicle.
Step S200 in the method provided in the embodiment of the present application includes:
s210: establishing a simplified two-degree-of-freedom vehicle model;
s220: obtaining a dynamic differential equation of a two-degree-of-freedom reference model of the vehicle according to the simplified two-degree-of-freedom vehicle model, wherein the dynamic differential equation comprises a resultant force of lateral forces of front wheels and a resultant force of lateral forces of rear wheels;
s230: substituting relational expressions of the front wheel side deflection angle and the rear wheel side deflection angle into the kinetic differential equation to carry out formula conversion according to the calculation relations of the resultant force of the front wheel side force, the resultant force of the rear wheel side force and the front wheel side deflection angle and the rear wheel side deflection angle, and obtaining a centroid side deflection angle formula and a yaw rate formula;
s240: obtaining the setting requirements of an ideal yaw angular velocity and an ideal centroid side slip angle when the vehicle enters a steady state, and substituting the setting requirements of the ideal yaw angular velocity and the ideal centroid side slip angle into the centroid side slip angle formula and the yaw angular velocity formula for correction;
s250: and calculating the ideal yaw rate according to the longitudinal speed and the front wheel rotation angle based on the ideal yaw rate formula obtained after correction.
Fig. 3 shows a schematic diagram of a possible two-degree-of-freedom vehicle model coordinate system and parameters in an embodiment of the present application. Specifically, as shown in fig. 3, a vehicle stability control system is constructed based on the vehicle dynamics model described above, and a simplified two-degree-of-freedom vehicle model is constructed by lateral motion and yaw motion, so that the simplified two-degree-of-freedom vehicle model is obtained.
As shown in fig. 3, based on the simplified two-degree-of-freedom vehicle model, a dynamic differential equation of a vehicle linear two-degree-of-freedom reference model is obtained:
the dynamic differential equation comprises the resultant force of the lateral force of the front wheels and the resultant force of the lateral force of the rear wheels. Fyf=CfαfNamely the resultant force of the lateral force of the front wheel; fyr=CrαrI.e. the resultant of the lateral forces of the rear wheels.
Further, αfAnd alpharRepresenting the front and rear wheel side slip angles, respectively, as:
substituting a centroid slip angle calculation formula into a kinetic differential equation to obtain:
centroid slip angle
Namely, it is
The mass center slip angle formula and the yaw angle velocity formula can be obtained by arranging the above formulas:
wherein, when the vehicle enters a steady state, there are
Let the ideal yaw rate be omega
r_dThe ideal centroid slip angle is beta
dSubstituting into the yaw angular velocity formula and the centroid slip angle formula to obtain an ideal yaw angular velocity expression and an ideal centroid slip angle expression, wherein the ideal yaw angular velocity expression and the ideal centroid slip angle expression are as follows:
further, the vehicle stability factor is
The yaw velocity and the centroid slip angle of the vehicle have limit values in the actual driving process, and the limit values are as follows:
wherein a is the distance from the center of mass to the front axle, b is the distance from the center of mass to the rear axle, L is the distance from the front axle to the rear axle, m is the total vehicle mass, g is the gravitational acceleration, VxFor longitudinal vehicle speed, CrIs a rear wheel curve factor, mu is a road adhesion coefficient, betamaxIs the maximum centroid slip angle of omegarmaxThe maximum yaw rate.
According to the vehicle stability factor, the yaw velocity limit value and the centroid slip angle limit value expression, the ideal yaw velocity and the ideal centroid slip angle are corrected as follows:
the ideal yaw rate ωr_dAnd ideal centroid slip angle betadThere is a coupling relationship between them, as follows:
and obtaining the longitudinal speed and the front wheel angle according to the steering wheel angle and pedal signals input into the vehicle dynamics model based on the ideal yaw velocity formula obtained after correction, and further calculating to obtain the ideal yaw velocity.
S300: obtaining a mass center side slip angle and an actual yaw velocity, inputting an error between the actual yaw velocity and an ideal yaw velocity into a sliding mode controller by taking the error as a control variable and the mass center side slip angle, and obtaining an additional yaw moment to be applied;
specifically, based on the above-described ideal yaw rate and the calculated actual yaw rate, the error e between the actual yaw rate and the ideal yaw rate is ωr-ωr_dAs a control variable, an additional yaw moment Δ M to be applied is calculated based on a sliding mode control calculation method.
Step S300 in the method provided in the embodiment of the present application includes:
s310: obtaining a second output result of the vehicle dynamics model, wherein the second output result comprises a steering wheel angle, a longitudinal acceleration and a transverse acceleration;
s320: and calculating vehicle state parameters through a Kalman filter according to the steering wheel angle, the longitudinal acceleration and the transverse acceleration to obtain the centroid slip angle and the actual yaw angular velocity.
Specifically, a second output result of the vehicle dynamics model may be obtained based on the steering wheel angle and the pedal signal input to the vehicle by the driver, and the second output result may include the steering wheel angle, the longitudinal acceleration, and the lateral acceleration.
Based on the steering wheel angle, the longitudinal acceleration and the transverse acceleration, the vehicle state parameters are calculated according to the self-adaptive unscented Kalman filtering algorithm, and the mass center side slip angle and the actual yaw rate of the vehicle can be obtained.
Further, the error e ═ ω from the actual yaw rate and the ideal yaw rate is obtainedr-ωr_dAnd an additional yaw moment delta M applied to the vehicle during yaw stability control, and obtaining a two-degree-of-freedom dynamic model expression of the vehicle as follows:
according to the above e- ω
r-ω
r_dDefining the slip form plane s ═ e ═ ω
r-ω
r_dPreferably, the approach law is the equal velocity approach law
Obtaining:
the formula of the obtained additional yaw moment is as follows:
based on the additional yaw moment formula, in order to verify whether the system is stable after the additional yaw moment is applied, a Lyapunov method is used for carrying out stability analysis on the yaw stability algorithm, and the stability analysis is carried out according to the method
Obtaining:
therefore, the method comprises the following steps:
further, it is possible to obtain:
due to K
wr>0、k
wr>0、ε
wr> 0, therefore
The system is stable.
S400: and equally distributing the additional yaw moment to each wheel of the automobile to obtain an additional driving moment of each wheel, and controlling the yaw stability of the automobile.
Specifically, the electric vehicle to which the method provided in the embodiment of the present application is applied is preferably four-wheeled, and the additional yaw moment Δ M applied to the vehicle when yaw stability control is performed is distributed to four wheels, resulting in the additional yaw moment on the four wheels.
Specifically, in an upper-layer motion tracking control strategy of a sliding mode control algorithm, the total additional yaw moment delta M is averagely distributed to 4 wheels, and the wheels on the inner side of the steering wheel are positive driving moment with the magnitude of positive driving moment
The outside wheel of the steering is negative driving torque with the magnitude of
Fig. 4 shows a possible logic diagram of the method provided by the embodiment of the present application. As shown in fig. 4, after torque distribution is performed on the additional yaw moment, additional driving torques of the four wheels are obtained, and the total in-wheel motor torque is input to the input interface of the complete vehicle model CarSim and set.
In order to verify the stability of the yaw stability control method of the electric automobile in the actual driving working condition, the effectiveness of the yaw stability control method is verified by adopting the control algorithm simulation test working condition in the embodiment of the application.
Specifically, based on the whole distributed driving electric vehicle platform and the yaw stability control method provided by the embodiment of the application, simulation under a double-line-shifting working condition and a snake-shaped working condition is carried out through CarSim and Matlab/Simulink combined simulation, and a simulation result is analyzed. In the analysis process, the driving track, the mass center slip angle and the yaw velocity of the vehicle are mainly analyzed and used as evaluation parameters for controlling the yaw stability of the vehicle.
And verifying according to the double-shift-line working condition, wherein the verification condition is that the vehicle speed is 80km/h, the ground adhesion rate is 0.8, the input of the yaw rate controller is the steering wheel angle, the accelerator pedal opening, the vehicle speed (output by a whole vehicle dynamic model), the centroid yaw angle and the yaw rate (output by a Kalman filter), and the output of the controller is the torque of four hub motors of the vehicle.
Fig. 5 shows a time-dependent change in steering wheel angle with and without yaw stability control in the double shift line condition verification. Fig. 6 shows a graph of the centroid slip angle change with and without yaw stability control in the double-shift-line condition verification.
As shown in fig. 5, in the case of yaw stability control, the amplitude at the peak of the steering wheel angle is significantly smaller than that of the steering wheel angle without the control system, the amplitude is reduced by 37.5% at the maximum, and the workload of the driver is significantly reduced.
As shown in fig. 6, under the condition of yaw stability control, the amplitude of the centroid slip angle of the vehicle in the double-line moving condition is obviously reduced, and is reduced by 66.7% at the peak value of 4s, and the centroid slip angle of the vehicle is an important parameter for representing the track keeping capability of the vehicle, which indicates that the track keeping capability of the vehicle is greatly improved under the action of the control system. In fact, when the vehicle runs normally on a good road, the mass center slip angle of the vehicle cannot exceed 0.035rad for a common driver, otherwise the driver can be panic, and it can be seen that under the working condition, the mass center slip angle of the vehicle does not exceed 0.035rad with or without the action of a control system.
In the verification of the double-wire-moving working condition, the vehicle can complete the double-wire-moving working condition under the condition of control, but under the action of a control system, the track of the vehicle is obviously smooth, has no obvious vibration when swinging back to a running path, and has better path passing effect than the path passing effect without control. And under the action of the control system, the amplitude of the vehicle yaw velocity is obviously reduced, the maximum reduction is 46%, the vehicle yaw velocity is an important parameter for representing the vehicle stability, and the vehicle yaw stability is greatly improved under the active intervention of the vehicle stability control system.
In addition, under the condition that the yaw stability control system is arranged, the yaw stability control system can coordinate the moment borne by the driving wheels according to the running state of the vehicle, so that the vehicle is actively intervened, and the stability and the track keeping capacity of the vehicle are improved.
The embodiment of the application also verifies the effectiveness of the automobile yaw stability method under other extreme working conditions, including a double-line-shifting working condition of 120km/h of automobile speed and 0.8 of ground adhesion rate, a snake-shaped working condition of 80km/h of automobile speed and 0.8 of ground adhesion rate, and a snake-shaped working condition of 120km/h of automobile speed and 0.8 of ground adhesion rate.
In the verification under other above-mentioned extreme operating modes, all verified under the effect of the car yaw stability control method that this application provided, the extreme operating mode can be accomplished smoothly to the vehicle, and the orbit of traveling is slick and sly smooth and easy, there is not obvious shock when the pendulum returns the route of traveling, the steering wheel corner reduces by a wide margin, can effectively alleviate driver's work burden, and barycenter sideslip angle descends by a wide margin, the orbit holding capacity of vehicle obtains very big promotion, and all do not exceed 0.035rad, driver's driving experience has been promoted greatly, the decline of vehicle yaw angular velocity amplitude is obvious, vehicle stability promotes by a wide margin.
To sum up, the method provided by the embodiment of the application constructs a vehicle dynamic model according to vehicle parameters, selects a sliding mode control algorithm with better robustness, no need of a large amount of engineering experience and better adaptability, calculates an ideal yaw velocity according to a longitudinal vehicle speed and a front wheel steering angle, and finally calculates to obtain an additional yaw moment, so that the yaw stability of the vehicle can be effectively controlled, the operation stability of the vehicle is further improved, under any extreme driving condition, the vehicle can smoothly complete an extreme working condition, the driving track is smooth and smooth, no obvious shock is generated when the vehicle swings back to a driving path, the steering wheel turning angle is greatly reduced, the work burden of a driver can be effectively reduced, the mass center yaw angle is greatly reduced, the track holding capacity of the vehicle is greatly improved, the vehicle does not exceed 0.035rad, the experience driving of the driver is greatly improved, and the yaw velocity amplitude of the vehicle is obviously reduced, the stability of the vehicle is greatly improved. Promote the vehicle and reach and promote car yaw control stability, promote the technical effect that vehicle driving experienced stability.
Example two
Based on the same inventive concept as the electric vehicle yaw stability control method in the foregoing embodiment, as shown in fig. 7, the present application provides an electric vehicle yaw stability control apparatus, wherein the apparatus comprises:
afirst building unit 11, saidfirst building unit 11 being adapted to build a vehicle dynamics model;
afirst processing unit 12, where thefirst processing unit 12 is configured to input a steering wheel angle and a pedal signal into the vehicle dynamics model, obtain a first output result of the vehicle dynamics model, where the first output result includes a longitudinal vehicle speed and a front wheel steering angle, and calculate an ideal yaw rate by using the longitudinal vehicle speed and the front wheel steering angle;
thesecond processing unit 13 is used for obtaining a centroid side slip angle and an actual yaw rate, inputting an error between the actual yaw rate and an ideal yaw rate into the sliding mode controller as a control variable and the centroid side slip angle, and obtaining an additional yaw moment to be applied;
and a first executingunit 14, wherein the first executingunit 14 is used for equally distributing the additional yaw moment to each wheel of the automobile, obtaining the additional driving moment of each wheel and controlling the yaw stability of the automobile.
Further, the apparatus further comprises:
a first obtaining unit configured to obtain a second output result of the vehicle dynamics model, the second output result including a steering wheel angle, a longitudinal acceleration, and a lateral acceleration;
and the third processing unit is used for calculating vehicle state parameters through a Kalman filter according to the steering wheel angle, the longitudinal acceleration and the transverse acceleration to obtain the mass center slip angle and the actual yaw velocity.
Further, the apparatus further comprises:
a second construction unit for building a simplified two degree of freedom vehicle model;
the second obtaining unit is used for obtaining a dynamic differential equation of a two-degree-of-freedom reference model of the vehicle according to the simplified two-degree-of-freedom vehicle model, wherein the dynamic differential equation comprises a resultant force of lateral forces of front wheels and a resultant force of lateral forces of rear wheels;
the fourth processing unit is used for substituting relational expressions of the front wheel side deflection angle and the rear wheel side deflection angle into the dynamic differential equation to carry out formula conversion according to the calculation relationship of the resultant force of the front wheel side forces, the resultant force of the rear wheel side forces and the front wheel side deflection angle and the rear wheel side deflection angle so as to obtain a centroid side deflection angle formula and a yaw rate formula;
the fifth processing unit is used for obtaining setting requirements of an ideal yaw rate and an ideal centroid slip angle when the vehicle enters a steady state, and substituting the setting requirements of the ideal yaw rate and the ideal centroid slip angle into the centroid slip angle formula and the yaw rate formula for correction;
and the sixth processing unit is used for calculating the ideal yaw rate according to the longitudinal vehicle speed and the front wheel rotation angle based on the ideal yaw rate formula obtained after the correction.
EXAMPLE III
Based on the same inventive concept as the electric vehicle yaw stability control method in the previous embodiment, the present application also provides a computer readable storage medium having a computer program stored thereon, which when executed by a processor implements the method as in the first embodiment.
Although the present application has been described in conjunction with specific features and embodiments thereof, it will be evident that various modifications and combinations can be made thereto without departing from the spirit and scope of the application. Accordingly, the specification and figures are merely exemplary of the application and are intended to cover any and all modifications, variations, combinations, or equivalents within the scope of the application. It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the present application and its equivalent technology, the present application is intended to include such modifications and variations. While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.