Smooth control method and device for accelerator torque and creep torque of vehicle and storage medium
By calculating the torque difference between the throttle and creep PID control modules, the drive mode is automatically selected, and the I integral torque is used to solve the problem of torque delay when switching vehicle modes, achieving smooth torque switching and improved response speed, avoiding vehicle frustration. and motor failure.
Patent Information
- Application Number
- CN202410541886.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-30
- Publication Date
- 2024-08-23
AI Technical Summary
In the existing technology, when the vehicle mode is switched, there is a large delay in the response of the accelerator torque and creep torque, causing the vehicle to falter and lag.
By calculating the torque difference between the P term and the I term of the throttle and creep PID control module, the drive mode is automatically selected, and the I term integral torque is used as a real-time sharing basis to ensure smooth torque switching and limit or remove the impact of the brake pedal opening on creep. The I item of the PID outputs torque to avoid motor stalling and overheating.
It achieves smooth control of torque when switching vehicle modes, improves response speed and robustness, avoids torque jumps and motor failures, and improves driving comfort and system adaptability.
Smart Images

Figure CN118529050A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of vehicle driving torque control, and specifically relates to a vehicle throttle torque and creep torque smoothing control method. Background Art
[0002] When the vehicle suddenly accelerates during creeping, or when the vehicle enters creeping mode from high-speed gliding, there will be a sudden change in torque. When the mode is switched, the throttle torque and creeping torque will have different degrees of step changes.
[0003] In some existing technologies, the corresponding torque is calculated according to the activated functional module, and then the torque step is limited when the functional module is switched, and the rate of torque mutation is limited based on time. However, during the implementation of this method, there will still be a large time delay in the torque response between mode switching, resulting in different degrees of frustration and hysteresis in the vehicle. Summary of the invention
[0004] The technical problem to be solved by the present invention application is to provide a control method for smoothing throttle torque and creep torque to improve the smoothness and response speed of the driving torque when the vehicle mode is switched at low speed.
[0005] The present invention relates to a vehicle throttle torque and creep torque smoothing control method, comprising the following steps:
[0006] Step S1: according to the throttle demand torque T req The current integrated torque T IGain The difference between the throttle PID control module P torque T is calculated. PPGain 、Throttle PID control module I comprehensive torque T PIGain and combined torque;
[0007] Step S2, calculate the P-term torque T of the creep PID control module according to the difference between the target speed and the current speed CPGain 、The I-term integrated torque T of the creep PID control module CIGain and combined torque;
[0008] Step S3, according to the comparison result of the P-term torque of the throttle PID and the P-term torque of the creep PID, the I-term comprehensive torque corresponding to the P-term with a larger value is fed back as the final I-term comprehensive torque TIGain;
[0009] Step S4: Select the driving mode according to the comparison result of the P-term torque of the throttle PID and the P-term torque of the creep PID. PPGain >T CPGain, then enter the throttle drive mode, otherwise enter the creep drive mode; and determine the comprehensive item torque GovTorque corresponding to the larger P item as the final total drive torque, where T PPGain It represents the P output torque of the throttle PID control module, T CPGain Represents the P-term output torque of the creep PID control module.
[0010] Furthermore, the specific method of step S1 is:
[0011] The throttle torque required is T req , the current I-term comprehensive torque T IGain ; According to the throttle demand torque T req The combined torque T of the current I IGain The difference is calculated as:
[0012] ΔT=T req -T IGain
[0013] Furthermore, the I-term coefficient torque of the throttle PID plus the current I-term comprehensive torque T IGain As the I-term comprehensive torque of the throttle PID control module, the calculation method is:
[0014] T PIGain =ΔT*K ip +T IGain
[0015] Among them, K ip is the I coefficient of the throttle PID control module, T PIGain It is the I-term comprehensive torque of the throttle PID control module.
[0016] Furthermore, the specific method of step S2 is: the target speed of the creeping function is n tgt , the current motor speed is n crt ; According to the target speed n tgt With the current speed n crt The difference between the P term, I term and comprehensive torque of the creep PID control module is calculated by:
[0017] Δn=n tgt -n crt
[0018] The I coefficient torque of the creep PID control module plus the current I comprehensive torque T IGain As the I-term comprehensive torque of the creep PID control module, the calculation method is:
[0019] T CIGain =Δn*K ic +T IGain
[0020] Among them, K iC is the I-term coefficient of the creep PID control module, and T CIGain is the comprehensive torque of the I-term of the creep PID control module.
[0021] Furthermore, before calculating the P-term torque T CPGain of the creep PID control module, the comprehensive torque T CIGain of the I-term of the creep PID control module, and the comprehensive torque according to the difference between the target speed and the current speed in step S2, it also includes:
[0022] Step S21, determine whether the motor speed is within the range of [n1, n2] near 0. When the motor speed is near 0, execute step S22; otherwise, execute step S23;
[0023] Step S22, considering that within the range of [n1, n2] near 0 of the motor speed, the motor may have faults such as stalling and overheating when outputting large torque. Therefore, in this case, the input current speed value of the creep PID is set to the preset value n c , where n c is equal to n tgt ;
[0024] Step S23, when the actual motor speed is not within the range of [n1, n2] near 0, the motor will not stall, so there is no need to consider setting the input speed of the creep PID, and the actual speed value of the current motor is used for calculation; the current speed value of the creep PID control module is the actual value of the motor speed;
[0025] Step S24, determine whether the brake pedal is depressed; if the brake pedal opening is greater than b0, execute step S25;
[0026] If the brake pedal opening is less than b1 (b1 < b0), execute step S26;
[0027] Step S25, if the brake pedal opening is greater than b0, considering that the driver has a braking requirement, b0 is considered to be greater than 12%; at this time, the maximum limit of the I-term output torque of the creep PID is degraded to prevent the I-term torque integration of the creep PID from being too large when the vehicle is stationary, and after releasing the brake, the torque fluctuates greatly, reducing the driving comfort;
[0028] Step S26, if the brake pedal opening is less than b1, considering that the driver is gradually releasing the brake, b1 is considered to be less than 5%; at this time, the maximum limit degradation of the I-term output torque of the creep PID control module is released to quickly match the driver's driving intention.
[0029] Furthermore, the method for selecting the driving mode in step S4 is:
[0030] If the throttle torque requirement increases, the P torque value of the throttle PID rises rapidly. PPGain >T CPGain , enters throttle drive mode.
[0031] If the throttle demand torque is reduced, but the vehicle speed is still high, the P-term output torque of the throttle PID control module is still greater than the P-term output torque of the creep PID control module, that is, T PPGain >T CPGain , the torque output is the comprehensive torque of the throttle PID, which is in throttle drive mode.
[0032] When the accelerator is released, the throttle torque decreases, and the vehicle speed continues to decrease to the target speed of the creep mode, the P-term output torque of the throttle PID control module is still less than the P-term output torque of the creep PID control module, that is, T PPGain <T CPGain , the torque output is the comprehensive torque of the creep PID control module, which is in creep drive mode.
[0033] As another aspect of the present invention, it also relates to a vehicle throttle torque and creep torque smoothing control device, including a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the vehicle throttle torque and creep torque smoothing control method as described in any one of claims 1 to 5 is implemented.
[0034] As another aspect of the present invention, it also relates to a computer storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned vehicle throttle torque and creep torque smoothing control method is implemented.
[0035] As another aspect of the present invention, it also relates to a vehicle, which includes the above-mentioned vehicle equipped with the above-mentioned vehicle throttle torque and creep torque smoothing control device.
[0036] Compared with the prior art, the present invention has the following effects:
[0037] (1) The vehicle throttle torque and creep torque smoothing control method of the present invention uses the I-term integral torque TIGain of the PID control module as the real-time shared I-term torque basis (i.e., the value output by step S3). Under different driving modes, the I-term torque can always be kept involved in the calculation, and there will be no torque jump when the driving mode is switched, thereby achieving the purpose of torque smoothing control while starting the mode switch.
[0038] (2) The vehicle throttle torque and creep torque smoothing control method of the present invention enhances the robustness of PID control under special working conditions and improves the practicality and adaptability of the control system through targeted processing of input quantity and control quantity.
[0039] (3) The vehicle throttle torque and creep torque smoothing control method of the present invention automatically switches the driving mode by comparing the P-term torque of the throttle and creep PIDs through P-term torque judgment, and automatically selects the corresponding driving mode (throttle or creep), thereby achieving automatic and smooth mode switching.
[0040] (4) The vehicle throttle torque and creep torque smoothing control method of the present invention limits or releases the limit on the I-term output torque of the creep PID according to the brake pedal opening, thereby improving the system's response speed to the driver's new demands when the brake pedal is released.
[0041] (5) The vehicle throttle torque and creep torque smoothing control method of the present invention sets the input speed of the creep PID to a preset value when the motor is running at a low speed, thereby limiting the output torque and avoiding motor failures such as stalling and overheating under low speed and high torque conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a flow chart of a method for smoothing throttle torque and creep torque according to a preferred embodiment of the present invention;
[0043] Figure 2 A specific flow chart of optimizing the creep PID control module under special working conditions; DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0045] Embodiment 1:
[0046] Reference Figure 1 As shown, an embodiment of the present invention provides a method for smoothing throttle torque and creep torque, comprising:
[0047] Step S1, calculate the P-term torque T of the throttle PID control module according to the difference between the throttle demand torque and the current I-term comprehensive torque PPGain 、Throttle PID control module I comprehensive torque T PIGain .
[0048] Specifically, the driving torque smoothing method of this embodiment is particularly suitable when the throttle and creep functions are switched. In step S1, the throttle demand torque is T req , the current I-term comprehensive torque T IGain . According to the throttle demand torque T req The combined torque T of the current I IGain The difference is calculated as:
[0049] ΔT=T req -T IGain
[0050] The I coefficient torque of the throttle PID plus the current I comprehensive torque T IGain As the I-term comprehensive torque of the throttle PID control module, the calculation method is:
[0051] T PIGain =ΔT*K ip +T IGain
[0052] Among them, K ip is the I coefficient of the throttle PID control module, T PIGain It is the I-term comprehensive torque of the throttle PID control module.
[0053] Step S2, calculate the P-term torque T of the creep PID control module according to the difference between the target speed and the current speed CPGain , the I-term comprehensive torque T of the creep PID control module CIGain Specifically, let the target speed of the creep function be n tgt , the current motor speed is n crt . According to the target speed n tgt With the current speed n crt The difference between the P and I terms and the comprehensive torque of the creep PID control module are calculated. The calculation method is:
[0054] Δn=n tgt -n crt
[0055] The I coefficient torque of the creep PID control module plus the current I comprehensive torque T IGain As the I-term comprehensive torque of the creep PID control module, the calculation method is:
[0056] T CIGain =Δn*K ic +T IGain
[0057] Among them, K iC is the I coefficient of the creep PID control module, T CIGain It is the I-term integrated torque of the creep PID control module.
[0058] Combined Figure 2 As shown, before performing the calculation in step S2 above, the creep PID control module follows the following control logic under special working conditions:
[0059] Step S21, determine whether the motor speed is within the range of [n1, n2] near 0. When the motor speed is near 0, execute step S22; otherwise, execute step S23.
[0060] Step S22, considering that when the motor speed is within the range of [n1, n2] near 0, the motor may experience stall and overheating failures under large torque output. Therefore, in this case, the input current speed value of the creep PID is set to the preset value n c , where n c is equal to n tgt .
[0061] Step S23, when the actual motor speed is not within the range of [n1, n2] near 0, the motor will not stall. Therefore, there is no need to consider setting the input speed of the creep PID, and the actual speed value of the current motor is used for calculation. The current speed value of the creep PID control module is the actual value of the motor speed.
[0062] Step S24, determine whether the brake pedal is depressed; if the brake pedal opening is greater than b0, execute step S25; if the brake pedal opening is less than b1 (b1 < b0), execute step S26.
[0063] Step S25, if the brake pedal opening is greater than b0, considering that the driver has a braking requirement, b0 is considered to be greater than 12%. At this time, the maximum limit of the I-term output torque of the creep PID is degraded to prevent the I-term torque integration of the creep PID from being too large when the vehicle is stationary, and to prevent large torque fluctuations after releasing the brake, which reduces driving comfort.
[0064] Step S26, if the brake pedal opening is less than b1, considering that the driver is gradually releasing the brake, b1 is considered to be less than 5%. At this time, the maximum limit degradation of the I-term output torque of the creep PID control module is released to quickly match the driver's driving intention.
[0065] Step S3, based on the comparison result of the P-term torque of the throttle PID and the P-term torque of the creep PID, feedback the final I-term comprehensive torque T IGain . Calculate the difference between the P-term torque value output by the throttle PID and the P-term torque value of the creep PID. And feedback the I-term comprehensive torque corresponding to the larger P-term value.
[0066] Step S4: determining the final total driving torque GovTorque according to the comparison result between the P-term torque of the throttle PID and the P-term torque of the creep PID.
[0067] Step S4 calculates the difference between the P-term torque value output by the throttle PID and the P-term torque value output by the creep PID, and outputs the comprehensive torque GovTorque corresponding to the P-term with the larger value.
[0068] Furthermore, the driving mode is selected based on the comparison of the P value of the throttle PID and the creep PID. PPGain >T CPGain , it enters the throttle drive mode, otherwise it enters the creep drive mode. PPGain It represents the P output torque of the throttle PID control module, T CPGain Represents the P-term output torque of the creep PID control module.
[0069] Furthermore, if the throttle torque requirement increases, the P-term torque value of the throttle PID rises rapidly. PPGain >T CPGain , enters throttle drive mode.
[0070] Furthermore, if the throttle torque requirement of the accelerator is reduced, but the vehicle speed is still high, the P-term output torque of the throttle PID control module is still greater than the P-term output torque of the creep PID control module, that is, T PPGain >T CPGain , the torque output is the comprehensive torque of the throttle PID, which is in the throttle drive mode. Further, when the throttle is released, the throttle torque decreases, and the vehicle speed continues to decrease to the target speed of the creep mode, the P-term output torque of the throttle PID control module is still less than the P-term output torque of the creep PID control module, that is, T PPGain <T CPGain , the torque output is the comprehensive torque of the creep PID control module, which is in creep drive mode.
[0071] Note: In step S3, "feeding back the I-term integrated torque corresponding to the P-term with a larger value" means: if T PPGain >T CPGain , then the feedback T PIGain As T IGain , if T PPGain <T CPGain , then the feedback T CIGain As T IGain。
[0072] In step S4, "outputting the comprehensive torque GovTorque corresponding to the P item with a larger value" means: if T PPGain >TCPGain , then the output T PIGain +T PPGain +T PDGain As GovTorque if T PPGain <T CPGain , then the output T CIGain +T CPGain +T CDGain As GovTorque.
[0073] Among them, T PDGain is the D-term torque of the throttle PID control module, T CDGain This is the D-term torque of the creep PID control module.
[0074] That is, step S3 determines T IGain The source of the final output total torque GovTorque is determined in step S4.
[0075] It can be seen from the above description that compared with the prior art, the beneficial effects of the present invention are: the present invention uses the I integral torque T of the PID control module IGain As the real-time shared I-term torque basis, the I-term torque can always be included in the calculation under different driving modes, and there will be no torque jump when the driving mode is switched, thus achieving the purpose of smooth torque control while starting the mode switch.
[0076] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A vehicle throttle torque and creep torque smooth control method, characterized in that: including: the following steps: Step S1: according to the throttle demand torque T req The current integrated torque T IGain The difference between the throttle PID control module P torque T is calculated. PPGain 、Throttle PID control module I comprehensive torque T PIGain ; Step S2, calculate the P-term torque T of the creep PID control module according to the difference between the target speed and the current speed CPGain , the I-term comprehensive torque T of the creep PID control module CIGain ; Step S3: Based on the comparison result of the P-term torque of the throttle PID and the P-term torque of the creep PID, the I-term comprehensive torque corresponding to the P-term with the larger value is fed back as the final I-term comprehensive torque T IGain ; Step S4, selecting a driving mode according to the comparison result of the P-term torque of the throttle PID and the P-term torque of the creep PID; if T PPGain >T CPGain , then enter the throttle drive mode, otherwise enter the creep drive mode; and determine the comprehensive item torque GovTorque corresponding to the larger P item as the final total drive torque, where T PPGain It represents the P output torque of the throttle PID control module, T CPGain Represents the P-term output torque of the creep PID control module.
2. The vehicle throttle torque and creep torque smoothing control method according to claim 1, characterized in that: The specific method of step S1 is: The throttle torque required is T req , the current I-term comprehensive torque T IGain ; According to the throttle demand torque T req The combined torque T of the current I IGain The difference is calculated as: ΔT=T req -T IGain The I coefficient torque of the throttle PID plus the current I comprehensive torque T IGain As the I-term comprehensive torque of the throttle PID control module, the calculation method is: T PIGain =ΔT*K ip +T IGain Among them, K ip is the I coefficient of the throttle PID control module, T PIGain It is the I-term comprehensive torque of the throttle PID control module.
3. The vehicle throttle torque and creep torque smoothing control method according to claim 1, characterized in that: The specific method of step S2 is: the target speed of the creep function is n tgt , the current motor speed is n crt ; According to the target speed n tgt With the current speed n crt The difference between the P term, I term and comprehensive torque of the creep PID control module is calculated by: Δn=n tgt -n crt The I coefficient torque of the creep PID control module plus the current I comprehensive torque T IGain As the I-term comprehensive torque of the creep PID control module, the calculation method is: T CIGain =Δn*K ic +T IGain Among them, K iC is the I coefficient of the creep PID control module, T CIGain It is the I-term integrated torque of the creep PID control module.
4. The vehicle throttle torque and creep torque smoothing control method according to claim 1, characterized in that: In step S2, the P-term torque T of the creep PID control module is calculated according to the difference between the target speed and the current speed. CPGain , the I-term comprehensive torque T of the creep PID control module CIGain And before the comprehensive torque, also includes: Step S21, determine whether the motor speed is within the range of [n1, n2] near 0. When the motor speed is near 0, execute step S22; otherwise, execute step S23. Step S22: Considering that when the motor speed is in the range of [n1 n2] near 0, the motor may experience stalling and overheating due to high torque output. Therefore, in this case, the current speed value of the creep PID input is set to the preset value n. c , where n c With n tgt equal; Step S23, when the actual motor speed is not within the range of [n1, n2] near 0, the motor will not be blocked, so there is no need to consider setting the input speed of the creep PID. Instead, use the actual speed value of the current motor for calculation; the current speed value of the creep PID control module is the actual value of the motor speed. Step S24, determine whether the brake pedal is depressed; if the brake pedal opening is greater than b0, execute Step S25; if the brake pedal opening is less than b1 (b1 < b0), execute step S26; Step S25, if the brake pedal opening is greater than b0, it is considered that the driver has a braking requirement, and b0 is considered to be greater than 12%; at this time, the maximum limit of the I-term output torque of the creep PID is degraded to prevent the I-term torque integral of the creep PID from being too large when the vehicle is stationary, and after releasing the brake, the torque fluctuates greatly, reducing driving comfort. Step S26, if the brake pedal opening is less than b1, it is considered that the driver is gradually releasing the brake, and b1 is considered to be less than 5%; at this time, the maximum limit degradation of the I-term output torque of the creep PID control module is released to quickly match the driver's driving intention.
5. The vehicle throttle torque and creep torque smoothing control method according to claim 1, characterized in that: The method of selecting a driving mode in step S4 is: If the throttle torque requirement increases, the P torque value of the throttle PID rises rapidly. PPGain >T CPGain , enters throttle drive mode. If the throttle demand torque is reduced, but the vehicle speed is still high, the P-term output torque of the throttle PID control module is still greater than the P-term output torque of the creep PID control module, that is, T PPGain >T CPGain , the torque output is the comprehensive torque of the throttle PID, which is in throttle drive mode. When the accelerator is released, the throttle torque decreases, and the vehicle speed continues to decrease to the target speed of the creep mode, the P-term output torque of the throttle PID control module is still less than the P-term output torque of the creep PID control module, that is, T PPGain <T CPGain , the torque output is the comprehensive torque of the creep PID control module, which is in creep drive mode.
6. A vehicle throttle torque and creep torque smoothing control device, characterized in that: including a processor and a memory, and a computer program is stored on the memory. When the computer program is executed by the processor, it implements the vehicle throttle torque and creep torque smooth control method according to any one of claims 1-5.
7. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, it implements the vehicle throttle torque and creep torque smooth control method according to any one of claims 1-5.
8. A vehicle, characterized in that: This vehicle is equipped with the vehicle throttle torque and creep torque smooth control device according to claim 6.
