Vehicle lamp adjusting method and device, vehicle, storage medium and program product
By obtaining the angle offset of the front of the vehicle in real time and controlling the headlight dimming mechanism, adjusting the position of the headlights to adapt to the load and environment changes, the problem of changing the light distance caused by the vehicle load and driving environment is solved, and the driving experience and driving are improved Security.
Patent Information
- Application Number
- CN202411539928.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2024-12-31
AI Technical Summary
Changes in vehicle load capacity and bumpy driving environment lead to changes in the illumination distance of headlights, affecting driving experience and driving safety, and it is difficult for the existing technology to realize automatic adjustment of car lights.
By obtaining the real-time offset of the vehicle front angle, the dimming mechanism is used to adjust the position of the vehicle light, so that the angle between the light profile under the vehicle light and the ground meets the preset angle, and adapts to the load and environmental changes in different states of the vehicle.
Ensure that the lights can be adjusted to the appropriate position in any state, provide excellent lighting effects, and improve driving experience and driving safety.
Smart Images

Figure CN119218095A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle intelligent control technology, and in particular to a vehicle light adjustment method, device, vehicle, storage medium and program product. Background Art
[0002] In the related art, when the vehicle is unloaded, the illumination distance of the bottom surface of the headlight is fixed. However, in actual application, due to the change of vehicle load or the bumpy driving environment, the front of the vehicle will be tilted, which will cause the illumination distance of the lamp to be farther than when the vehicle is unloaded, which will affect the driving experience and driving safety of the driver. Summary of the invention
[0003] The main purpose of this application is to provide a headlight adjustment method, device, vehicle, storage medium and program product, aiming to solve the technical problem in the related art that the headlights are difficult to automatically adjust according to the actual state of the vehicle, affecting the driving experience and driving safety.
[0004] To achieve the above purpose, the present application proposes a vehicle light adjustment method, which includes:
[0005] Obtaining a real-time offset of the vehicle's front angle; wherein the real-time offset of the vehicle's front angle is the difference between the vehicle's real-time front angle and the vehicle's front angle when the vehicle is unloaded;
[0006] When the real-time offset of the vehicle head angle is greater than a preset threshold, the dimming mechanism of the vehicle is controlled to adjust the position of the headlights so that the light angle between the light profile under the vehicle headlights and the ground meets the preset angle.
[0007] In one embodiment, the dimming mechanism includes an adjustment motor and a power transmission rod, and the power transmission rod is connected to the adjustment motor and the headlight of the vehicle respectively;
[0008] The steps of controlling the dimming mechanism of the vehicle to adjust the position of the headlights include:
[0009] Determine the real-time angle between the light profile under the headlight and the ground;
[0010] Determine the adjustment stroke of the adjustment motor based on the difference between the preset angle and the real-time light angle;
[0011] Based on the adjustment stroke, the adjustment motor is controlled to push or retract the power transmission rod so that the light angle meets the preset angle at the position of the headlight after the movement.
[0012] In one embodiment, when the vehicle is in a driving state, the step of controlling the dimming mechanism of the vehicle to adjust the position of the headlights includes:
[0013] Based on the road surface height information of the area to be driven by the vehicle, the area to be driven is divided into at least one sub-area to be driven;
[0014] For each sub-area to be driven, determining an estimated front deviation angle of the vehicle in the sub-area to be driven;
[0015] When the estimated vehicle head deviation angle is greater than a preset threshold, determining the sub-area to be driven as the sub-area to be adjusted;
[0016] After the vehicle enters the area to be adjusted, the dimming mechanism of the vehicle is controlled to adjust the position of the headlights so that the light angle between the light profile under the vehicle headlights and the ground meets the preset angle; wherein the area to be adjusted includes at least one sub-area to be adjusted.
[0017] In one embodiment, the area to be adjusted includes a first sub-area to be adjusted and a second sub-area to be adjusted that are sequentially distributed along the driving direction of the vehicle; after the vehicle enters the area to be adjusted, the step of controlling the dimming mechanism of the vehicle to adjust the position of the headlights includes:
[0018] Determine the total road length, the first adjustment angle, and the second adjustment angle of the area to be adjusted; wherein the total road length is the sum of the road length corresponding to the first sub-area to be adjusted and the road length corresponding to the second sub-area to be adjusted, the first adjustment angle is the difference between the light angle between the light profile under the headlight and the ground when the vehicle is in the first sub-area to be adjusted and the preset angle, and the second adjustment angle is the difference between the light angle between the light profile under the headlight and the ground when the vehicle is in the second sub-area to be adjusted and the preset angle;
[0019] When the total road length is less than a preset distance threshold and the difference between the first adjustment angle and the second adjustment angle is less than a preset angle threshold, the dimming mechanism of the vehicle is controlled to adjust the position of the headlights based on the first adjustment angle and the second adjustment angle.
[0020] In one embodiment, after the vehicle enters the area to be adjusted, the step of controlling the dimming mechanism of the vehicle to adjust the position of the headlights includes:
[0021] After the vehicle enters the area to be adjusted, the current speed and acceleration of the vehicle are continuously obtained;
[0022] When the current vehicle speed is greater than the preset vehicle speed and the current acceleration is less than the preset acceleration, the dimming mechanism of the vehicle is controlled to adjust the position of the vehicle lights.
[0023] In one embodiment, the vehicle light adjustment method further includes:
[0024] If the dimming mechanism fails to complete the lamp position adjustment operation within a preset time period, a fault prompt message is generated and output to remind the driver that there is a fault in the dimming mechanism.
[0025] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle light adjustment device, the vehicle light adjustment device comprising:
[0026] An acquisition module is used to acquire a real-time offset of the vehicle's front angle; wherein the real-time offset of the vehicle's front angle is the difference between the real-time front angle of the vehicle and the front angle of the vehicle in an unloaded state;
[0027] The adjustment module is used to control the vehicle's dimming mechanism to adjust the position of the headlights when the real-time offset of the vehicle headlight angle is greater than a preset threshold, so that the light angle between the light profile under the vehicle's headlights and the ground meets the preset angle.
[0028] In addition, to achieve the above objectives, the present application also proposes a vehicle, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the vehicle light adjustment method as described above.
[0029] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium. A computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the vehicle light adjustment method as described above are implemented.
[0030] In addition, to achieve the above-mentioned purpose, the present application also proposes a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of the vehicle light adjustment method as described above are implemented.
[0031] One or more technical solutions proposed in this application have at least the following technical effects:
[0032] The headlight adjustment method provided in the present application can obtain the real-time offset of the vehicle's front angle; wherein the real-time offset of the headlight angle is the difference between the real-time head angle of the vehicle and the head angle of the vehicle in an unloaded state; the headlight angle offset can reflect the state changes of the vehicle in different spaces and loads, etc. When the real-time offset of the headlight angle is greater than a preset threshold, the vehicle's dimming mechanism can be controlled to adjust the headlight position so that the light angle between the light profile under the vehicle's headlights and the ground can meet the preset angle, thereby ensuring that no matter what state the vehicle is in, the headlights can be adjusted to a suitable position to provide a better lighting effect, thereby improving the driver's driving experience and driving safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0035] Figure 1 A schematic diagram of a flow chart provided for the first embodiment of the vehicle light adjustment method of the present application;
[0036] Figure 2 is a first detailed flow chart of step S200;
[0037] Figure 3 is a structural schematic diagram of an exemplary dimming mechanism;
[0038] Figure 4 is a second detailed flow chart of step S200;
[0039] Figure 5 This is a schematic diagram of the module structure of the vehicle light adjustment device according to an embodiment of the present application;
[0040] Figure 6 A schematic diagram of the vehicle structure of the hardware operating environment involved in the vehicle light adjustment method in the embodiment of the present application.
[0041] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0042] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0043] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0044] The main solution of the embodiment of the present application is: obtaining the real-time offset of the vehicle's front angle; wherein the real-time offset of the vehicle's front angle is the difference between the vehicle's real-time front angle and the vehicle's front angle when it is in an unloaded state; when the real-time offset of the vehicle's front angle is greater than a preset threshold, controlling the vehicle's dimming mechanism to adjust the position of the headlights so that the light angle between the light profile under the vehicle's headlights and the ground meets the preset angle.
[0045] Automotive lighting plays an important role in providing drivers with a safer, more comfortable and energy-saving driving experience. In related technologies, when a vehicle is unloaded, the illumination distance of the bottom surface of the headlight is certain; however, in actual applications, due to changes in vehicle load or bumps in the driving environment, the front of the vehicle will be lifted, which will cause the illumination distance of the lamp to be farther than when the vehicle is unloaded. In addition, drivers often ignore the control of the headlights during driving, which will affect the driver's driving experience and driving safety.
[0046] The present application provides a solution, which can control the vehicle's dimming mechanism in real time to adjust the position of the headlights when the real-time offset of the vehicle's front angle is greater than a preset threshold, so that the light angle between the light profile under the vehicle's headlights and the ground can meet the preset angle, thereby ensuring that no matter what state the vehicle is in, the headlights can be adjusted to the appropriate position to provide a better lighting effect, thereby improving the driver's driving experience and driving safety.
[0047] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, etc., or an electronic device capable of realizing the above functions, etc. The following takes the vehicle control unit (ECU, Electronic Control Unit) of a vehicle as an example to illustrate this embodiment and the following embodiments.
[0048] Based on this, the embodiment of the present application provides a method for adjusting vehicle lights, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the vehicle light adjustment method of the present application.
[0049] In this embodiment, the vehicle light adjustment method includes steps S100 to S200:
[0050] Step S100, obtaining the real-time offset of the vehicle's front angle.
[0051] The real-time offset of the vehicle head angle is the difference between the real-time vehicle head angle and the vehicle head angle when the vehicle is in an unloaded state.
[0052] Step S200, when the real-time offset of the vehicle head angle is greater than a preset threshold, the dimming mechanism of the vehicle is controlled to adjust the position of the headlights so that the light angle between the light profile under the vehicle headlights and the ground meets the preset angle.
[0053] Specifically, due to changes in load or bumpy driving environments, the front of the vehicle will be lifted, resulting in a deviation between the actual illumination range of the vehicle's headlights and the expected illumination range. In order to sense changes in the front of the vehicle, when the vehicle is powered on, the vehicle's posture can be detected using onboard sensors (such as gyroscopes or angle sensors, etc.) installed at the front and rear axles of the vehicle to measure the real-time front angle of the vehicle in real time; at the same time, the front angle of the vehicle in an unloaded state can be measured and recorded in the same way, and the front angle of the vehicle in an unloaded state is stored in the ECU as a reference value. The ECU can subtract the measured real-time front angle from the stored front angle in an unloaded state to obtain the real-time offset of the vehicle's front angle; it should be noted that the above-mentioned front angle is the angle between the front of the vehicle and the waterline of the vehicle body.
[0054] For example, in one application scenario, when it is detected that the trunk of the vehicle is open (indicating that the user may place items to be carried in the trunk) or passengers are sitting in the front and rear seats of the vehicle, the different weights of the carried items and the different seating positions of the passengers will change the load state of the vehicle, causing the degree of tilting of the front of the vehicle to vary. Therefore, the real-time offset of the front angle of the vehicle can be obtained in real time at this time, so that the headlights can be adjusted accordingly.
[0055] After obtaining the real-time offset of the vehicle head angle, it can be compared with a preset threshold; when the real-time offset of the vehicle head angle is greater than the preset threshold, the vehicle's dimming mechanism is controlled to adjust the position of the headlights so that the light angle between the light profile under the vehicle's headlights and the ground can meet the preset angle, so as to adjust the illumination distance formed by the headlights on the ground.
[0056] It is understandable that only when the tilt angle of the front of the vehicle is too large, the deviation of the lighting angle of the headlight may affect the driving experience of the driver or cause interference to the oncoming vehicle (such as affecting the driving performance of the oncoming driver). Therefore, the headlight position adjustment operation is performed only when the real-time offset of the headlight angle is greater than the preset threshold; wherein, the setting of the preset threshold can be obtained based on the calibration test performed during the vehicle development cycle; it should be noted that, because the vehicles all have a certain rigidity, the real-time offset of the headlight angle will not be a large offset value in essence; for example, the preset threshold can be selected to be about 2°. If the real-time offset of the headlight angle exceeds the preset threshold, the ECU can send a signal to the dimming mechanism, which may include an electric motor, a gear system or other mechanical device for adjusting the angle of the headlight. The dimming mechanism can adjust the position of the headlight according to the instruction of the ECU until the light angle between the light profile under the headlight and the ground meets the preset angle to ensure that the light will not cause glare to oncoming vehicles while ensuring sufficient lighting range.
[0057] In a feasible implementation, the dimming mechanism may include an adjustment motor and a power transmission rod, and the power transmission rod is connected to the adjustment motor and the vehicle light respectively; Figure 2 As shown, Figure 2 is a first detailed flow chart of step S200. In this implementation, step S200 may specifically include steps S210 to S230:
[0058] Step S210, determining the real-time light angle between the light profile under the vehicle headlight and the ground.
[0059] Step S220, determining the adjustment stroke of the adjustment motor based on the difference between the preset angle and the real-time light angle.
[0060] Step S230, based on the adjustment stroke, controlling the adjustment motor to push or retract the power transmission rod, so that at the position of the headlight after the movement, the light angle meets the preset angle.
[0061] In practical applications, the real-time light angle between the light profile under the headlight and the ground can be measured in real time by on-board sensors (such as cameras, light sensors, etc.), and the ECU can calculate the difference between the real-time light angle obtained and the preset angle; wherein, the preset angle can be determined according to the vehicle model, vehicle lighting specifications, etc., and is not specifically limited here. When the vehicle's implemented light angle is the preset angle, the headlight can have a better illumination effect. Preferably, the preset angle can be 0.57°. The ECU can determine the adjustment stroke based on the difference between the vehicle's real-time light angle and the preset angle, that is, the distance the adjustment motor needs to push or retract the power transmission rod to adjust the headlight to the correct angle. Figure 3 is a schematic diagram of a structure of an exemplary dimming mechanism, such as Figure 3 As shown, the adjustment motor 2 is connected to the headlight 1 through the power transmission rod 3. The adjustment motor 2 can be adjusted at the upper and lower adjustment points 5 of the headlight by pushing or retracting the power transmission rod 3, so that the headlight 1 can swing up and down around the rotation axis fixed point 4 to achieve the adjustment of the upper and lower positions of the headlight, as shown in FIG. Figure 3 As shown, δ is the adjustment angle of the headlight before and after adjustment. Similarly, the headlight can also be set with left and right adjustment points, and equipped with corresponding power transmission rods and adjustment motors to achieve left and right adjustment of the headlight position. The adjustment principle is similar to the up and down adjustment of the headlight, which will not be repeated here. Taking the adjustment motor to control the power transmission rod to move 3mm as an example, in the actual signal transmission process, the determined adjustment stroke can be converted into a voltage value based on the voltage-stroke control relationship of the adjustment motor itself. The voltage value can be used as the driving electrical signal output by the ECU to drive the adjustment motor to operate, so that the power transmission rod changes the position of the headlight until the light angle between the light profile under the headlight and the ground meets the preset angle.
[0062] In addition, the vehicle may face a variety of complex driving environments during the driving process, such as entering a bumpy road section. Therefore, when the vehicle is in a driving state, the step of controlling the dimming mechanism of the vehicle to adjust the position of the headlights may include steps S240 to S270. Figure 4 As shown, Figure 4 This is a second detailed flowchart of step S200.
[0063] Step S240: dividing the area to be driven into at least one sub-area to be driven based on the road surface height information of the area to be driven of the vehicle.
[0064] Step S250: for each sub-area to be driven, determining an estimated vehicle head deviation angle in the sub-area to be driven.
[0065] Step S260: When the estimated vehicle head deviation angle is greater than a preset threshold, the sub-region to be driven is determined as a sub-region to be adjusted.
[0066] Step S270, after the vehicle enters the area to be adjusted, the dimming mechanism of the vehicle is controlled to adjust the position of the headlights so that the light angle between the light profile under the headlights of the vehicle and the ground meets a preset angle.
[0067] The area to be adjusted includes at least one sub-area to be adjusted.
[0068] It is understandable that on a nearly straight road, under normal circumstances, the headlights will maintain the angle adjusted according to the load conditions before the vehicle is started. However, if the vehicle enters a bumpy road or uphill or downhill section, the front of the vehicle will also be lifted due to the road conditions, so the position of the headlights needs to be adjusted in time. However, in order to avoid frequent adjustment of the lamps on bumpy roads, which will bring the driver an unpleasant feeling of obvious light fluctuations, the area to be driven in front of the vehicle can be divided in advance based on the road height, so that the vehicle can determine the adjustment strategy for each partition in advance, and can respond quickly after entering the corresponding sub-area to be driven, and adjust the headlights in time.
[0069] Specifically, the vehicle's radar system can be used to obtain the driving environment information in front of the vehicle's driving area, and the driving environment information includes the road surface height information in front; thus, the driving area in front can be divided according to the road surface height information to obtain at least one sub-area to be driven; then the estimated vehicle head deviation angle corresponding to each sub-area to be driven is calculated, for example, the estimated vehicle head deviation angle when the vehicle drives to the turning point of the height fluctuation of the road surface can be calculated by using trigonometric functions; thus, at least one sub-area to be adjusted that needs to adjust the headlight position among multiple sub-areas to be driven can be determined based on the comparison between the estimated vehicle head deviation angle and a preset threshold, and after the vehicle enters the sub-area to be adjusted, the dimming mechanism is controlled to adjust the headlight position.
[0070] In one example, the road surface height distribution (road surface height information) of the area to be driven ahead is obtained by the vehicle's radar system as [0, 4, 5, 7, 15, 56, 77, 36, 90, 100, 20, 45]. Based on this, it can be determined that the turning points of the height fluctuation of the road ahead are 77, 100 and 45. It should be noted that the interval corresponding to the road surface height information is related to the acquisition frequency of sensors, etc., and is not specifically limited here. Therefore, according to the determined turning point of the road height fluctuation, the area to be driven can be divided into three sub-areas to be driven: 0-77, 36-100 and 20-45; at the height point of 77 and the height point of 100, the calculated front offsets (i.e., the estimated front offset angles) are both greater than the preset threshold, while the front offset at the height point of 45 is less than the preset threshold, thus it can be determined that the two sub-areas to be driven at 0-77 and 36-100 are sub-areas to be adjusted, and the sub-area to be driven at 20-45 is a non-adjustment sub-area, thus an adjustment strategy for the area to be driven can be formulated in advance based on this (only the headlights are adjusted for the two sub-areas to be adjusted, 0-77 and 36-100, while the area 20-45 does not need to be adjusted), so that the vehicle can respond quickly when entering the area to be driven; at the same time, unnecessary adjustment actions can be reduced through area division, and adjustments are only made when necessary, thereby achieving the purpose of saving energy and extending the service life of the dimming mechanism.
[0071] In a feasible implementation manner, the area to be adjusted may include a first sub-area to be adjusted and a second sub-area to be adjusted that are sequentially distributed along the driving direction of the vehicle; in this implementation manner, step S270 may specifically include steps S271 to S272:
[0072] Step S271, determining the total road length, the first adjustment angle and the second adjustment angle of the area to be adjusted.
[0073] Among them, the total road surface length is the sum of the road surface length corresponding to the first sub-area to be adjusted and the road surface length corresponding to the second sub-area to be adjusted, the first adjustment angle is the difference between the light angle between the light outline under the headlights and the ground when the vehicle is in the first sub-area to be adjusted and the preset angle, and the second adjustment angle is the difference between the light angle between the light outline under the headlights and the ground when the vehicle is in the second sub-area to be adjusted and the preset angle.
[0074] Step S272, when the total road length is less than a preset distance threshold and the difference between the first adjustment angle and the second adjustment angle is less than a preset angle threshold, control the vehicle's dimming mechanism to adjust the position of the headlights based on the first adjustment angle and the second adjustment angle.
[0075] Specifically, when the area to be adjusted includes a first sub-area to be adjusted and a second sub-area to be adjusted that are sequentially distributed along the driving direction of the vehicle, in order to avoid multiple adjustments to the position of the headlights in a short period of time, the final adjustment strategy can be determined by comprehensively considering the road surface lengths and adjustment angles of the two sub-areas to be adjusted. It should be noted that the road surface length of the sub-area to be adjusted is the length of the road section corresponding to the sub-area to be adjusted in the direction in which the road extends, and the vehicle travels along the direction in which the road extends.
[0076] For ease of understanding, the above example is continued here for explanation. In the above example, the two intervals 0-77 and 36-100 are two adjacent sub-areas to be adjusted that are distributed in sequence along the direction of vehicle travel and need to adjust the lamp angle. If the road length (i.e., the total road length) jointly constituted by the 0-100 points is 380m, which is less than the preset distance threshold of 400m, and the corresponding adjustment angles at the 77 and 100 points are both less than the preset angle threshold of 1°, then the 0-77 and 36-100 intervals can be merged and adjusted at this time. For example, in the 0-100 range, the average value of the adjustment angles (i.e., the first adjustment angle and the second adjustment angle) corresponding to the two sub-areas to be adjusted, 0-77 and 36-100, can be directly selected for adjustment, or the first adjustment angle and the second adjustment angle can be linearly interpolated to select a smooth transition angle for adjustment, thereby avoiding multiple adjustments of the lamp in a short period of time; it should be noted that the adjustment can start to respond when entering the waiting driving area, and when the vehicle enters the 36-100 range, it can directly trace back to the average value of the adjustment angle calculated before, and make adjustments accordingly without the need for tedious calculations; when the vehicle enters the non-adjustment sub-area of 20-45, after the vehicle reaches the point 100, the dimming mechanism can be controlled to adjust the position of the headlights to the position of the headlights before entering the waiting driving area. The above-mentioned preset distance threshold and preset angle threshold can be adjusted and comprehensively determined based on the vehicle's previous calibration test, and are not limited here.
[0077] It is worth mentioning that in order to avoid the impact of large bumpy sections, when judging whether two sub-areas to be adjusted can be merged into one area to be adjusted, the height difference between the two points before and after the turning point of the height fluctuation and the turning point can be considered for comprehensive calculation. For example, the height distribution is [56,77,1,100], but in actual driving conditions, there are few road conditions with such large differences, and even if there are, they are instantaneous bumps. Therefore, the division of the area to be driven in the above example does not consider the stages of 77-26 and 100-20.
[0078] In addition, after the vehicle enters the area to be adjusted, the current speed and acceleration of the vehicle can be continuously obtained; when the current speed is greater than the preset speed and the current acceleration is less than the preset acceleration, the dimming mechanism of the vehicle is controlled to adjust the position of the headlights, so as to avoid adjusting the position of the headlights at high speed or in sharp turns, which affects driving safety. The preset speed and the preset acceleration can be determined according to vehicle performance, user driving habits or actual vehicle testing, etc., and are not limited here; preferably, the preset speed can be 25km / h, and the preset acceleration can be 0.2g, where g is the local gravity acceleration.
[0079] During the adjustment of the lights, the timing can be started from when the ECU issues an adjustment command. If the dimming mechanism fails to complete the adjustment of the light position within the preset time, a fault prompt message can be generated and output to remind the driver that the dimming mechanism has a fault. For example, if the preset time is 1 minute, and the dimming mechanism fails to complete the adjustment of the light position within 1 minute, a fault prompt message can be displayed on the large screen of the vehicle to remind the user that the dimming mechanism has a fault and needs to be repaired in time.
[0080] It is not difficult to understand that the headlight adjustment method provided in this embodiment can obtain the real-time offset of the vehicle's front angle; wherein, the real-time offset of the headlight angle is the difference between the real-time head angle of the vehicle and the head angle of the vehicle in an unloaded state; the head angle offset can reflect the state changes of the vehicle in different spaces and loads, etc. When the real-time offset of the headlight angle is greater than a preset threshold, the vehicle's dimming mechanism can be controlled to adjust the position of the headlights so that the light angle between the light profile under the vehicle's headlights and the ground can meet the preset angle, thereby ensuring that no matter what state the vehicle is in, the headlights can be adjusted to a suitable position to provide a better lighting effect, which can improve the driver's driving experience and driving safety.
[0081] This application also provides a vehicle light adjustment device, please refer to Figure 5 , the vehicle light adjustment device comprises:
[0082] The acquisition module 10 is used to acquire the real-time offset of the vehicle's front angle; wherein the real-time offset of the vehicle's front angle is the difference between the real-time front angle of the vehicle and the front angle of the vehicle in an unloaded state;
[0083] The adjustment module 20 is used to control the dimming mechanism of the vehicle to adjust the position of the headlights when the real-time offset of the vehicle headlight angle is greater than a preset threshold value, so that the light angle between the light profile under the vehicle headlights and the ground meets the preset angle.
[0084] The vehicle light adjustment device provided by the present application adopts the vehicle light adjustment method in the above embodiment, which can solve the technical problem in the related art that the vehicle light is difficult to automatically adjust according to the actual state of the vehicle, affecting the driving experience and driving safety. Compared with the related art, the beneficial effects of the vehicle light adjustment device provided by the present application are the same as the beneficial effects of the vehicle light adjustment method provided by the above embodiment, and the other technical features of the above vehicle light adjustment device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0085] The present application provides a vehicle, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the vehicle light adjustment method in the above-mentioned embodiment 1.
[0086] Reference below Figure 6 , which shows a schematic diagram of a structure of a vehicle suitable for implementing an embodiment of the present application. The vehicle in the embodiment of the present application may include, but is not limited to, mobile terminals such as a laptop computer, a digital broadcast receiver, a PDA (Personal Digital Assistant), a PAD (Portable Application Description), a vehicle-mounted terminal (such as a vehicle-mounted navigation terminal), etc., and fixed terminals such as a digital TV, a desktop computer, etc. Figure 6 The vehicle shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0087] like Figure 6As shown, the vehicle may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for vehicle operation are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the vehicle to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a vehicle with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0088] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0089] The vehicle provided by the present application adopts the headlight adjustment method in the above embodiment, which can solve the technical problem in the related art that the headlight is difficult to automatically adjust according to the actual state of the vehicle, affecting the driving experience and driving safety. Compared with the related art, the beneficial effects of the vehicle provided by the present application are the same as the beneficial effects of the headlight adjustment method provided by the above embodiment, and the other technical features of the vehicle are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0090] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0091] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0092] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the vehicle light adjustment method in the above-mentioned embodiment.
[0093] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0094] The computer-readable storage medium may be included in the vehicle, or may exist independently without being installed in the vehicle.
[0095] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the vehicle, the vehicle: obtains the real-time offset of the vehicle's front angle; wherein the real-time offset of the vehicle's front angle is the difference between the real-time offset of the vehicle's front angle and the front angle of the vehicle in an unloaded state; when the real-time offset of the vehicle's front angle is greater than a preset threshold, controls the vehicle's dimming mechanism to adjust the position of the headlights so that the light angle between the light profile under the vehicle's headlights and the ground meets the preset angle.
[0096] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0097] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0098] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0099] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned vehicle light adjustment method, and can solve the technical problem in the related art that the vehicle light is difficult to automatically adjust according to the actual state of the vehicle, affecting the driving experience and driving safety. Compared with the related art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the vehicle light adjustment method provided by the above-mentioned embodiment, and will not be repeated here.
[0100] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned vehicle light adjustment method when executed by a processor.
[0101] The computer program product provided by this application can solve the technical problem in the related art that the headlights are difficult to automatically adjust according to the actual state of the vehicle, which affects the driving experience and driving safety. Compared with the related art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the headlight adjustment method provided by the above embodiment, which will not be repeated here.
[0102] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for adjusting vehicle lights, characterized in that: The vehicle light adjustment method comprises: Obtaining a real-time offset of the vehicle's front angle; wherein the real-time offset of the vehicle's front angle is the difference between the real-time front angle of the vehicle and the front angle of the vehicle in an unloaded state; When the real-time offset of the vehicle head angle is greater than a preset threshold, the dimming mechanism of the vehicle is controlled to adjust the position of the headlights so that the light angle between the light profile under the vehicle headlights and the ground meets the preset angle.
2. The vehicle light adjustment method according to claim 1, characterized in that: The dimming mechanism comprises an adjustment motor and a power transmission rod, and the power transmission rod is connected to the adjustment motor and the headlight of the vehicle respectively; The step of controlling the dimming mechanism of the vehicle to adjust the position of the vehicle lamp comprises: Determine the real-time light angle between the light profile under the headlight and the ground; Determining an adjustment stroke of the adjustment motor based on a difference between the preset angle and the real-time light angle; Based on the adjustment stroke, the adjustment motor is controlled to push or retract the power transmission rod, so that at the position of the headlight after the movement, the light angle meets the preset angle.
3. The vehicle light adjustment method according to claim 1, characterized in that: When the vehicle is in a driving state, the step of controlling the dimming mechanism of the vehicle to adjust the position of the headlights includes: Based on the road surface height information of the area to be driven by the vehicle, dividing the area to be driven into at least one sub-area to be driven; For each of the sub-areas to be driven, determining an estimated front deviation angle of the vehicle in the sub-area to be driven; When the estimated vehicle head deviation angle is greater than a preset threshold, determining the sub-area to be driven as a sub-area to be adjusted; After the vehicle enters the area to be adjusted, the dimming mechanism of the vehicle is controlled to adjust the position of the headlights so that the light angle between the light profile under the headlights of the vehicle and the ground meets a preset angle; wherein the area to be adjusted includes at least one sub-area to be adjusted.
4. The vehicle light adjustment method according to claim 3, characterized in that: The area to be adjusted includes a first sub-area to be adjusted and a second sub-area to be adjusted that are sequentially distributed along the driving direction of the vehicle; after the vehicle enters the area to be adjusted, the step of controlling the dimming mechanism of the vehicle to adjust the position of the headlights includes: Determine the total road length, the first adjustment angle, and the second adjustment angle of the area to be adjusted; wherein the total road length is the sum of the road length corresponding to the first sub-area to be adjusted and the road length corresponding to the second sub-area to be adjusted, the first adjustment angle is the difference between the light angle between the light profile under the headlights and the ground when the vehicle is in the first sub-area to be adjusted and the preset angle, and the second adjustment angle is the difference between the light angle between the light profile under the headlights and the ground when the vehicle is in the second sub-area to be adjusted and the preset angle; When the total road length is less than a preset distance threshold and the difference between the first adjustment angle and the second adjustment angle is less than a preset angle threshold, the dimming mechanism of the vehicle is controlled to adjust the position of the headlights based on the first adjustment angle and the second adjustment angle.
5. The vehicle light adjustment method according to claim 3, characterized in that: After the vehicle enters the area to be adjusted, the step of controlling the dimming mechanism of the vehicle to adjust the position of the headlights comprises: After the vehicle enters the area to be adjusted, continuously acquiring the current speed and current acceleration of the vehicle; When the current vehicle speed is greater than a preset vehicle speed and the current acceleration is less than a preset acceleration, the dimming mechanism of the vehicle is controlled to adjust the position of the vehicle lights.
6. The vehicle light adjustment method according to any one of claims 1 to 5, characterized in that: The method further comprises: If the dimming mechanism fails to complete the lamp position adjustment operation within a preset time period, a fault prompt message is generated and output to remind the driver that the dimming mechanism has a fault.
7. A vehicle light adjustment device, characterized in that: The vehicle light adjustment device comprises: An acquisition module, used for acquiring a real-time offset of a vehicle's front angle; wherein the real-time offset of the vehicle's front angle is a difference between the real-time front angle of the vehicle and the front angle of the vehicle in an unloaded state; The adjustment module is used to control the dimming mechanism of the vehicle to adjust the position of the headlights when the real-time offset of the vehicle headlight angle is greater than a preset threshold, so that the light angle between the light profile under the vehicle headlights and the ground meets the preset angle.
8. A vehicle, characterized in that: The vehicle comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the vehicle light adjustment method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the vehicle light adjustment method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the vehicle light adjustment method according to any one of claims 1 to 6 are implemented.
