Method, device and storage medium for controlling a rear view mirror
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- DONGFENG MOTOR GRP
- Filing Date
- 2024-09-26
- Publication Date
- 2026-06-19
Smart Images

Figure CN119160086B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle electronic control technology, and in particular to control methods, devices, equipment and storage media for reversing rearview mirrors. Background Technology
[0002] With the rapid growth of the automotive market, vehicle usage environments are becoming increasingly congested. Especially when reversing in tight spaces, drivers face significant safety hazards. In this situation, the automatic ground-illuminating function of the rearview mirror becomes particularly important. This function provides the driver with a wider field of vision while reversing, enhancing control over wheel position and thus improving driving safety. Even without a 360-degree surround-view camera system, the rearview mirror effectively assists the driver in avoiding collisions and scrapes.
[0003] Currently, there are two main technical solutions on the market for achieving automatic ground-level illumination in rearview mirrors. One method ensures the accuracy of the mirror's position by controlling the movement time of the mirror motor. The other method uses voltage signals to characterize the mirror's position. While these solutions each have their advantages and disadvantages, they all attempt to address the problem of precise control of the rearview mirror during reversing to varying degrees.
[0004] The first method, control based on motor motion time, may suffer from deviations in long-distance precise control due to non-uniform motor characteristics (such as non-uniform speed motors). Furthermore, while voltage signal methods can theoretically achieve high accuracy, practical applications require high real-time position feedback and have strict requirements on chip sampling time. With increasing reversing frequency, accumulated errors gradually affect the rearview mirror's return accuracy, causing a gradual decline in control effectiveness. Therefore, existing methods cannot effectively eliminate these errors, thus affecting the accuracy and reliability of the rearview mirror after multiple adjustments. Therefore, how to precisely control the rearview mirror's ground illumination has become an urgent problem to be solved.
[0005] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention
[0006] The purpose of this application is to provide a control method, device, equipment and storage medium for a reversing rearview mirror, aiming to solve the technical problem of how to accurately control the rearview mirror's illumination of the ground.
[0007] To achieve the above objectives, this application proposes a method for controlling a reversing rearview mirror, the method comprising:
[0008] Obtain the target compensation value and initial position of the rearview mirror;
[0009] When the vehicle is shifted to reverse gear and the duration is greater than the first preset time, the first stroke to be moved is calculated based on the initial position and the preset position of the rearview mirror on the ground.
[0010] The rearview mirror is controlled to illuminate the ground based on the target compensation value, the preset rearview mirror ground position, and the first movement stroke.
[0011] In one embodiment, the step of controlling the rearview mirror to illuminate the ground based on the target compensation value, the preset rearview mirror ground position, and the first movement stroke includes:
[0012] When the first movement distance is less than or equal to the target compensation value, the target compensation time is obtained;
[0013] The first time to move is calculated based on the target compensation value, the target compensation time, and the first distance to be moved.
[0014] Drive the rearview mirror motor according to the first waiting time to make the rearview mirror illuminate the ground.
[0015] In one embodiment, the step of controlling the rearview mirror to illuminate the ground based on the target compensation value, the preset rearview mirror ground position, and the first movement stroke includes:
[0016] When the first movement stroke is greater than the target compensation value, the rearview mirror motor is controlled to move according to the preset rearview mirror ground position, and the first feedback position is obtained in real time.
[0017] When the distance between the first feedback position and the preset rearview mirror ground position is less than or equal to the target compensation value, the rearview mirror motor is controlled to stop moving.
[0018] In one embodiment, after the step of controlling the rearview mirror to illuminate the ground based on the target compensation value, the preset rearview mirror ground illumination position, and the first movement stroke, the method further includes:
[0019] When the vehicle gear changes from reverse to non-reverse, the rearview mirror is controlled to return to the initial position based on the target compensation value, the target compensation time, and the initial position.
[0020] In one embodiment, the step of controlling the rearview mirror to return to the initial position based on the target compensation value, the target compensation time, and the initial position when the vehicle gear changes from reverse to non-reverse includes:
[0021] When the vehicle gear changes from reverse gear to non-reverse gear, the second feedback position of the rearview mirror is obtained;
[0022] The second stroke to be moved is calculated based on the second feedback position and the initial position;
[0023] When the second movement distance is less than or equal to the target compensation value, the second movement time is calculated based on the target compensation value, the target compensation time, and the second movement distance, and the rearview mirror motor is driven according to the second movement time to make the rearview mirror return to the initial position.
[0024] When the second travel distance to be moved is greater than the target compensation value, the rearview mirror motor is controlled to move according to the initial position, and the third feedback position is obtained in real time;
[0025] When the distance between the third feedback position and the initial position is less than or equal to the target compensation value, the rearview mirror motor is controlled to stop moving.
[0026] In one embodiment, the step of obtaining the target compensation value of the rearview mirror includes:
[0027] When the output state of the rearview mirror motor changes from normal output to stop output, the first position feedback signal value is read, and the second position feedback signal value is read after waiting for a second preset time.
[0028] The difference between the first position feedback signal value and the second position feedback signal value is used as the initial compensation value;
[0029] The target compensation value is obtained by calculating the average value based on the initial compensation value.
[0030] In one embodiment, the step of obtaining the initial position of the rearview mirror includes:
[0031] Obtain the fourth feedback position of the rearview mirror;
[0032] If no manual adjustment command or memory position recall command is received, the fourth feedback position is taken as the initial position of the rearview mirror;
[0033] When a manual adjustment command or a memory position recall command is received, the rearview mirror motor is controlled according to the manual adjustment command or the memory position recall command, and the fifth feedback position of the rearview mirror is obtained after the rearview mirror motor stops outputting for a third preset time.
[0034] The initial position of the rearview mirror is obtained based on the fifth feedback position and the target compensation value, and the initial position is stored.
[0035] Furthermore, to achieve the above objectives, this application also proposes a control device for a reversing rearview mirror, the device comprising:
[0036] The data acquisition module is used to acquire the target compensation value and initial position of the rearview mirror;
[0037] The data processing module is used to calculate the first travel distance based on the initial position and the preset rearview mirror position when the vehicle gear is changed to reverse gear and the duration is greater than the first preset time.
[0038] The control module is used to control the rearview mirror to illuminate the ground based on the target compensation value, the preset rearview mirror ground position, and the first movement stroke.
[0039] In addition, to achieve the above objectives, this application also proposes a control device for a reversing rearview mirror, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the control method for the reversing rearview mirror as described above.
[0040] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the reversing rearview mirror control method described above.
[0041] One or more technical solutions proposed in this application have at least the following technical effects:
[0042] The system acquires the target compensation value and initial position of the rearview mirror. When the vehicle shifts to reverse gear and the duration exceeds a first preset time, the system calculates the first required movement distance based on the initial position and the preset ground-view mirror position. The system then controls the rearview mirror to illuminate the ground based on the target compensation value, the preset ground-view mirror position, and the first required movement distance. First, acquiring the target compensation value and initial position of the rearview mirror provides the system with a reference and correction parameters for adjustment. The target compensation value corrects for possible deviations caused by motor characteristics or measurement errors, while the initial position is the rearview mirror position during normal vehicle operation, providing a reference for subsequent adjustments. Next, when the vehicle shifts to reverse gear and maintains the position for more than the first preset time, the system calculates the first required movement distance based on the initial position and the preset ground-view mirror position, i.e., the actual distance the rearview mirror needs to move. This step ensures that the system can accurately calculate the required adjustment amount in reverse mode so that the rearview mirror can accurately reach the preset ground-view position. Finally, the system controls the rearview mirror to illuminate the ground based on the target compensation value, the preset ground illumination position, and the first expected movement stroke. If the first expected movement stroke is greater than the target compensation value, the system drives the motor until the distance between the feedback position and the preset ground illumination position is less than or equal to the target compensation value, thus achieving precise adjustment. This application can precisely control the rearview mirror's ground illumination, ensuring that the rearview mirror provides a clear view when reversing, significantly improving reversing safety. At the same time, by compensating for deviations and optimizing adjustment accuracy, it enhances the system's stability and reliability. Attached Figure Description
[0043] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0044] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0045] Figure 1 This is a flowchart illustrating an embodiment of the control method for a reversing rearview mirror in this application.
[0046] Figure 2 This is a schematic diagram of the motor control principle provided in Embodiment 1 of the control method for the reversing rearview mirror of this application;
[0047] Figure 3 This is a schematic diagram of the position feedback signal curve provided in Embodiment 1 of the control method for the reversing rearview mirror of this application;
[0048] Figure 4This is a schematic diagram of the motor operating position provided in Embodiment 1 of the control method for the reversing rearview mirror of this application;
[0049] Figure 5 This is a schematic diagram of the control process for the reversing rearview mirror provided in Embodiment 1 of the control method for the reversing rearview mirror of this application.
[0050] Figure 6 This is a flowchart illustrating Embodiment 2 of the control method for the reversing rearview mirror in this application;
[0051] Figure 7 This is a schematic diagram of the rearview mirror return control process provided in Embodiment 2 of the control method for the reversing rearview mirror of this application;
[0052] Figure 8 This is a schematic diagram of the module structure of the control device for the reversing rearview mirror according to an embodiment of this application;
[0053] Figure 9 This is a schematic diagram of the hardware operating environment involved in the control method of the reversing rearview mirror in the embodiments of this application.
[0054] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0055] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.
[0056] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0057] With the rapid development of the automotive market, vehicle usage environments are becoming increasingly congested, especially when reversing in tight spaces, posing significant safety hazards to drivers. In this context, the automatic ground-illumination function of rearview mirrors is particularly important. It provides a wider field of vision while reversing, enhances control over wheel position, and thus improves driving safety. There are two main technical solutions on the market to achieve this function: one ensures the accuracy of the mirror's position by controlling the movement time of the rearview mirror motor; the other uses voltage signals to characterize the mirror's position. While these solutions each have their advantages and disadvantages, they all attempt to solve the problem of precise control of the rearview mirror during reversing. However, existing technologies cannot completely eliminate errors, affecting the accuracy and reliability of the rearview mirror after multiple adjustments. For example, control based on motor movement time may lead to deviations in long-distance precise control due to uneven motor characteristics. While the voltage signal method theoretically has higher accuracy, practical applications require high real-time position feedback and strict requirements on chip sampling time. Accumulated errors affect the rearview mirror's return accuracy, causing a gradual decline in control effectiveness.
[0058] The main solution of this application embodiment is as follows: An adjustment benchmark is set by acquiring the initial position and target compensation value of the rearview mirror. After the vehicle is engaged in reverse gear and remains in reverse for a certain period, the distance the rearview mirror needs to move is calculated to adjust it to the preset ground-viewing position. Subsequently, the system controls the rearview mirror based on the compensation value and the required movement distance to ensure it is accurately adjusted to the target position. If the movement distance exceeds the compensation value, the motor will continue to drive until the required accuracy is achieved.
[0059] It should be noted that the executing entity of this application embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device, vehicle system, rearview mirror control system, rearview mirror motor control system, motor control unit, etc., capable of realizing the above functions. The following description uses a rearview mirror control system as an example to illustrate this embodiment and the subsequent embodiments.
[0060] Based on this, the embodiments of this application provide a method for controlling a reversing rearview mirror, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the control method for the reversing rearview mirror of this application.
[0061] In this embodiment, the control method for the reversing rearview mirror includes steps S10 to S30:
[0062] Step S10: Obtain the target compensation value and initial position of the rearview mirror;
[0063] It should be noted that the rearview mirror refers to the reversing rearview mirror on a car, that is, a mirror used to help the driver see the situation behind the vehicle while reversing. In this embodiment, the adjustment of the rearview mirror involves not only the conventional horizontal and vertical angle adjustments, but also the adjustment of the mirror angle to achieve the ground illumination function. The target compensation value is an adjustment value calculated to compensate for various errors (such as nonlinearity and delay in motor movement) when controlling the position of the rearview mirror. The target compensation value is used to adjust the precision of motor control when the rearview mirror moves from one position to another, thereby ensuring that the mirror can accurately reach the set target position. This compensation value is determined based on the actual motor movement and the measurement results of the position feedback signal. The initial position refers to the default or reference position of the rearview mirror in normal driving conditions before the automatic ground illumination function of the reversing rearview mirror is activated. This is the position of the rearview mirror without any automatic adjustment. After reversing, the rearview mirror needs to be adjusted from this initial position to the target position (ground illumination state), and then return to the initial position from the target position after reversing is completed.
[0064] Understandably, the first step is to record the rearview mirror's initial position while in normal driving mode—the default position before any reversing adjustments. Then, when the vehicle enters reversing mode, the rearview mirror adjusts to a new position to achieve its ground-illuminating function; this new position should be recorded as the target position. Next, by measuring the actual movement and position feedback of the motor during the adjustment process, a target compensation value is calculated. This value compensates for errors in movement (such as motor unevenness or delay). Finally, this compensation value is used to adjust the motor control, ensuring the rearview mirror accurately adjusts to the target position and accurately returns to the recorded initial position after reversing. The purpose of this is to ensure the rearview mirror maintains high accuracy and stability during multiple adjustments.
[0065] Please refer to Figure 2 , Figure 2 This diagram illustrates the motor control principle of a reversing rearview mirror control method according to Embodiment 1 of this application. It shows a motor drive system for precise control of a car rearview mirror, including a motor control unit (MCU), a positive motor drive voltage (Motor+), a negative motor drive voltage (Motor-), and a position sensor feedback input (Sensor5V+). In this system, the MCU receives signals from the vehicle's gear position and driver operations, and accurately calculates the distance and time the motor should move based on these commands and a pre-set control strategy. Motor+ and Motor- are the motor's power supply, providing the necessary voltage to drive the rearview mirror to a predetermined position. The position sensor (Sensor5V+) monitors the rearview mirror's position in real time and converts it into a voltage signal, feeding it back to the MCU so that the system can adjust based on the difference between the feedback position and the target position (the feedback position may not be the same as the actual position, especially when the motor is moving or its state changes). Through this precise control strategy, the system can automatically adjust the rearview mirrors to the ground position when the vehicle is reversing, and then precisely return the rearview mirrors to their initial positions after reversing is complete, thereby improving the safety and convenience of reversing in tight spaces.
[0066] As an example, the steps for obtaining the target compensation value of the rearview mirror include: when the output state of the rearview mirror motor changes from normal output to stop output, reading the first position feedback signal value, and reading the second position feedback signal value after waiting for a second preset time; using the difference between the first position feedback signal value and the second position feedback signal value as the initial compensation value; and calculating the average value based on the initial compensation value to obtain the target compensation value.
[0067] A rearview mirror motor is an electric device typically installed in a car's rearview mirror system to precisely adjust the position of the rearview mirror. The motor helps the driver gain a better view by changing the angle of the mirror. It can be a DC motor or a stepper motor, controlling the horizontal and vertical movement of the rearview mirror. Output status refers to the motor's state at different operating stages. This mainly includes whether the motor is operating and its operating mode. Output status helps determine whether the motor is performing an adjustment task or has stopped. Normal output is the state of the motor when it is operating normally. Specifically, the motor receives a control signal and operates accordingly, applying appropriate current or voltage to the rearview mirror to drive it to the predetermined position. In this state, the motor's output is stable, and the rearview mirror adjusts its position as planned. Stopped output is the state where the motor no longer provides power. In this case, the motor stops supplying power and no longer drives the rearview mirror to move; the rearview mirror remains in its current position. This usually occurs after the motor has completed its adjustment task or when static position measurements are required. The first position feedback signal value refers to the rearview mirror position feedback signal value read for the first time after the motor state switches from normal output to stop output. This signal value is obtained through a position sensor and reflects the current position of the rearview mirror after the motor stops. This value serves as the initial position data in a stationary state. The second preset duration refers to the preset waiting time after reading the first position feedback signal value to ensure the rearview mirror position is stable. This time allows the rearview mirror to remain stationary long enough so that the position feedback signal value does not become unstable due to the instantaneous changes when the motor just stops. Typically, this duration is set according to the characteristics of the motor and sensor; in this embodiment, it is 1 second. The second position feedback signal value refers to the rearview mirror position feedback signal value read again after the second preset duration. This signal value reflects the stable position of the rearview mirror after the motor has completely stopped. The second reading is used to confirm the position of the rearview mirror in a stationary state and provide more accurate position data. The initial compensation value is calculated by the difference between the first and second position feedback signal values. This difference represents the change in the position feedback signal after the motor stops and is used to detect and compensate for stationary position deviations caused by motor characteristics or sensor errors. The target compensation value is the result of averaging multiple initial compensation values. The target compensation value is used to correct position errors during the rearview mirror adjustment process to improve the accuracy of the adjustment. By averaging multiple measurement results, random errors can be eliminated, making the compensation more stable and reliable.
[0068] First, when the rearview mirror motor switches from normal output (i.e., driving the rearview mirror to move) to a stopped output (i.e., the motor no longer provides power), the first position feedback signal value of the rearview mirror is immediately recorded. This initial measurement reflects the position of the rearview mirror immediately upon stopping. Next, a preset time (a second preset duration) is waited to ensure the rearview mirror's position is stable in a stationary state, and then the second position feedback signal value is recorded again. The difference between the first and second position feedback signal values is calculated as the initial compensation value, which reflects the position deviation in the stopped state. Finally, by averaging the multiple measured initial compensation values, the target compensation value is obtained. This value is used to correct errors during the motor adjustment process, ensuring that the rearview mirror accurately reaches the target position and remains stable.
[0069] Please refer to Figure 3 , Figure 3 This diagram illustrates the position feedback signal curve provided in Embodiment 1 of the control method for a reversing rearview mirror according to this application. The diagram shows the real-time monitoring of the rearview mirror's position feedback signal and the acquisition of its actual position. In the diagram, the horizontal axis represents time, and the vertical axis represents the position value of the rearview mirror. The curve represents the voltage signal AD value fed back by the position sensor of the rearview mirror in motion or stationary states. These values fluctuate over time. When the rearview mirror is stationary, its feedback voltage signal will jump within a certain range, rather than being a fixed value. The system determines the actual position of the rearview mirror by calculating the statistical data of these jump values. If the rearview mirror remains stationary for more than 2 seconds, the system considers the acquired position to be real and stores it as the actual position A of the rearview mirror. This position is the reference position of the rearview mirror in non-reverse gear state and is the basis for the system's precise control. During reversing, the system calculates the motor's compensation stroke and movement time based on the difference between this actual position A and the target position T, ensuring that the rearview mirror can be accurately adjusted to the preset ground-illuminating position. In this way, the system can maintain precise control over the position of the rearview mirror even after multiple reversing operations, reducing error accumulation and improving driving safety.
[0070] Please refer to Figure 4 , Figure 4This diagram illustrates the motor's operating position in Embodiment 1 of the control method for a reversing rearview mirror according to this application. It shows the motion compensation mechanism of the rearview mirror motor in the automatic ground illumination function during reversing, including the actual motor position A, target position T, compensation stroke S, and motor operating time Δt. In the diagram, Min Pos represents the minimum position of the motor's movement, i.e., the lowest limit position the rearview mirror can move to, while Max Pos represents the maximum position of the motor's movement, i.e., the highest limit position the rearview mirror can move to. Point A represents the actual position of the motor at a certain moment, and point T represents the target position the motor needs to move to in order to achieve the accurate ground illumination function of the rearview mirror. The compensation stroke S refers to the additional compensation the system needs to make for the motor's stroke due to the delay in motor movement and position feedback signal sampling, to ensure that the rearview mirror can accurately move to the predetermined target position. The motor operating time Δt is calculated based on the motor's moving speed and the compensation stroke S. The system controls the motor to run during this time to compensate for the position deviation caused by sampling and processing delays. Through this precise control strategy, the system can ensure that the rearview mirror automatically adjusts to the ground position when reversing and accurately returns to the initial position after reversing, thereby improving the safety and convenience of reversing in tight spaces.
[0071] As an example, the steps for obtaining the initial position of the rearview mirror include: obtaining a fourth feedback position of the rearview mirror; when no manual adjustment command or memory position recall command is received, using the fourth feedback position as the initial position of the rearview mirror; when a manual adjustment command or memory position recall command is received, controlling the rearview mirror motor according to the manual adjustment command or memory position recall command, and obtaining the fifth feedback position of the rearview mirror after the rearview mirror motor stops outputting for a third preset time; obtaining the initial position of the rearview mirror according to the fifth feedback position and the target compensation value, and storing the initial position.
[0072] The fourth feedback position refers to the rearview mirror position feedback signal value read in the current operating state. This value is obtained under specific conditions (i.e., without receiving manual adjustment commands or memory position recall commands) and represents the actual position of the rearview mirror at the current moment. Manual adjustment commands refer to instructions from the driver or control system requiring manual adjustment of the rearview mirror. These commands are typically used to change the position of the rearview mirror so that the driver can adjust it according to personal needs or field of vision requirements. The memory position recall command refers to recalling the stored position of the rearview mirror from a preset memory position. The driver can use this command to move the rearview mirror to a previously recorded specific position to quickly restore the commonly used viewing angle setting. Multiple rearview mirror positions can be recorded; a driver can have multiple commonly used viewing angle settings, and a vehicle can also record multiple drivers' personalized settings. The third preset duration refers to the preset waiting time after the rearview mirror motor receives the adjustment command and begins to execute the adjustment; in this embodiment, it is 2 seconds. This time is used to ensure that the rearview mirror motor completely stops outputting and the position feedback signal stabilizes, so as to accurately read the new position of the rearview mirror. The fifth feedback position is the rearview mirror position feedback signal value after the rearview mirror motor has completed adjustment and remained stationary for the third preset time. This value reflects the actual position after adjustment and is used to calculate the accurate initial position of the rearview mirror.
[0073] First, the fourth feedback position of the rearview mirror is read, which is the rearview mirror position feedback signal value obtained under normal conditions. If the system does not receive any manual adjustment command (a command requiring manual adjustment of the rearview mirror position) or memory position recall command (a command to restore the rearview mirror from a preset position) at this time, the fourth feedback position is directly used as the initial position of the rearview mirror. If a manual adjustment command or memory position recall command is received, the rearview mirror motor is adjusted according to these commands. Then, after the motor stops outputting and remains stationary for a third preset time (to ensure position stability), the fifth feedback position is read, which is the actual position feedback value of the rearview mirror after adjustment. Finally, the fifth feedback position is combined with the target compensation value (a calculated value used to compensate for adjustment errors) to calculate the accurate initial position, and this initial position is stored for later use.
[0074] Step S20: When the vehicle gear is changed to reverse gear and the duration is greater than the first preset time, the first travel distance to be moved is calculated based on the initial position and the preset rearview mirror ground position.
[0075] It should be noted that vehicle gear refers to the operating mode or position of the car's transmission. The gear determines the vehicle's driving state, such as forward, reverse, or parking. Reverse gear is a gear specifically used for reversing. When the transmission is set to reverse, the vehicle's direction of travel reverses, and the rearview mirrors adjust accordingly. The first preset duration refers to the minimum time that needs to be maintained after the vehicle is switched to reverse gear. This time is used to ensure the stability of the vehicle's gear to accurately trigger the rearview mirror adjustment function; in this embodiment, it is 1 second. The preset rearview mirror ground position refers to the specific position the rearview mirror should be adjusted to during reversing to provide the driver with a clear view of the ground. This is to ensure that the rear of the vehicle and the surrounding environment can be effectively observed while reversing. The first expected movement distance is the distance the rearview mirror needs to move, calculated based on the vehicle being switched to reverse gear. This distance is determined by the difference between the initial position and the preset rearview mirror ground position, representing the actual amount of adjustment the rearview mirror needs to make during reversing.
[0076] Understandably, the process begins by recording the initial position of the rearview mirror, representing its position when the vehicle is not reversing. Next, the target position to which the rearview mirror should be adjusted when reversing is determined, i.e., the preset ground-viewing position. Then, by comparing the difference between the initial position and the preset ground-viewing position, the actual distance the rearview mirror needs to move is calculated; this distance is the first required travel distance. This calculation process ensures that the rearview mirror can be accurately adjusted to the target position during reversing, thereby providing better ground visibility and improving safety when reversing.
[0077] Step S30: Control the rearview mirror to illuminate the ground according to the target compensation value, the preset rearview mirror ground position, and the first movement stroke.
[0078] It should be noted that "ground reflection" refers to adjusting the rearview mirror to a specific angle so that its surface clearly reflects the ground behind the vehicle. This is usually done while reversing to provide a better view of the ground, helping the driver observe the ground conditions behind the vehicle and thus improving safety while reversing.
[0079] Understandably, based on the target compensation value, the preset ground-illuminating position of the rearview mirror, and the first expected movement distance, the system precisely adjusts the position of the rearview mirror. First, the target compensation value corrects for positional deviations caused by motor characteristics or measurement errors, ensuring the rearview mirror accurately reaches the target position. Then, the preset ground-illuminating position is used as a reference to ensure the rearview mirror is adjusted to the ideal angle for optimal ground visibility. Finally, based on the first expected movement distance—representing the actual distance the rearview mirror needs to move from its initial position to the preset ground-illuminating position—the system controls the motor to precisely adjust the rearview mirror to the preset position, thereby achieving accurate ground-illuminating control of the rearview mirror and improving visibility and driving safety when reversing.
[0080] As an example, the step of controlling the rearview mirror to illuminate the ground according to the target compensation value, the preset rearview mirror ground position, and the first to-be-moved travel includes: when the first to-be-moved travel is less than or equal to the target compensation value, obtaining a target compensation time; calculating a first to-be-moved time according to the target compensation value, the target compensation time, and the first to-be-moved travel; and driving the rearview mirror motor according to the first to-be-moved time to make the rearview mirror illuminate the ground.
[0081] The target compensation time refers to the time required for the rearview mirror to move by the compensation value. This time is calculated based on the target compensation value and is used to determine the actual time required for the motor to drive the rearview mirror to eliminate positional deviation. The first waiting time is the time calculated based on the target compensation value, the target compensation time, and the first waiting stroke. This time is used to drive the rearview mirror motor to move the rearview mirror to the preset ground-illuminating position. This time takes into account the impact of the target compensation value on the rearview mirror adjustment process, ensuring that the rearview mirror can complete accurate adjustment within an appropriate time.
[0082] First, if the initial travel distance (i.e., the distance the rearview mirror moves from its initial position to the preset ground-illuminating position) is less than or equal to the target compensation value (i.e., the maximum positional deviation that needs to be compensated), the system will determine the target compensation time, which is the time required for the rearview mirror to move the target compensation value distance. Next, the system uses the target compensation value, the target compensation time, and the initial travel distance to calculate the initial movement time, which is the time required to control the rearview mirror motor to ensure that the rearview mirror can accurately adjust to the preset ground-illuminating position. Finally, based on the calculated initial movement time, the system drives the rearview mirror motor to perform the corresponding movement, thereby ensuring that the rearview mirror accurately reaches the ground-illuminating state and improves the clarity of the reversing view.
[0083] As an example, the step of controlling the rearview mirror to illuminate the ground based on the target compensation value, the preset rearview mirror ground position, and the first movement stroke includes: when the first movement stroke is greater than the target compensation value, controlling the rearview mirror motor to move according to the preset rearview mirror ground position, and obtaining a first feedback position in real time; when the distance between the first feedback position and the preset rearview mirror ground position is less than or equal to the target compensation value, controlling the rearview mirror motor to stop moving.
[0084] The first feedback position refers to the real-time measurement of the rearview mirror position feedback value during the adjustment process of the rearview mirror motor. This feedback value is data obtained by the motor control system from a position sensor or similar device, reflecting the current measured position of the rearview mirror. This feedback position is not the same as the actual position, because the actual position needs to be calculated by adding a target compensation value. Therefore, the first feedback position represents the current measurement value during the adjustment process, while the actual position is the first feedback position plus the target compensation value.
[0085] First, if the initial movement distance of the rearview mirror, i.e., the distance it needs to move, is greater than the target compensation value, it means the adjustment distance of the rearview mirror exceeds the compensation range, and therefore further adjustment is required. The system will control the rearview mirror motor to move according to the preset ground-illumination position of the rearview mirror and acquire the first feedback position in real time. This is the current measured position value of the rearview mirror detected by the motor control system. The purpose of acquiring the feedback position is to monitor the position change of the rearview mirror in real time to ensure that it is adjusted in the correct direction. When the system detects that the distance between the first feedback position and the preset ground-illumination position of the rearview mirror is less than or equal to the target compensation value, that is, the rearview mirror has approached or reached the predetermined ideal position, it means that the position adjustment is accurate enough. At this time, the movement of the rearview mirror motor is stopped to avoid over-adjustment or position drift, thereby completing the precise ground-illumination adjustment and ensuring that the rearview mirror provides the required reversing view.
[0086] Please refer to Figure 5 , Figure 5This is a schematic diagram of the control flow for a rearview mirror illuminating the ground, provided in Embodiment 1 of the control method for a reversing rearview mirror according to this application. The diagram illustrates the control flow when the rearview mirror performs the automatic ground-illuminating function during reversing. The process starts at the "Start" node, first checking if the rearview mirror is stationary and if the driver has engaged reverse gear (R). If these conditions are met, the system determines if the distance between the target position T and the current position A is greater than the compensation stroke S. If the distance is greater than S, the system calculates the time t1 required for the drive motor to move, and then the drive motor begins to move towards the target position. During the motor's movement, the system monitors the distance between the feedback position A' and the target position T in real time, and simultaneously checks if the motor's running time has reached or exceeded the predetermined time t1. If the real-time feedback distance between the position A' and the target position T is less than or equal to the compensation stroke S, or if the motor's running time has reached or exceeded the calculated movement time t1, the system determines that the rearview mirror has reached the target position T. At this point, the process reaches the "End" node, and the rearview mirror illuminating the ground action is completed. If these conditions are not met, the motor will continue to move until the conditions are met. This process ensures that the rearview mirror can be precisely adjusted to the preset ground position, improving safety and accuracy when reversing.
[0087] This embodiment provides a method for controlling a reversing rearview mirror. The method involves acquiring a target compensation value and an initial position for the rearview mirror. When the vehicle shifts to reverse gear and the duration exceeds a first preset time, a first required movement distance is calculated based on the initial position and a preset ground-view mirror position. The method then controls the rearview mirror to illuminate the ground based on the target compensation value, the preset ground-view mirror position, and the first required movement distance. First, acquiring the target compensation value and initial position provides the system with a reference and correction parameters for adjustment. The target compensation value corrects for possible deviations caused by motor characteristics or measurement errors, while the initial position is the rearview mirror position during normal vehicle operation, providing a reference for subsequent adjustments. Next, when the vehicle shifts to reverse gear and maintains the position for more than a first preset time, the system calculates the first required movement distance based on the initial position and the preset ground-view mirror position—the actual distance the rearview mirror needs to move. This step ensures that the system can accurately calculate the required adjustment amount in reversing mode, so that the rearview mirror can accurately reach the preset ground-view position. Finally, the system controls the rearview mirror to illuminate the ground based on the target compensation value, the preset ground illumination position, and the first expected movement stroke. If the first expected movement stroke is greater than the target compensation value, the system drives the motor until the distance between the feedback position and the preset ground illumination position is less than or equal to the target compensation value, thus achieving precise adjustment. This embodiment can accurately control the rearview mirror's ground illumination, ensuring that the rearview mirror provides a clear view when reversing, significantly improving reversing safety. At the same time, by compensating for deviations and optimizing adjustment accuracy, the system's stability and reliability are improved.
[0088] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in Embodiment 1 above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 6 , Figure 6 This is a flowchart illustrating a second embodiment of the reversing rearview mirror control method of this application. Following step S30, the reversing rearview mirror control method further includes step S31:
[0089] Step S31: When the vehicle gear changes from reverse gear to non-reverse gear, the rearview mirror is controlled to return to the initial position according to the target compensation value, the target compensation time, and the initial position.
[0090] It should be noted that non-reverse gears refer to shifting the vehicle's gear from reverse (R) to any other gear, including but not limited to park (P), drive (D), and neutral (N). These gears do not involve reversing operations, hence the term "non-reverse gears."
[0091] Understandably, when the vehicle shifts from reverse to a non-reverse gear, the system initiates the rearview mirror return operation. First, the system references target compensation values and target compensation time; these parameters correct for any deviations and movement delays that may occur during the rearview mirror adjustment process. The system also considers the previously recorded initial position, i.e., the rearview mirror position when the vehicle is in normal driving conditions. Based on this data, the system controls the rearview mirror motor, accurately moving it back to its initial position from the reversing position. This process ensures that the rearview mirror accurately returns to its normal position after the reversing operation, avoiding long-term positional deviations caused by reversing adjustments, thereby improving the driving experience and ensuring overall vehicle safety.
[0092] As an example, when the vehicle gear changes from reverse to non-reverse, the step of controlling the rearview mirror to return to the initial position based on the target compensation value, the target compensation time, and the initial position includes: when the vehicle gear changes from reverse to non-reverse, obtaining a second feedback position of the rearview mirror; calculating a second expected movement distance based on the second feedback position and the initial position; when the second expected movement distance is less than or equal to the target compensation value, calculating a second expected movement time based on the target compensation value, the target compensation time, and the second expected movement distance, and driving the rearview mirror motor according to the second expected movement time to return the rearview mirror to the initial position; when the second expected movement distance is greater than the target compensation value, controlling the rearview mirror motor to move based on the initial position, and obtaining a third feedback position in real time; when the distance between the third feedback position and the initial position is less than or equal to the target compensation value, controlling the rearview mirror motor to stop moving.
[0093] The second feedback position refers to the rearview mirror position feedback signal measured in real time by the system when the vehicle shifts from reverse to a non-reverse gear. Because the feedback position may have errors, it is not entirely equivalent to the actual position of the rearview mirror. The second expected movement distance refers to the actual distance between the second feedback position and the initial position, taking into account the influence of the target compensation value. This movement distance is the distance the rearview mirror needs to move to return to its initial position. The second expected movement time is the time calculated based on the target compensation value, the target compensation time, and the second expected movement distance. It determines the length of time the motor needs to run to adjust the actual position of the rearview mirror to accurately return it to its initial position. The third feedback position refers to the rearview mirror feedback signal position acquired by the system in real time during the adjustment process. When the second expected movement distance is greater than the target compensation value, the system continuously adjusts the motor based on the feedback position and uses the third feedback position to confirm whether the rearview mirror is close to or has reached the initial position. This feedback position, combined with the target compensation value, is used to determine whether the actual position meets the requirements.
[0094] When the vehicle shifts from reverse to a non-reverse gear, the system begins adjusting the rearview mirrors to return them to their initial position. First, the system acquires the second feedback position of the rearview mirror, which is the feedback signal measured during gear shifting. Since the feedback position may have errors, it needs to be compared with the initial position to calculate the second required travel distance, i.e., the actual distance from the feedback position to the initial position. This step ensures that we understand the deviation of the rearview mirror relative to its initial position. If the second required travel distance is less than or equal to the target compensation value, it means that the error cannot be eliminated by controlling the target position; precise control can only be achieved by controlling the motor drive time. This is because controlling the movement of the rearview mirror by controlling its target position would introduce new deviations, while directly controlling the motor drive time would not. The system drives the motor by calculating the second required travel time to ensure that the rearview mirror moves to the correct position within a specific time. This effectively compensates for errors generated during movement, thus precisely adjusting the rearview mirror to its initial position. If the second required travel distance is greater than the target compensation value, it indicates that the error exceeds the expected range, and the system needs to continue adjusting the motor movement and acquiring a third feedback position in real time. By continuously comparing the distance between the third feedback position and the initial position, and stopping the motor when the distance is less than or equal to the target compensation value, the rearview mirror is ensured to accurately return to its initial position. This process compensates for errors in rearview mirror positioning through real-time adjustment and feedback, thereby improving the accuracy of rearview mirror position restoration and driving safety.
[0095] Please refer to Figure 7 , Figure 7This is a schematic diagram of the rearview mirror return control process provided in Embodiment 2 of the control method for the reversing rearview mirror of this application. The diagram illustrates the process of the rearview mirror performing return control after completing the automatic ground-illuminating function during reversing. The process begins at the "Start" node, first detecting whether the vehicle has disengaged from reverse gear (R gear). Once the vehicle is no longer in reverse, the system determines whether the distance between the target position B (the initial position the rearview mirror needs to return to) and the current position A is greater than the compensation stroke S. If the distance exceeds S, the system calculates the time t2 required for the drive motor to move and starts the motor, causing the rearview mirror to begin moving towards the target position B. During motor operation, the system monitors the position of the rearview mirror in real time, comparing the distance between the real-time feedback position A' and the target position B to be less than or equal to the compensation stroke S, and simultaneously checking whether the motor's running time reaches or exceeds the calculated movement time t2. When one of these two conditions is met—that is, the distance between the real-time feedback position A' and the target position B is less than or equal to the compensation stroke S, or the motor's running time has reached or exceeded the predetermined time t2—the system determines that the rearview mirror has accurately returned to its position B before illuminating the ground. At this point, the process reaches the "end" node, and the rearview mirror return action is completed, ensuring that the rearview mirror can be accurately returned to its original position after reversing for use when the vehicle is in normal driving. This process guarantees precise control of the rearview mirror position, improving the driving experience and safety.
[0096] In this embodiment, when the vehicle gear changes from reverse to non-reverse, the rearview mirror is controlled to return to its initial position based on the target compensation value, the target compensation time, and the initial position. First, the system records the current rearview mirror position, i.e., the second feedback position, to understand the actual deviation of the rearview mirror. Next, by comparing the second feedback position with the preset initial position, the required adjustment distance is calculated. This step determines the distance the rearview mirror needs to move. Subsequently, the system precisely controls the movement of the rearview mirror motor based on the target compensation value, the target compensation time, and the calculated movement distance. The target compensation value is used to correct any errors that may occur during motor movement, and the target compensation time specifies the length of time required for the rearview mirror to move, thereby ensuring that the rearview mirror can accurately return to its initial position. Through these steps, the system improves the accuracy of rearview mirror position recovery, enhances driving safety, improves user experience, reduces the need for manual adjustments, and makes the recovery of visibility after each reversing operation more reliable.
[0097] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the control method of the reversing rearview mirror in this application. Any simple modifications based on this technical concept are within the protection scope of this application.
[0098] This application also provides a control device for a reversing rearview mirror; please refer to... Figure 8 The control device for the reversing rearview mirror includes:
[0099] Data acquisition module 10 is used to acquire the target compensation value and initial position of the rearview mirror;
[0100] Data processing module 20 is used to calculate the first travel distance based on the initial position and the preset rearview mirror position when the vehicle gear is changed to reverse gear and the duration is greater than the first preset time.
[0101] Control module 30 is used to control the rearview mirror to illuminate the ground based on the target compensation value, the preset rearview mirror ground position, and the first movement stroke.
[0102] In one embodiment, the control module 30 is further configured to: acquire a target compensation time when the first movement stroke is less than or equal to the target compensation value; calculate a first movement time based on the target compensation value, the target compensation time, and the first movement stroke; and drive the rearview mirror motor according to the first movement time so that the rearview mirror illuminates the ground.
[0103] In one embodiment, the control module 30 is further configured to control the rearview mirror motor to move according to the preset rearview mirror ground position and obtain the first feedback position in real time when the first movement stroke is greater than the target compensation value; and to control the rearview mirror motor to stop moving when the distance between the first feedback position and the preset rearview mirror ground position is less than or equal to the target compensation value.
[0104] In one embodiment, the control module 30 is further configured to control the rearview mirror to return to the initial position based on the target compensation value, the target compensation time, and the initial position when the vehicle gear changes from reverse gear to non-reverse gear.
[0105] In one embodiment, the control module 30 is further configured to: acquire a second feedback position of the rearview mirror when the vehicle gear changes from reverse to non-reverse; calculate a second to-be-moved travel distance based on the second feedback position and the initial position; calculate a second to-be-moved time distance based on the target compensation value, the target compensation time, and the second to-be-moved travel distance when the second to-be-moved travel distance is less than or equal to the target compensation value, and drive the rearview mirror motor according to the second to-be-moved time distance to return the rearview mirror to the initial position; control the rearview mirror motor to move according to the initial position when the second to-be-moved travel distance is greater than the target compensation value, and acquire a third feedback position in real time; and control the rearview mirror motor to stop moving when the distance between the third feedback position and the initial position is less than or equal to the target compensation value.
[0106] In one embodiment, the data acquisition module 10 is further configured to: read a first position feedback signal value when the output state of the rearview mirror motor changes from normal output to stop output; and read a second position feedback signal value after waiting for a second preset time; use the difference between the first position feedback signal value and the second position feedback signal value as an initial compensation value; and calculate an average value based on the initial compensation value to obtain a target compensation value.
[0107] In one embodiment, the data acquisition module 10 is further configured to acquire a fourth feedback position of the rearview mirror; when no manual adjustment command or memory position recall command is received, the fourth feedback position is used as the initial position of the rearview mirror; when a manual adjustment command or memory position recall command is received, the rearview mirror motor is controlled according to the manual adjustment command or memory position recall command, and a fifth feedback position of the rearview mirror is acquired after the rearview mirror motor stops outputting for a third preset time; the initial position of the rearview mirror is obtained according to the fifth feedback position and the target compensation value, and the initial position is stored.
[0108] The reversing rearview mirror control device provided in this application adopts the reversing rearview mirror control method in the above embodiments, which can solve the technical problem of how to accurately control the rearview mirror to illuminate the ground. Compared with the prior art, the beneficial effects of the reversing rearview mirror control device provided in this application are the same as the beneficial effects of the reversing rearview mirror control method provided in the above embodiments, and other technical features in the reversing rearview mirror control device are the same as the features disclosed in the methods of the above embodiments, and will not be repeated here.
[0109] This application provides a control device for a reversing rearview mirror. The control device for the reversing rearview mirror includes: 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 to enable the at least one processor to perform the control method for the reversing rearview mirror in the above embodiment 1.
[0110] The following is for reference. Figure 9This document illustrates a structural schematic diagram of a control device suitable for implementing the embodiments of this application for a reversing rearview mirror. The control device for the reversing rearview mirror in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 9 The control device for the rearview mirror shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0111] like Figure 9 As shown, the control device for the reversing rearview mirror may include a processing unit 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) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the reversing rearview mirror control device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the rearview mirror control device to communicate wirelessly or wiredly with other devices to exchange data. Although the figure shows a rearview mirror control device 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 alternatively.
[0112] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0113] The reversing rearview mirror control device provided in this application adopts the reversing rearview mirror control method in the above embodiments, which can solve the technical problem of how to accurately control the rearview mirror to illuminate the ground. Compared with the prior art, the beneficial effects of the reversing rearview mirror control device provided in this application are the same as the beneficial effects of the reversing rearview mirror control method provided in the above embodiments, and other technical features in the reversing rearview mirror control device are the same as the features disclosed in the method of the previous embodiment, and will not be repeated here.
[0114] It should be understood that the various parts disclosed in this application can be implemented using 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 suitable manner in one or more embodiments or examples.
[0115] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0116] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the reversing rearview mirror control method in the above embodiments.
[0117] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. 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 conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0118] The aforementioned computer-readable storage medium may be included in the control device of the reversing rearview mirror; or it may exist independently and not be installed in the control device of the reversing rearview mirror.
[0119] The aforementioned computer-readable storage medium carries one or more programs that, when executed by the control device of the reversing rearview mirror, cause the control device of the reversing rearview mirror to: acquire the target compensation value and initial position of the rearview mirror; when the vehicle gear is shifted to reverse gear and the duration is greater than a first preset time, calculate a first to-be-moved stroke based on the initial position and a preset rearview mirror ground position; and control the rearview mirror to illuminate the ground based on the target compensation value, the preset rearview mirror ground position, and the first to-be-moved stroke.
[0120] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0121] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0122] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0123] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described control method for a reversing rearview mirror, thereby solving the technical problem of how to accurately control the rearview mirror's illumination of the ground. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the control method for a reversing rearview mirror provided in the above embodiments, and will not be repeated here.
[0124] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the reversing rearview mirror control method described above.
[0125] The computer program product provided in this application can solve the technical problem of how to accurately control the rearview mirror's illumination of the ground. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the reversing rearview mirror control method provided in the above embodiments, and will not be repeated here.
[0126] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
Claims
1. A control method of a rearview mirror for a vehicle, characterized by, The method includes: Obtain the target compensation value and initial position of the rearview mirror; When the vehicle is shifted to reverse gear and the duration is greater than the first preset time, the first stroke to be moved is calculated based on the initial position and the preset position of the rearview mirror on the ground. The rearview mirror is controlled to illuminate the ground based on the target compensation value, the preset rearview mirror ground position, and the first movement stroke; After the step of controlling the rearview mirror to illuminate the ground based on the target compensation value, the preset rearview mirror ground position, and the first movement stroke, the method further includes: When the vehicle gear changes from reverse to non-reverse, the rearview mirror is controlled to return to the initial position based on the target compensation value, the target compensation time, and the initial position.
2. The method of claim 1, wherein, The step of controlling the rearview mirror to illuminate the ground based on the target compensation value, the preset rearview mirror ground position, and the first movement stroke includes: When the first movement distance is less than or equal to the target compensation value, the target compensation time is obtained; The first time to move is calculated based on the target compensation value, the target compensation time, and the first distance to be moved. Drive the rearview mirror motor according to the first waiting time to make the rearview mirror illuminate the ground.
3. The method as described in claim 1, characterized in that, The step of controlling the rearview mirror to illuminate the ground based on the target compensation value, the preset rearview mirror ground position, and the first movement stroke includes: When the first movement stroke is greater than the target compensation value, the rearview mirror motor is controlled to move according to the preset rearview mirror ground position, and the first feedback position is obtained in real time. When the distance between the first feedback position and the preset rearview mirror ground position is less than or equal to the target compensation value, the rearview mirror motor is controlled to stop moving.
4. The method as described in claim 1, characterized in that, The step of controlling the rearview mirror to return to the initial position based on the target compensation value, the target compensation time, and the initial position when the vehicle gear changes from reverse gear to non-reverse gear includes: When the vehicle gear changes from reverse gear to non-reverse gear, the second feedback position of the rearview mirror is obtained; The second stroke to be moved is calculated based on the second feedback position and the initial position; When the second movement distance is less than or equal to the target compensation value, the second movement time is calculated based on the target compensation value, the target compensation time, and the second movement distance, and the rearview mirror motor is driven according to the second movement time to make the rearview mirror return to the initial position. When the second travel distance to be moved is greater than the target compensation value, the rearview mirror motor is controlled to move according to the initial position, and the third feedback position is obtained in real time; When the distance between the third feedback position and the initial position is less than or equal to the target compensation value, the rearview mirror motor is controlled to stop moving.
5. The method as described in claim 1, characterized in that, The step of obtaining the target compensation value of the rearview mirror includes: When the output state of the rearview mirror motor changes from normal output to stop output, the first position feedback signal value is read, and the second position feedback signal value is read after waiting for a second preset time. The difference between the first position feedback signal value and the second position feedback signal value is used as the initial compensation value; The target compensation value is obtained by calculating the average value based on the initial compensation value.
6. The method according to any one of claims 1 to 5, characterized in that, The step of obtaining the initial position of the rearview mirror includes: Obtain the fourth feedback position of the rearview mirror; If no manual adjustment command or memory position recall command is received, the fourth feedback position is taken as the initial position of the rearview mirror; When a manual adjustment command or a memory position recall command is received, the rearview mirror motor is controlled according to the manual adjustment command or the memory position recall command, and the fifth feedback position of the rearview mirror is obtained after the rearview mirror motor stops outputting for a third preset time. The initial position of the rearview mirror is obtained based on the fifth feedback position and the target compensation value, and the initial position is stored.
7. A control device for a reversing rearview mirror, characterized in that, The device includes: The data acquisition module is used to acquire the target compensation value and initial position of the rearview mirror; The data processing module is used to calculate the first travel distance based on the initial position and the preset rearview mirror position when the vehicle gear is changed to reverse gear and the duration is greater than the first preset time. The control module is used to control the rearview mirror to illuminate the ground based on the target compensation value, the preset rearview mirror ground position, and the first movement stroke. The control module is also used to control the rearview mirror to return to the initial position according to the target compensation value, the target compensation time, and the initial position when the vehicle gear changes from reverse gear to non-reverse gear.
8. A control device for a reversing rearview mirror, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the control method for a reversing rearview mirror as described in 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, it implements the steps of the control method for a reversing rearview mirror as described in any one of claims 1 to 6.