Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides a method and a device for controlling the driving mode of an electric vehicle.
The embodiment of the invention provides a method for controlling a driving mode of an electric automobile, which comprises the following steps:
acquiring the opening degree of an accelerator pedal of a user vehicle, acquiring vehicle data of the user vehicle, and calculating the theoretical speed of the user vehicle according to the opening degree of the accelerator pedal and the vehicle data;
obtaining the current speed of the user vehicle, and comparing the theoretical speed with the current speed;
when the theoretical vehicle speed is different from the current vehicle speed, adjusting the motor torque of the user vehicle according to a comparison result to enable the theoretical vehicle speed to be consistent with the current vehicle speed;
detecting whether the adjusted vehicle speed is greater than a preset vehicle speed threshold value;
and when the adjusted vehicle speed is greater than the preset vehicle speed threshold, adjusting the adjusted vehicle speed to keep the vehicle speed of the user vehicle at the preset vehicle speed threshold.
In one embodiment, the method further comprises:
calculating the speed difference between the theoretical vehicle speed and the current vehicle speed, and obtaining a corresponding torque difference according to the speed difference;
when the theoretical vehicle speed is greater than the current vehicle speed, requesting a motor driving torque of the user vehicle, wherein the driving torque is equal to the torque difference;
and when the theoretical vehicle speed is less than the current vehicle speed, requesting a motor of the user vehicle to feed back torque, wherein the feed back torque is equal to the torque difference.
In one embodiment, the method further comprises:
calculating to obtain theoretical request torque according to the opening degree of the accelerator pedal, and calculating running resistance torque of the user vehicle according to the current vehicle speed and vehicle parameters, wherein the vehicle data comprises the current vehicle speed and the vehicle parameters;
and calculating to obtain theoretical actual torque according to the theoretical request torque and the running resistance torque, and converting to obtain a corresponding theoretical vehicle speed according to the theoretical actual torque.
In one embodiment, the vehicle parameters include:
the overall vehicle service quality, the axle length and the tire radius of the user vehicle.
In one embodiment, the method further comprises:
when the opening degree of a brake pedal of the user vehicle is detected to be not 0, acquiring a deceleration torque corresponding to the opening degree of the brake pedal;
requesting a motor feedback torque of the user vehicle according to the deceleration torque, wherein the feedback torque is equal to the deceleration torque.
In one embodiment, the method further comprises:
and when the brake pedal of the user vehicle reaches a preset opening degree, adjusting the motor torque to be 0.
The embodiment of the invention provides a control device for a driving mode of an electric automobile, which comprises:
the acquisition module is used for acquiring the opening of an accelerator pedal of a user vehicle, acquiring vehicle data of the user vehicle and calculating the theoretical speed of the user vehicle according to the opening of the accelerator pedal and the vehicle data;
the comparison module is used for acquiring the current speed of the user vehicle and comparing the theoretical speed with the current speed;
the first adjusting module is used for adjusting the motor torque of the user vehicle according to a comparison result when the theoretical vehicle speed is different from the current vehicle speed, so that the theoretical vehicle speed is consistent with the current vehicle speed;
the detection module is used for detecting whether the adjusted vehicle speed is greater than a preset vehicle speed threshold value;
and the second adjusting module is used for adjusting the adjusted vehicle speed when the adjusted vehicle speed is greater than the preset vehicle speed threshold value, so that the vehicle speed of the user vehicle is kept at the preset vehicle speed threshold value.
In one embodiment, the apparatus further comprises:
the calculation module is used for calculating the speed difference between the theoretical vehicle speed and the current vehicle speed and obtaining a corresponding torque difference according to the speed difference;
the first request module is used for requesting motor driving torque of the user vehicle when the theoretical vehicle speed is larger than the current vehicle speed, and the driving torque is equal to the torque difference;
and the second request module is used for requesting the motor of the user vehicle to feed back torque when the theoretical vehicle speed is less than the current vehicle speed, wherein the feed back torque is equal to the torque difference.
The embodiment of the invention provides electronic equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the program to realize the steps of the electric automobile driving mode control method.
An embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the above-mentioned electric vehicle driving mode control method.
The method and the device for controlling the driving mode of the electric automobile, provided by the embodiment of the invention, are used for acquiring the opening degree of an accelerator pedal of a user vehicle, acquiring vehicle data of the user vehicle, and calculating the theoretical speed of the user vehicle according to the opening degree of the accelerator pedal and the vehicle data; acquiring the current speed of a user vehicle, and comparing the theoretical speed with the current speed; when the theoretical vehicle speed is different from the current vehicle speed, adjusting the motor torque of the user vehicle according to the comparison result to enable the theoretical vehicle speed to be consistent with the current vehicle speed; detecting whether the adjusted vehicle speed is greater than a preset vehicle speed threshold value; and when the adjusted vehicle speed is greater than the preset vehicle speed threshold, adjusting the adjusted vehicle speed to keep the vehicle speed of the user vehicle at the preset vehicle speed threshold. Therefore, the convenient driving mode control method can be provided, so that a user can operate and drive the high-performance electric automobile more simply and safely.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow chart of a method for controlling a driving mode of an electric vehicle according to an embodiment of the present invention, and as shown in fig. 1, the embodiment of the present invention provides a method for controlling a driving mode of an electric vehicle, including:
step S101, obtaining the opening degree of an accelerator pedal of a user vehicle, obtaining vehicle data of the user vehicle, and calculating the theoretical speed of the user vehicle according to the opening degree of the accelerator pedal and the vehicle data.
Specifically, the accelerator pedal opening of the user vehicle, that is, the stepping depth of the accelerator pedal by the driver of the user vehicle, which may represent data that the driver wants to adjust, is obtained, and then the theoretical vehicle speed of the user vehicle is calculated according to the vehicle data of the accelerator pedal opening, where the calculation may include: the theoretical request torque is obtained through calculation according to the opening degree of an accelerator pedal, namely the vehicle speed theoretically requested by a driver, then the running resistance torque of the user vehicle is calculated according to the current vehicle speed and vehicle parameters, the vehicle data comprise the current vehicle speed and vehicle parameters of the user vehicle, the vehicle parameters can comprise the finished vehicle finishing quality, the axle length and the tire radius of the user vehicle, and the theoretical vehicle speed is obtained through subtracting the current running resistance torque from the theoretical request torque of an automobile dynamics equation.
And S102, acquiring the current vehicle speed of the user vehicle, and comparing the theoretical vehicle speed with the current vehicle speed.
Specifically, the current vehicle speed of the vehicle of the user is obtained, the calculated theoretical vehicle speed corresponding to the opening degree of the accelerator pedal is compared with the current vehicle speed, and whether the current vehicle speed reaches the theoretical vehicle speed expected by the driver or not is judged.
And S103, when the theoretical vehicle speed is different from the current vehicle speed, adjusting the motor torque of the user vehicle according to a comparison result to enable the theoretical vehicle speed to be consistent with the current vehicle speed.
Specifically, when the theoretical vehicle speed is different from the current vehicle speed, the current vehicle speed of the user vehicle needs to be adjusted, the specific adjustment object is the motor torque of the user vehicle, and after the motor torque is adjusted, the theoretical vehicle speed is made to be consistent with the current vehicle speed, and the adjusting step may include: calculating the speed difference between the theoretical vehicle speed and the current vehicle speed, obtaining the torque difference of a corresponding motor according to the speed difference, and when the theoretical vehicle speed is greater than the current vehicle speed and acceleration is needed, requesting the motor driving torque of a user vehicle, wherein the driving torque is equal to the torque difference; when the theoretical vehicle speed is less than the current vehicle speed, the vehicle needs to be decelerated, the feedback torque of the motor of the vehicle of the user is requested, and the feedback torque is equal to the torque difference, and the specific steps can include: if the theoretical speed is higher than the current speed, the vehicle enters an acceleration mode and requests a motor to drive torque, and the torque is obtained according to an accelerator pedal and the current speed; if the theoretical speed is lower than the current speed, the vehicle enters a deceleration mode, the theoretical accelerator opening under the current speed is obtained according to an automobile dynamic equation, the target deceleration under the theoretical accelerator opening is calculated, the current target brake feedback torque of the vehicle is calculated according to the target deceleration, and finally the feedback torque is requested to a motor to enable the vehicle to decelerate.
And step S104, detecting whether the adjusted vehicle speed is greater than a preset vehicle speed threshold value.
Specifically, whether the adjusted vehicle speed of the user vehicle is greater than a preset vehicle speed threshold is detected, wherein the preset vehicle speed threshold is the highest value of the vehicle speed of the user vehicle and is under safety consideration for the user vehicle, and the preset vehicle speed threshold can be generally set to 50km/h.
And step S105, when the adjusted vehicle speed is greater than the preset vehicle speed threshold value, adjusting the adjusted vehicle speed to keep the vehicle speed of the user vehicle at the preset vehicle speed threshold value.
Specifically, when the adjusted vehicle speed is greater than the preset vehicle speed threshold, which indicates that the vehicle speed of the user vehicle exceeds the maximum speed value, the vehicle speed is adjusted, so that the vehicle speed of the user vehicle is maintained at the preset vehicle speed threshold, and the specific adjustment method is that the motor torque is adjusted to 0, and after the vehicle speed of the user vehicle is detected to reach the preset vehicle speed threshold, the motor torque is restored to the motor torque corresponding to the preset vehicle speed threshold.
The embodiment of the invention provides a control method of an electric automobile driving mode, which comprises the steps of obtaining the opening degree of an accelerator pedal of a user vehicle, obtaining vehicle data of the user vehicle, and calculating the theoretical speed of the user vehicle according to the opening degree of the accelerator pedal and the vehicle data; acquiring the current speed of a user vehicle, and comparing the theoretical speed with the current speed; when the theoretical vehicle speed is different from the current vehicle speed, adjusting the motor torque of the user vehicle according to the comparison result to enable the theoretical vehicle speed to be consistent with the current vehicle speed; detecting whether the adjusted vehicle speed is greater than a preset vehicle speed threshold value; and when the adjusted vehicle speed is greater than the preset vehicle speed threshold, adjusting the adjusted vehicle speed to keep the vehicle speed of the user vehicle at the preset vehicle speed threshold. Therefore, the convenient driving mode control method can be provided, so that a user can operate and drive the high-performance electric automobile more simply and safely.
On the basis of the above embodiment, the method for controlling the driving mode of the electric vehicle further includes:
when the opening degree of a brake pedal of the user vehicle is detected to be not 0, acquiring a deceleration torque corresponding to the opening degree of the brake pedal;
and requesting motor feedback torque of the user vehicle according to the deceleration torque, wherein the feedback torque is equal to the deceleration torque.
In the embodiment of the invention, when the opening of the brake pedal of the user vehicle is detected to be not 0, which indicates that the driver of the user vehicle presses the brake pedal, the corresponding deceleration torque is obtained according to the opening of the brake pedal, and then the vehicle is decelerated according to the deceleration torque, namely, the feedback torque of the motor of the user vehicle is requested, wherein the feedback torque is equal to the deceleration torque.
In addition, when the brake pedal of the vehicle of the user is detected to reach a preset opening degree, wherein the preset opening degree is a preset larger brake pedal angle, and when the driver steps down, the driver wants to stop the vehicle, the motor torque is adjusted to 0, so that the vehicle of the user stops.
According to the embodiment of the invention, the user vehicle can be ensured to be conveniently driven according to the opening degree of the accelerator pedal during normal driving, and can be conveniently decelerated according to the opening degree of the brake pedal when the vehicle needs to be decelerated.
Fig. 2 is a driving mode control device for an electric vehicle according to an embodiment of the present invention, including: an obtaining module 201, a comparing module 202, a first adjusting module 203, a detecting module 204 and a second adjusting module 205, wherein:
the obtaining module 201 is configured to obtain an accelerator pedal opening of a user vehicle, obtain vehicle data of the user vehicle, and calculate a theoretical vehicle speed of the user vehicle according to the accelerator pedal opening and the vehicle data.
And the comparison module 202 is used for acquiring the current vehicle speed of the user vehicle and comparing the theoretical vehicle speed with the current vehicle speed.
And the first adjusting module 203 is used for adjusting the motor torque of the user vehicle according to a comparison result when the theoretical vehicle speed is different from the current vehicle speed, so that the theoretical vehicle speed is consistent with the current vehicle speed.
The detecting module 204 is configured to detect whether the adjusted vehicle speed is greater than a preset vehicle speed threshold.
And the second adjusting module 205 is configured to adjust the adjusted vehicle speed when the adjusted vehicle speed is greater than the preset vehicle speed threshold, so that the vehicle speed of the user vehicle is maintained at the preset vehicle speed threshold.
In one embodiment, the apparatus may further comprise:
and the calculation module is used for calculating the speed difference between the theoretical vehicle speed and the current vehicle speed and obtaining the corresponding torque difference according to the speed difference.
The first request module is used for requesting motor driving torque of the user vehicle when the theoretical vehicle speed is larger than the current vehicle speed, and the driving torque is equal to the torque difference.
And the second request module is used for requesting the motor of the user vehicle to feed back torque when the theoretical vehicle speed is less than the current vehicle speed, wherein the feed back torque is equal to the torque difference.
In one embodiment, the apparatus may further comprise:
and the second calculation module is used for calculating theoretical request torque according to the opening degree of the accelerator pedal and calculating the running resistance torque of the user vehicle according to the current vehicle speed and vehicle parameters, and the vehicle data comprises the current vehicle speed and the vehicle parameters.
And the third calculation module is used for calculating theoretical actual torque according to the theoretical request torque and the running resistance torque, and converting the theoretical actual torque to obtain a corresponding theoretical vehicle speed.
In one embodiment, the apparatus may further comprise:
and the second acquisition module is used for acquiring the deceleration torque corresponding to the opening degree of the brake pedal when the opening degree of the brake pedal of the user vehicle is not detected to be 0.
A third request module for requesting a motor feedback torque of the user vehicle based on the deceleration torque, the feedback torque being equal to the deceleration torque.
In one embodiment, the apparatus may further comprise:
and the second detection module is used for adjusting the motor torque to 0 when detecting that the brake pedal of the user vehicle reaches a preset opening degree.
For specific limitations of the electric vehicle driving mode control device, reference may be made to the above limitations of the electric vehicle driving mode control method, which are not described herein again. All or part of the modules in the pure electric vehicle driving mode control device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Fig. 3 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 3: a processor (processor) 301, a memory (memory) 302, a communication Interface (Communications Interface) 303 and a communication bus 304, wherein the processor 301, the memory 302 and the communication Interface 303 are configured to communicate with each other via the communication bus 304. The processor 301 may call logic instructions in the memory 302 to perform the following method: acquiring the opening degree of an accelerator pedal of a user vehicle, acquiring vehicle data of the user vehicle, and calculating the theoretical speed of the user vehicle according to the opening degree of the accelerator pedal and the vehicle data; acquiring the current speed of a user vehicle, and comparing the theoretical speed with the current speed; when the theoretical vehicle speed is different from the current vehicle speed, adjusting the motor torque of the user vehicle according to the comparison result to enable the theoretical vehicle speed to be consistent with the current vehicle speed; detecting whether the adjusted vehicle speed is greater than a preset vehicle speed threshold value; and when the adjusted vehicle speed is greater than the preset vehicle speed threshold value, adjusting the adjusted vehicle speed to keep the vehicle speed of the user vehicle at the preset vehicle speed threshold value.
Furthermore, the logic instructions in the memory 302 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented to perform the transmission method provided in the foregoing embodiments when executed by a processor, and for example, the method includes: acquiring the opening degree of an accelerator pedal of a user vehicle, acquiring vehicle data of the user vehicle, and calculating the theoretical vehicle speed of the user vehicle according to the opening degree of the accelerator pedal and the vehicle data; acquiring the current speed of a user vehicle, and comparing the theoretical speed with the current speed; when the theoretical vehicle speed is different from the current vehicle speed, adjusting the motor torque of the user vehicle according to the comparison result to enable the theoretical vehicle speed to be consistent with the current vehicle speed; detecting whether the adjusted vehicle speed is greater than a preset vehicle speed threshold value; and when the adjusted vehicle speed is greater than the preset vehicle speed threshold value, adjusting the adjusted vehicle speed to keep the vehicle speed of the user vehicle at the preset vehicle speed threshold value.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. Based on the understanding, the above technical solutions substantially or otherwise contributing to the prior art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.