Control method and control device for automobile lamps
By using the gravity acceleration sensor in the car to calculate and filter the fluctuation value of the pitch angle, and combining the moving average method and the road angle to adjust the optical axis, the problem of external environmental factors affecting the optical axis angle is solved, and a high-precision, low-cost optical axis is achieved. adjust.
Patent Information
- Application Number
- CN202111400758.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-24
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2041-11-24
AI Technical Summary
When the pitch angle of the front and rear direction of the vehicle changes, it is difficult to effectively filter jitter caused by external environmental factors, affecting the accurate calculation of the optical axis angle and the driver's field of view.
By obtaining the gravity acceleration value of the car's forward direction and vertical direction, the instantaneous pitch angle is calculated, filtered according to its fluctuation value, the pitch angle is calculated using the moving average method, and finally the optical axis position is adjusted according to the road angle.
It effectively filters the jitter caused by external environmental factors, improves the accuracy of pitch angle calculation, ensures that the optical axis remains horizontal, ensures the driver's field of vision, and achieves the technical effects of low cost, convenient installation, and high angle accuracy.
Smart Images

Figure CN116164251B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automobile technology, and in particular to a control method for automobile lamps. Background Art
[0002] The change of the vehicle's load will cause the change of the vehicle's front and rear pitch angle, which will directly cause the change of the irradiation angle of the headlight's optical axis based on the road surface, thus affecting the driver's field of vision. In order to ensure that the driver's field of vision is not affected by the vehicle's front and rear pitch angle, the vehicle's optical axis angle must be adjusted according to the vehicle's pitch angle so that the optical axis always remains horizontal.
[0003] At present, height sensors are generally installed on the front and rear suspensions of the car to detect the height changes of the front and rear suspensions to calculate the pitch angle of the car in the front and rear directions. This method has the problem that the height sensor is difficult to install and is expensive.
[0004] In the related art, a solution is introduced to calculate the pitch angle of the car and control the angle of the optical axis based on the acceleration sensor. However, since the acceleration sensor detects the instantaneous acceleration values of the front and rear, horizontal and vertical directions of the car, the vibration of the car will directly interfere with the output value of the acceleration sensor, and the external environment such as the shaking of passengers in the car, the increased vibration of the engine with the increase of age, and the opening of the car air conditioner will aggravate the vibration of the whole car, thereby affecting the calculation of the pitch angle of the car, and then will interfere with the position of the optical axis and affect the driver's field of vision. Summary of the invention
[0005] The present invention is to solve the above-mentioned technical problems. The first purpose of the present invention is to propose a control method for automobile lamps. The method filters the instantaneous pitch angle according to the fluctuation value of the instantaneous pitch angle, thereby effectively filtering the influence of the shaking of the car caused by external environmental factors such as the shaking of passengers in the car, the increased shaking of the engine with the increase of age, and the turning on of the car air conditioner on the calculation of the pitch angle, and adjusts the optical axis position of the automobile lamp according to the angle of the road where the car is located, thereby overcoming the interference of the road angles such as ramps and uneven roads on the optical axis position, so that the optical axis can be kept horizontal to ensure the driving field of vision, and the gravity acceleration sensor can be used to realize the calculation of the car pitch angle and control the optical axis angle control, which can achieve the technical effect of low cost, convenient installation and high angle accuracy.
[0006] A second objective of the present invention is to provide a control device for an automobile lamp.
[0007] The technical solution adopted by the present invention is as follows:
[0008] The first aspect of the present invention provides a method for controlling a vehicle lamp, comprising the following steps: obtaining the gravity acceleration values in the forward direction and the vertical direction of the vehicle at a preset period, and calculating the instantaneous pitch angle α of the vehicle according to the gravity acceleration values in the forward direction and the vertical direction; calculating the fluctuation value of the instantaneous pitch angle α for the first preset consecutive period; filtering the instantaneous pitch angle α according to the fluctuation value of the instantaneous pitch angle α to obtain an effective instantaneous pitch angle β; calculating the pitch angle θ of the vehicle based on the moving average method according to the effective instantaneous pitch angle β; obtaining the angle θ of the road surface where the vehicle is located I , and according to the angle θ of the road surface where the car is located I and the pitch angle θ to obtain the effective optical axis position P of the car V According to the effective optical axis position P V The optical axis of the automobile lamp is adjusted.
[0009] The above-mentioned control method of the automobile lamp of the present invention may also have the following additional technical features:
[0010] According to one embodiment of the present invention, the instantaneous pitch angle α is filtered according to the fluctuation value of the instantaneous pitch angle α to obtain the effective instantaneous pitch angle β, specifically including: judging whether the fluctuation value of the instantaneous pitch angle α is greater than a preset filtering threshold γ; if the fluctuation value of the instantaneous pitch angle α is greater than the preset filtering threshold γ, filtering out the instantaneous pitch angle α of the corresponding first consecutive preset periods.
[0011] According to one embodiment of the present invention, the pitch angle θ of the vehicle is calculated based on the effective instantaneous pitch angle β based on the moving average method, including: obtaining the effective instantaneous pitch angle β for a second consecutive preset period; calculating the average value of the effective instantaneous pitch angle β for the second consecutive preset period, and using the average value as the pitch angle θ of the vehicle.
[0012] According to one embodiment of the present invention, the road angle θ where the car is located is obtained. I , and according to the angle θ of the road surface where the car is located I and the pitch angle θ to obtain the effective optical axis position P of the car V , specifically including: according to the angle θ of the road where the car is located I Get the invalid optical axis position as P I , and obtain the total optical axis position P according to the pitch angle θ T According to the total optical axis position P T and the invalid optical axis position is P I The effective optical axis position P is obtained by the difference V .
[0013] According to an embodiment of the present invention, the above control method further includes: storing the invalid optical axis position as P I .
[0014] The second aspect of the present invention provides a control device for automobile lamps, comprising: a first acquisition module, the first acquisition module is used to acquire the gravity acceleration values in the forward direction and the vertical direction of the automobile at a preset period, and calculate the instantaneous pitch angle α of the automobile according to the gravity acceleration values in the forward direction and the vertical direction; a first calculation module, the first calculation module is used to calculate the fluctuation value of the instantaneous pitch angle α for a first preset number of consecutive periods; a filtering module, the filtering module is used to filter the instantaneous pitch angle α according to the fluctuation value of the instantaneous pitch angle α to obtain the effective instantaneous pitch angle β; a second calculation module, the second calculation module is used to calculate the pitch angle θ of the automobile based on the moving average method according to the effective instantaneous pitch angle β; a second acquisition module, the second acquisition module is used to obtain the angle θ of the road surface where the automobile is located I , and according to the angle θ of the road surface where the car is located I and the pitch angle θ to obtain the effective optical axis position P of the car V ; An adjustment module, the adjustment module is used according to the effective optical axis position P V The optical axis of the automobile lamp is adjusted.
[0015] The control device for automobile lamps proposed in the present invention may also have the following additional technical features:
[0016] According to one embodiment of the present invention, the filtering module is specifically used to: determine whether the fluctuation value of the instantaneous pitch angle α is greater than a preset filtering threshold γ; if the fluctuation value of the instantaneous pitch angle α is greater than the preset filtering threshold γ, then filter out the corresponding instantaneous pitch angle α for the first preset consecutive periods.
[0017] According to one embodiment of the present invention, the second calculation module is specifically used to: obtain the effective instantaneous pitch angle β of the second consecutive preset period; calculate the average value of the effective instantaneous pitch angle β of the second consecutive preset period, and use the average value as the pitch angle θ of the car.
[0018] According to an embodiment of the present invention, the second acquisition module is specifically used to: I Get the invalid optical axis position as P I , and obtain the total optical axis position P according to the pitch angle θ T According to the total optical axis position P T and the invalid optical axis position is P I The effective optical axis position P is obtained by the difference V .
[0019] According to an embodiment of the present invention, the control device further comprises: a storage module, the storage module being used to store the invalid optical axis position as P I .
[0020] Beneficial effects of the present invention:
[0021] (1) The instantaneous pitch angle is filtered according to the fluctuation value of the instantaneous pitch angle, so as to effectively filter out the influence of the vibration of the vehicle caused by external environmental factors such as the shaking of passengers in the vehicle, the increase of engine vibration with the increase of age, and the opening of the vehicle air conditioner on the pitch angle calculation;
[0022] (2) The optical axis position of the automobile lamp is adjusted according to the angle of the road on which the car is located, thereby overcoming the interference of the road angle such as slopes and uneven roads on the optical axis position, so that the optical axis can be kept horizontal to ensure the driving field of vision;
[0023] (3) The gravity acceleration sensor can be used to calculate the pitch angle of the car and control the angle of the optical axis, which can achieve the technical effect of low cost, convenient installation and high angle accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 is a flow chart of a method for controlling an automobile lamp according to an embodiment of the present invention;
[0025] Figure 2 is a schematic diagram of adjusting the optical axis position when the road surface is horizontal according to an embodiment of the present invention;
[0026] Figure 3 is a schematic diagram of adjusting the optical axis position when the road surface is not horizontal according to an embodiment of the present invention;
[0027] Figure 4 4 is a block diagram of a control device for an automobile lamp according to an embodiment of the present invention. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0029] Figure 1 is a flow chart of a method for controlling an automobile lamp according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0030] S1, obtaining the gravity acceleration values in the forward direction and the vertical direction of the vehicle at a preset period, and calculating the instantaneous pitch angle α of the vehicle according to the gravity acceleration values in the forward direction and the vertical direction.
[0031] Specifically, the preset period is set in advance, for example, 50ms, and the acceleration sensor can be used to obtain the gravity acceleration values in the forward direction and vertical direction of the car. If the X, Y, and Z coordinates correspond to the acceleration values in the forward direction, horizontal direction, and vertical direction of the car, respectively, the acceleration sensor can collect the X, Y, and Z coordinate values corresponding to the car, and the instantaneous pitch angle α of the car can be directly calculated according to α=arctan(X / Z).
[0032] S2, calculating the fluctuation value of the instantaneous pitch angle α for a first preset number of consecutive periods.
[0033] S3, filtering the instantaneous pitch angle α according to the fluctuation value of the instantaneous pitch angle α to obtain an effective instantaneous pitch angle β.
[0034] Further, according to an embodiment of the present invention, the instantaneous pitch angle α is filtered according to the fluctuation value of the instantaneous pitch angle α to obtain the effective instantaneous pitch angle β, specifically including: judging whether the fluctuation value of the instantaneous pitch angle α is greater than a preset filtering threshold γ; if the fluctuation value of the instantaneous pitch angle α is greater than the preset filtering threshold γ, filtering out the corresponding instantaneous pitch angle α of the first preset continuous period.
[0035] Specifically, the car angle calculated by the acceleration value during the shaking process of the car (such as the shaking of passengers in the car, the increased shaking of the engine as the age increases, and the external environment such as the opening of the car air conditioner) cannot accurately represent the car angle, so the instantaneous pitch angle α must be further processed. The present invention sequentially calculates the difference between the maximum value and the minimum value of the instantaneous pitch angle α in the first consecutive preset cycle (for example, 6), obtains the fluctuation value Δα, and then filters the instantaneous pitch angle α according to the fluctuation value Δα.
[0036] If the fluctuation value Δα is greater than the preset filtering threshold γ (for example, 0.1°), it means that the current vehicle is shaking greatly, and the corresponding first preset instantaneous pitch angle α currently obtained is filtered out. If the fluctuation value Δα is less than or equal to the preset filtering threshold γ, there is no need to filter out the corresponding first preset instantaneous pitch angle α previously obtained. Therefore, the instantaneous pitch angle α remaining after the above processing is used as the effective instantaneous pitch angle β.
[0037] The preset filter threshold γ can be preset in advance through relevant tests based on the actual situation of the car. As the engine jitter increases with age and the turning on of the car air conditioner will aggravate the jitter of the whole vehicle, if the same preset filter threshold γ as the initial one is used, the effective instantaneous angle of the car will be misfiltered, so the preset filter threshold γ can be updated regularly.
[0038] S4, calculating the pitch angle θ of the vehicle according to the effective instantaneous pitch angle β based on a moving average method.
[0039] Further, according to an embodiment of the present invention, the pitch angle θ of the vehicle is calculated based on the effective instantaneous pitch angle β based on the moving average method, specifically including: obtaining the effective instantaneous pitch angle β for a second consecutive preset period; calculating the average value of the effective instantaneous pitch angle β for a second consecutive preset period, and taking the average value as the pitch angle θ of the vehicle.
[0040] Specifically, the second preset number is preset according to actual conditions, for example, 4. After the effective instantaneous pitch angle β is obtained, the average value of 4 consecutive effective instantaneous pitch angles β is calculated once, and the average value is used as the current pitch angle θ of the vehicle.
[0041] S5, obtain the road angle θ where the car is located I , and according to the angle θ of the road where the car is located I and pitch angle θ to obtain the effective optical axis position P of the car V .
[0042] S6, according to the effective optical axis position P V Adjust the optical axis of automobile lamps.
[0043] Specifically, the specific conversion relationship between the pitch angle of the car and the optical axis position is obtained in advance based on relevant experiments. The pitch angle θ of the car includes the angle θ of the road where the car is located. I and the pitch angle θ of the car relative to the road V , that is, θ=θ I +θ V Correspondingly, in order to level the optical axis, the total optical axis position P needs to be calculated according to the pitch angle θ. T The total optical axis position P T Contains: Effective optical axis position P V and the invalid optical axis position P I , that is, P T =P V +P I . Effective optical axis position P V This is the position where the optical axis needs to be adjusted, which is the pitch angle θ of the car relative to the road surface. V The optical axis output by the leveling optical axis needs to be adjusted. The invalid optical axis position is the slope road surface angle θI Impact on the total optical axis position.
[0044] like Figure 2 As shown in the figure, when the road surface is horizontal, the pitch angle θ of the car is the angle between the car and the road surface formed by the change in the front and rear directions caused by the load of the car, that is, the angle θ of the road surface where the car is located I is 0, the car pitch angle θ is the pitch angle θ of the car relative to the road surface V At this time, P I =0, P V =P T , directly obtain the effective optical axis position P of the car according to the pitch angle θ V That's it.
[0045] like Figure 3 As shown in the figure, when the road surface is non-horizontal, θ I Not 0, the car's pitch angle θ includes the angle θ of the road on which the car is located I and the pitch angle θ of the car relative to the road V At this time, the optical axis position calculated directly based on the pitch angle θ of the car has errors. The optical axis position must be removed from the influence of the road angle such as the slope and uneven road surface. Specifically, the total optical axis position P is calculated based on the pitch angle θ of the car. T , according to the angle θ of the road where the car is located I Get the invalid optical axis position as P I Finally, according to P T =P V +P I The effective optical axis position P can be calculated V .
[0046] Finally, according to the effective optical axis position P V Just adjust the optical axis of the car lamp.
[0047] Understandably, Figure 2-3 In the figure, G is the center of the car and 1g represents the acceleration due to gravity.
[0048] Therefore, the method filters the instantaneous pitch angle according to the fluctuation value of the instantaneous pitch angle, so as to effectively filter the influence of the shaking of the car caused by external environmental factors such as the shaking of passengers in the car, the increased shaking of the engine with the increase of age and the opening of the car air conditioner on the pitch angle calculation, and adjusts the optical axis position of the car lamp according to the angle of the road where the car is located, so as to overcome the interference of the road angle such as slopes and uneven roads on the optical axis position, so that the optical axis can be kept horizontal to ensure the driving field of vision, and the gravity acceleration sensor can be used to realize the calculation of the car pitch angle and control the optical axis angle control, which can achieve the technical effect of low cost, convenient installation and high angle accuracy.
[0049] According to an embodiment of the present invention, the above-mentioned method for controlling the automobile lamp may further include: storing the invalid optical axis position as P I .
[0050] Specifically, each time the invalid optical axis position is calculated as P I Need to be stored and updated when the car Figure 2 Drive to Figure 3 When the car moves from a horizontal road to a ramp, the optical axis position changes from P to v Change to P T , it can be concluded that the invalid optical axis position is P I =P T -P V , at this time, the latest invalid optical axis position P stored can be called immediately I , recalculate the current vehicle pitch angle θ and recalculate the current total optical axis position P T , according to P V =P T -P I The effective optical axis position P is obtained V .
[0051] In summary, according to the control method of automobile lamps according to the embodiment of the present invention, the instantaneous pitch angle is filtered according to the fluctuation value of the instantaneous pitch angle, so as to effectively filter the influence of the shaking of the car caused by external environmental factors such as the shaking of passengers in the car, the increased shaking of the engine with the increase of years and the turning on of the car air conditioner on the calculation of the pitch angle, and the optical axis position of the automobile lamp is adjusted according to the angle of the road where the car is located, so as to overcome the interference of the road angles such as ramps and uneven roads on the optical axis position, so that the optical axis can be kept horizontal to ensure the driving field of vision, and the gravity acceleration sensor can be used to realize the calculation of the car pitch angle and control the optical axis angle control, so as to achieve the technical effect of low cost, convenient installation and high angle accuracy.
[0052] Corresponding to the above-mentioned method for controlling automobile lamps, the present invention also proposes a control device for automobile lamps. Since the device embodiment of the present invention corresponds to the above-mentioned method embodiment, details not disclosed in the device embodiment can be referred to the above-mentioned method embodiment and will not be repeated in the present invention.
[0053] Figure 4 is a block diagram of a control device for an automobile lamp according to an embodiment of the present invention. Figure 4 As shown, the device includes: a first acquisition module 1, a first calculation module 2, a filtering module 3, a second calculation module 4, a second acquisition module 5 and an adjustment module 6.
[0054] Among them, the first acquisition module 1 is used to obtain the gravity acceleration values in the forward direction and the vertical direction of the car in a preset period, and calculate the instantaneous pitch angle α of the car according to the gravity acceleration values in the forward direction and the vertical direction; the first calculation module 2 is used to calculate the fluctuation value of the instantaneous pitch angle α for the first preset consecutive period; the filtering module 3 is used to filter the instantaneous pitch angle α according to the fluctuation value of the instantaneous pitch angle α to obtain the effective instantaneous pitch angle β; the second calculation module 4 is used to calculate the pitch angle θ of the car based on the moving average method according to the effective instantaneous pitch angle β; the second acquisition module 5 is used to obtain the angle θ of the road surface where the car is located I , and according to the angle θ of the road where the car is located I and pitch angle θ to obtain the effective optical axis position P of the car V ; Adjustment module 6 is used according to the effective optical axis position P V Adjust the optical axis of automobile lamps.
[0055] According to one embodiment of the present invention, the filtering module 3 is specifically used to: determine whether the fluctuation value of the instantaneous pitch angle α is greater than the preset filtering threshold γ; if the fluctuation value of the instantaneous pitch angle α is greater than the preset filtering threshold γ, the corresponding instantaneous pitch angle α of the first preset continuous period is filtered out.
[0056] According to one embodiment of the present invention, the second calculation module 4 is specifically used to: obtain the effective instantaneous pitch angle β of the second consecutive preset period; calculate the average value of the effective instantaneous pitch angle β of the second consecutive preset period, and use the average value as the pitch angle θ of the vehicle.
[0057] According to an embodiment of the present invention, the second acquisition module 5 is specifically used to: I Get the invalid optical axis position as P I , and obtain the total optical axis position P according to the pitch angle θ T ; According to the total optical axis position P T and the invalid optical axis position is P I The effective optical axis position P is obtained by the difference V .
[0058] According to an embodiment of the present invention, the above-mentioned control device for automobile lamps further includes: a storage module, the storage module is used to store the invalid optical axis position as P I .
[0059] According to the control device of the automobile lamp of the embodiment of the present invention, the instantaneous pitch angle is filtered according to the fluctuation value of the instantaneous pitch angle, so as to effectively filter the influence of the shaking of the car caused by external environmental factors such as the shaking of the passengers in the car, the increased shaking of the engine with the increase of age and the turning on of the car air conditioner on the pitch angle calculation, and the optical axis position of the automobile lamp is adjusted according to the angle of the road where the car is located, so as to overcome the interference of the road angle of ramps, uneven roads, etc. on the optical axis position, so that the optical axis can be kept horizontal to ensure the driving field of vision, and the gravity acceleration sensor can be used to realize the calculation of the car pitch angle and control the optical axis angle control, so as to achieve the technical effect of low cost, convenient installation and high angle accuracy.
[0060] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. "Multiple" means two or more, unless otherwise clearly and specifically defined.
[0061] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily target the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. In addition, the technical personnel in this field can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples without contradiction. In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily target the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. Furthermore, those skilled in the art may combine and associate different embodiments or examples and features of different embodiments or examples described in this specification without mutual contradiction.
[0062] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.
[0063] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0064] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0065] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0066] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0067] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.
[0068] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for controlling an automobile lamp, characterized in that: The following steps are involved: Acquire the gravity acceleration values in the forward direction and the vertical direction of the vehicle at a preset period, and calculate the instantaneous pitch angle α of the vehicle according to the gravity acceleration values in the forward direction and the vertical direction; Calculating the fluctuation value of the instantaneous pitch angle α for a first preset number of consecutive periods; filtering the instantaneous pitch angle α according to the fluctuation value of the instantaneous pitch angle α to obtain an effective instantaneous pitch angle β; The pitch angle θ of the vehicle is calculated based on the effective instantaneous pitch angle β using the moving average method; Get the road angle θ where the car is located I , and according to the angle θ of the road surface where the car is located I and the pitch angle θ to obtain the effective optical axis position P of the car V ; According to the effective optical axis position P V Adjusting the optical axis of the automobile lamp; Among them, get the road angle θ where the car is located I , and according to the angle θ of the road surface where the car is located I and the pitch angle θ to obtain the effective optical axis position P of the car V , specifically including: According to the angle θ of the road where the car is located I Get the invalid optical axis position as P I , and obtain the total optical axis position P according to the pitch angle θ T ; According to the total optical axis position P T and the invalid optical axis position is P I The effective optical axis position P is obtained by the difference V .
2. The control method of the automobile lamp according to claim 1, characterized in that: Filtering the instantaneous pitch angle α according to the fluctuation value of the instantaneous pitch angle α to obtain the effective instantaneous pitch angle β specifically includes: Determine whether the fluctuation value of the instantaneous pitch angle α is greater than a preset filtering threshold γ; If the fluctuation value of the instantaneous pitch angle α is greater than the preset filtering threshold γ, the instantaneous pitch angle α of the corresponding first preset consecutive periods is filtered out.
3. The control method of the automobile lamp according to claim 1, characterized in that: The pitch angle θ of the vehicle is calculated based on the effective instantaneous pitch angle β based on the moving average method, including: Acquire the effective instantaneous pitch angle β for a second consecutive preset period; An average value of the effective instantaneous pitch angles β of the second preset consecutive periods is calculated, and the average value is used as the pitch angle θ of the vehicle.
4. The method for controlling an automobile lamp according to claim 1, characterized in that: Also includes: Store the invalid optical axis position as P I .
5. A control device for automobile lamps, characterized in that: include: A first acquisition module, the first acquisition module is used to acquire the gravity acceleration values in the forward direction and the vertical direction of the vehicle at a preset period, and calculate the instantaneous pitch angle α of the vehicle according to the gravity acceleration values in the forward direction and the vertical direction; A first calculation module, the first calculation module is used to calculate the fluctuation value of the instantaneous pitch angle α for a first preset number of consecutive cycles; A filtering module, the filtering module is used to filter the instantaneous pitch angle α according to the fluctuation value of the instantaneous pitch angle α to obtain a valid instantaneous pitch angle β; A second calculation module, the second calculation module is used to calculate the pitch angle θ of the vehicle based on the effective instantaneous pitch angle β based on a moving average method; The second acquisition module is used to obtain the road angle θ where the car is located. I , and according to the angle θ of the road surface where the car is located I and the pitch angle θ to obtain the effective optical axis position P of the car V ; The adjustment module is used to adjust the effective optical axis position P V Adjusting the optical axis of the automobile lamp; The second acquisition module is specifically used for: According to the angle θ of the road where the car is located I Get the invalid optical axis position as P I , and obtain the total optical axis position P according to the pitch angle θ T ; According to the total optical axis position P T and the invalid optical axis position is P I The effective optical axis position P is obtained by the difference V .
6. The control device for automobile lamps according to claim 5, characterized in that: The filtering module is specifically used for: Determine whether the fluctuation value of the instantaneous pitch angle α is greater than a preset filtering threshold γ; If the fluctuation value of the instantaneous pitch angle α is greater than the preset filtering threshold γ, the instantaneous pitch angle α of the corresponding first preset consecutive periods is filtered out.
7. The control device for automobile lamps according to claim 5, characterized in that: The second calculation module is specifically used for: Acquire the effective instantaneous pitch angle β for a second consecutive preset period; An average value of the effective instantaneous pitch angles β of the second preset consecutive periods is calculated, and the average value is used as the pitch angle θ of the vehicle.
8. The control device for automobile lamps according to claim 5, characterized in that: Also includes: A storage module, the storage module is used to store the invalid optical axis position as P I .
Citation Information
Patent Citations
Control device of vehicular lamp, vehicular lamp system and control method thereof
CN102537853A
Micro inertial measurement unit and measurement unit based adaptive headlamp control method
CN104802697A