Handle, calibration method thereof, control device and handle assembly
By obtaining and updating the joystick position parameters, and using the voltage dividing circuit to adjust the voltage dividing ratio, the problem of position deviation of the joystick during use is solved, more accurate calibration is achieved, and the user experience and the stability of the handle are improved.
Patent Information
- Application Number
- CN202410565269.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-08
- Publication Date
- 2024-08-30
AI Technical Summary
During use, the position of the rocker shifts due to assembly accuracy and wear, which affects the user experience. It is difficult to effectively calibrate the rocker with existing technology.
By obtaining the position parameters of the rocker, storing and adjusting the pressure dividing ratio when the extreme position returns to the center position, calculating and updating the center position calibration parameters, and using the X-axis and Y-axis voltage dividing circuits to adjust the pressure dividing ratio to achieve accurate control of the rocker. calibration.
The center position calibration accuracy of the joystick is improved, experience problems caused by position deviation during use are improved, and the stability and accuracy of the handle are enhanced.
Smart Images

Figure CN118567495A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of rocker calibration, and in particular to a handle and a calibration method thereof, a control device, and a handle assembly. Background Art
[0002] As a key component of the joystick, the accuracy of its motion trajectory is very important. It should be understood that the joystick, as a mechanical and electronic component, is calibrated at the factory, but during use, due to the influence of assembly accuracy and wear and tear, its position will change. This change will cause the actual position of the joystick to deviate from the original corresponding calibration value, resulting in the problem of joystick offset when the user uses the handle, affecting the user's experience of using the handle. Summary of the invention
[0003] The main purpose of the present invention is to provide a handle and a calibration method thereof, a control device, and a handle assembly, so as to enable the user to calibrate the joystick and improve the user's experience.
[0004] To achieve the above object, the present invention proposes a handle calibration method, which comprises:
[0005] Get the position parameters of the joystick;
[0006] When the rocker of the handle is restored from the extreme position to the center position, the position parameters of the current rocker are stored and set as the center position parameters; wherein the extreme position includes a first extreme position and a second extreme position, the first extreme position and the second extreme position are in opposite directions relative to the center position, and the first extreme position, the second extreme position and the center position are on the same straight line;
[0007] According to the plurality of center position parameters, an actual center position parameter is determined, and the actual center position parameter is stored and updated as a center position calibration parameter.
[0008] Optionally, an X-axis voltage divider circuit and a Y-axis voltage divider circuit are provided in the handle;
[0009] The X-axis voltage division circuit is used to adjust its own voltage division ratio and output a corresponding X-axis voltage division signal when the joystick moves to the left or right relative to the center position;
[0010] The Y-axis voltage division circuit is used to adjust its own voltage division ratio and output a corresponding Y-axis voltage division signal when the joystick moves to the upper or lower side relative to the center position;
[0011] The step of obtaining the position parameters of the joystick specifically includes:
[0012] The X-axis voltage division signal is subjected to analog-to-digital conversion processing to generate an X-axis AD value, and the Y-axis voltage division signal is subjected to analog-to-digital conversion processing to generate a Y-axis AD value;
[0013] The X-axis AD value and the Y-axis AD value are used as the position parameters.
[0014] Optionally, the step of determining an actual center position parameter according to the plurality of center position parameters, and storing and setting the actual center position parameter as a new center position calibration parameter specifically includes:
[0015] Calculate the average of multiple X-axis AD values in the multiple center position parameters to determine the X-axis AD average value;
[0016] Calculate the mean of multiple Y-axis AD values in multiple center position parameters to determine the Y-axis AD average value;
[0017] The X-axis AD average value and the Y-axis AD average value are used as the actual center position parameters, and the actual center position parameters are stored and set as new center position calibration parameters.
[0018] Optionally, when the joystick of the handle is restored from the extreme position to the center position, the step of storing and setting the position parameters of the current joystick as the center position parameters specifically includes:
[0019] According to the position parameter and the stored center position calibration parameter, it is determined that the distance of the position of the joystick relative to the center position is gradually shortened, and it is confirmed that the joystick of the handle is restored from the extreme position to the center position;
[0020] When the distance remains unchanged within a preset first time period, the position parameters of the current joystick are stored and set as the center position parameters.
[0021] Optionally, when the distance remains unchanged within a preset first time period, the step of storing and setting the position parameters of the current joystick as the center position parameters specifically includes:
[0022] When the distance remains unchanged within the preset first time period and is less than the preset first distance, the position parameters of the current joystick are stored and set as the center position parameters.
[0023] Optionally, when the joystick of the handle is restored from the extreme position to the center position, between the step of storing and setting the position parameters of the current joystick as the center position parameters and the step of determining the actual center position parameters according to the plurality of center position parameters, and storing and updating the actual center position parameters as the center position calibration parameters, the method further comprises:
[0024] The center position parameter corresponding to the rocker returning from the first extreme position to the center position is set as the first center position parameter;
[0025] The center position parameter corresponding to the rocker returning from the second extreme position to the center position is set as the second center position parameter;
[0026] When the distance between the position corresponding to the first center position parameter and the position corresponding to the second center position parameter reaches a preset second distance, the user is prompted to recalibrate and return to execute the step of storing and setting the position parameters of the current joystick as the center position parameters when the joystick of the handle returns to the center position from the extreme position.
[0027] Optionally, when the joystick of the handle is restored from the extreme position to the center position, between the step of storing and setting the position parameters of the current joystick as the center position parameters and the step of determining the actual center position parameters according to the plurality of center position parameters, and storing and updating the actual center position parameters as the center position calibration parameters, the method further comprises:
[0028] The user is prompted to repeat the calibration and correspondingly repeat at least once the step of storing and setting the position parameters of the current rocker as the center position parameters when the rocker of the handle is restored from the extreme position to the center position.
[0029] Optionally, the step of storing and setting the position parameters of the current rocker as the center position parameters when the rocker of the handle is restored from the limit position to the center position is performed at least twice; the limit positions at least include: an upper left limit position, a lower left limit position, an upper right limit position and a lower right limit position;
[0030] The method further comprises:
[0031] Based on the position parameters of the joystick when it is at the upper left limit position, the lower left limit position, the upper right limit position and the lower right limit position, the actual boundary position parameters are determined, and the actual boundary position parameters are stored and updated as boundary position calibration parameters.
[0032] Optionally, when an X-axis voltage divider circuit and a Y-axis voltage divider circuit are provided in the handle, the step of determining the actual boundary position parameters based on the position parameters of the joystick when it is at the upper left limit position, the lower left limit position, the upper right limit position and the lower right limit position, and storing and updating the actual boundary position parameters as boundary position calibration parameters specifically includes:
[0033] Based on the position parameters when the joystick is at the upper left limit position, the lower left limit position, the upper right limit position, and the lower right limit position, obtaining a first maximum X-axis AD value, a second maximum X-axis AD value, a first minimum X-axis AD value, a second minimum X-axis AD value, a maximum Y-axis AD value, a second maximum Y-axis AD value, a first minimum Y-axis AD value, and a second minimum Y-axis AD value;
[0034] Calculate the average of the first maximum X-axis AD value and the second maximum X-axis AD value to determine the maximum X-axis AD average value;
[0035] Calculate the average of the first minimum X-axis AD value and the second minimum X-axis AD value to determine the minimum X-axis AD average value;
[0036] Calculate the average of the first maximum Y-axis AD value and the second maximum Y-axis AD value to determine the maximum Y-axis AD average value;
[0037] Calculate the average of the first minimum Y-axis AD value and the second minimum Y-axis AD value to determine the minimum Y-axis AD average value;
[0038] The maximum X-axis AD average value, the minimum X-axis AD average value, the maximum Y-axis AD average value, and the minimum Y-axis AD average value are set as actual boundary position parameters, and the actual boundary position parameters are stored and updated as boundary position calibration parameters.
[0039] Optionally, before executing the step of storing and setting the position parameters of the current rocker as the center position parameters when the rocker of the handle is restored from the extreme position to the center position, the method further includes:
[0040] When the joystick offset is determined based on the position parameters when the joystick is in the center position and the stored center position calibration parameters, the user is prompted to calibrate and execute the step of storing and setting the current joystick position parameters as the center position parameters when the joystick of the handle returns to the center position from the extreme position.
[0041] The present invention also proposes a control device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the handle calibration method as described in any one of the above items.
[0042] The present invention also provides a handle, which comprises an X-axis voltage divider circuit, a Y-axis voltage divider circuit and the control device as described above;
[0043] Among them, the X-axis voltage divider circuit is used to adjust its own voltage divider ratio and output the corresponding X-axis voltage divider signal when the joystick moves in the left and right directions; the Y-axis voltage divider circuit is used to adjust its own voltage divider ratio and output the corresponding Y-axis voltage divider signal when the joystick moves in the up and down directions.
[0044] The present invention also provides a handle assembly, characterized in that the handle assembly comprises the handle as described above and an auxiliary calibration device detachably connected to the handle;
[0045] The auxiliary calibration device is provided with a central hole at the central position, and also has a plurality of mutually connected through slots, at least two of which pass through the central hole and are symmetrically arranged along the central position;
[0046] When the auxiliary calibration device is arranged on the handle, the rocker of the handle is arranged through the central hole and can move along the extending direction of the through slot.
[0047] Optionally, an XY coordinate system is formed with the center position of the joystick as the origin, the straight line where the joystick moves in the left-right direction as the X-axis, and the straight line where the joystick moves in the up-down direction as the Y-axis, and the XY coordinate system has four quadrants;
[0048] The plurality of through slots include at least four through slots. When the auxiliary calibration device is arranged on the handle, the four through slots are respectively arranged in four quadrants and the included angle between the midline of each through slot and its adjacent X-axis / Y-axis is 45°.
[0049] The handle calibration method of the present invention comprises: obtaining the position parameters of the joystick; when the joystick of the handle is restored from the extreme position to the center position, storing and setting the position parameters of the current joystick as the center position parameters; determining the actual center position parameters according to multiple center position parameters, and storing and updating the actual center position parameters as the center position calibration parameters. In this way, in actual application, the user only needs to follow the prompt or operation instructions issued by the handle, push the joystick to the extreme position and then release it to return to the center position in the free release state, so as to realize the calibration of the position parameters corresponding to the center position of the joystick of the handle, thereby improving the experience of using the handle and improving the influence of the joystick offset caused by the assembly accuracy and use wear during the use of the joystick of the handle. At the same time, since the first extreme position, the second extreme position and the center position in the extreme positions are on the same straight line, based on the mechanical structure of the joystick, when the user releases the joystick from the above two extreme positions to the center position, the center position parameters of the corresponding two joysticks are generally smaller in difference. Therefore, when the actual center position parameters are calculated based on at least one set of the above position parameters (each set of position parameters includes the center position parameters corresponding to the first extreme position and the center position parameters corresponding to the second extreme position), compared with randomly selecting multiple joysticks to restore the position parameters corresponding to the center position from different extreme positions, resulting in a large difference between the parameters, the accuracy of the calculation of the actual center position parameters can be effectively improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0051] Figure 1 It is a schematic diagram of a flow chart of an embodiment of a handle calibration method of the present invention;
[0052] Figure 2 It is a schematic flow chart of another embodiment of the handle calibration method of the present invention;
[0053] Figure 3 It is a flowchart of another embodiment of the handle calibration method of the present invention;
[0054] Figure 4 A schematic diagram of a flow chart of another embodiment of a handle calibration method of the present invention;
[0055] Figure 5 It is a flowchart diagram of another embodiment of the handle calibration method of the present invention;
[0056] Figure 6This is a schematic diagram of a circuit module of an embodiment of a handle of the present invention;
[0057] Figure 7 A schematic diagram of a joystick according to an embodiment of a handle of the present invention;
[0058] Figure 8 It is a structural schematic diagram of an auxiliary calibration device in an embodiment of a handle assembly of the present invention;
[0059] Fig. 9 It is a schematic structural diagram of an auxiliary calibration device in one embodiment of a handle assembly of the present invention when it is assembled on the rocker of the handle.
[0060] Description of Figure Numbers:
[0061] 10 Controls 11 processor 12 Memory 20 X-axis voltage divider circuit 30 Y-axis voltage divider circuit 40 Joystick Boundary 50 Through slot 60 Center hole
[0062] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0063] 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.
[0064] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components in a certain specific posture. If the specific posture changes, the directional indication will also change accordingly.
[0065] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features limited to "first" and "second" may explicitly or implicitly include at least one of the features. In addition, if "and / or" or "and / or" appears in the full text, its meaning includes three parallel solutions. Taking "A and / or B" as an example, it includes solution A, solution B, or solutions that satisfy both A and B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in this field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0066] As a key component of the joystick, the accuracy of its motion trajectory is very important. It should be understood that the joystick, as a mechanical and electronic component, is calibrated at the factory, but during use, due to the influence of assembly accuracy and wear and tear, its position will change. This change will cause the actual position of the joystick to deviate from the original corresponding calibration value, resulting in the problem of joystick offset when the user uses the handle, affecting the user's experience of using the handle.
[0067] To this end, the present invention proposes a handle calibration method. It is understandable that a control device for storing and executing the following method may be provided in the handle, and the control device may be implemented by a main controller, such as MCU, DSP (Digital Signal Process), FPGA (Field Programmable Gate Array), PLC, SOC (System On Chip), etc.
[0068] refer to Figure 1 In one embodiment of the present invention, the handle calibration method includes:
[0069] Step S100, obtaining the position parameters of the joystick;
[0070] A position detection module for detecting the position of the joystick after it is moved may be provided in the handle at a position corresponding to the joystick. Optionally, the position detection device may be a joystick attitude detection sensor, such as a gyroscope or an accelerometer; Figure 7 The position detection module can also be implemented by an X-axis joystick sensor and a Y-axis joystick sensor. When the user pushes the joystick, the mechanical structure thereof will cause the electrical signal output by the X-axis joystick sensor and / or the electrical signal output by the Y-axis joystick sensor to change, thereby enabling the control device to determine the position of the joystick according to the electrical signals output by the X-axis joystick sensor and the Y-axis joystick sensor respectively. The X-axis joystick sensor and the Y-axis joystick sensor can be implemented by capacitive sensors, resistive sensors, or inductive sensors.
[0071] For further reference, Figure 6 and Figure 2 In one embodiment of the present invention, the handle is provided with an X-axis voltage divider circuit and a Y-axis voltage divider circuit;
[0072] The X-axis voltage division circuit is used to adjust its own voltage division ratio and output a corresponding X-axis voltage division signal when the joystick moves to the left or right relative to the center position;
[0073] The Y-axis voltage division circuit is used to adjust its own voltage division ratio and output a corresponding Y-axis voltage division signal when the joystick moves to the upper or lower side relative to the center position;
[0074] Step S100, the step of obtaining the position parameters of the joystick specifically includes:
[0075] Step S110, performing analog-to-digital conversion processing on the X-axis divided voltage signal to generate an X-axis AD value, and performing analog-to-digital conversion processing on the Y-axis divided voltage signal to generate a Y-axis AD value;
[0076] Step S120: Use the X-axis AD value and the Y-axis AD value as the position parameters.
[0077] In this embodiment, both the X-axis voltage divider circuit and the Y-axis voltage divider circuit can be implemented by using a sliding rheostat. Through the mechanical mechanism in the joystick, when the user moves the joystick, the voltage divider ratio of the X-axis voltage divider circuit and / or the voltage divider ratio of the Y-axis voltage divider circuit will be changed accordingly. Figure 6 and Figure 7 When the user pushes the joystick to the right from the center position in the free release state, the mechanical structure in the handle will change the voltage division ratio of the X-axis voltage division circuit. For example, when the joystick moves to the right, the voltage division ratio of the X-axis voltage division circuit gradually decreases ( Figure 6 The ratio of R1 to R2 in the figure), the voltage value of the output X-axis voltage divider signal gradually increases, the joystick moves to the left, the voltage divider ratio of the X-axis voltage divider circuit gradually increases, and the voltage value of the output X-axis voltage divider signal gradually decreases. Similarly, when the user pushes the joystick to the upper right, the action of its mechanical structure will simultaneously change the voltage divider ratio of the X-axis voltage divider circuit and the Y-axis voltage divider circuit, thereby changing the voltage value of the voltage divider signal output by both.
[0078] The control device can use an analog-to-digital conversion module independently set in the handle, or an analog-to-digital conversion unit integrated in itself, and perform analog-to-digital conversion processing on the X-axis voltage divider signal to generate an X-axis AD value, and perform analog-to-digital conversion processing on the Y-axis voltage divider signal to generate a Y-axis AD value, and then use the X-axis AD value and the Y-axis AD value as position parameters.
[0079] Step S200, when the joystick of the handle is restored from the extreme position to the center position, the position parameters of the current joystick are stored and set as the center position parameters; wherein the extreme positions include a first extreme position and a second extreme position, the first extreme position and the second extreme position are in opposite directions relative to the center position, and the first extreme position, the second extreme position and the center position are on the same straight line;
[0080] In this embodiment, the center position is the position of the rocker in a free release state, that is, the position in a stable state after the rocker automatically returns. The first limit position and the second limit position can be set by the user according to the above setting relationship, for example: the first limit position is selected as the position where the rocker is pushed forward, and the second limit position is selected as the position where the rocker is pushed backward. Or, it is preset in advance by the R&D personnel and stored in the control device. Optionally, the limit position can be a certain position where the rocker moves in the corresponding direction selected by the user, such as the rocker moves forward by a preset distance and is not close to the boundary position of the rocker in this direction or the boundary position of the rocker in this direction. Optionally, the limit position can also be preset by the R&D personnel, for example, when the rocker moves forward, it needs to move to the position where the rocker reaches the boundary of the rocker. Among them, when the limit position is the position where the rocker reaches the boundary of the rocker when moving in the corresponding direction, since the rocker has completed the entire stroke when it automatically returns at this time, the accuracy of the final center position calibration can be effectively improved.
[0081] When it is necessary to calibrate the center position of the joystick of the handle, optionally, the handle can issue a corresponding prompt message, such as "Please push the joystick forward from the center position to the extreme position and then slowly release it until it returns to its original position automatically", and after obtaining the position parameters of returning from the forward extreme position to the center position, issue a voice prompt "Please push the joystick backward from the center position to the extreme position and then slowly release it until it returns to its original position automatically"; optionally, the handle can also transmit the calibration guidance information to an external terminal via wireless / wired communication, so as to display it on the external terminal to instruct the user to perform the above-mentioned calibration process.
[0082] Optionally, in one embodiment, reference Figure 4 The step S200, when the joystick of the handle is restored from the extreme position to the center position, storing and setting the position parameters of the current joystick as the center position parameters, specifically includes:
[0083] Step S210: determining, based on the position parameter and the stored center position calibration parameter, that the distance of the position of the joystick relative to the center position is gradually shortened, and then confirming that the joystick of the handle is restored from the extreme position to the center position;
[0084] Step S220: When the distance remains unchanged within a preset first time period, the position parameters of the current joystick are stored and set as the center position parameters.
[0085] In this embodiment, the stored center position calibration parameter can be a preset center position calibration parameter that has been tested and calibrated at the factory, or a new center position calibration parameter that has been updated after step S300. After the handle reminds the user to operate according to the above embodiment process, if it is determined that the distance of the position of the rocker relative to the center position is gradually shortened according to the position parameter and the stored center position calibration parameter, that is, it is determined that the rocker is automatically returning to the center position from the extreme position, and when the distance does not change within the preset first time length, it means that the rocker has successfully returned to the center position and remains stable, then the control device will store and set the current rocker position parameter as the center position parameter. For example, based on the embodiment of the upper X-axis voltage divider circuit and the Y-axis voltage divider circuit, when the X-axis AD value and / or the Y-axis AD value are getting closer and closer to the X-axis AD value and the Y-axis AD value corresponding to the stored center position calibration parameter, it means that the rocker is freely returning to the center position, and when the position parameter does not change within the preset first time length, it is determined that the rocker has returned to the center position, and the current position parameter will be stored and set as the center position parameter.
[0086] It should be understood that in the actual calibration process, since the user manually moves the joystick and slowly releases it until it returns to the center position, it is possible that the user does not completely release the joystick to the center position during manual operation, which may lead to misjudgment of the actual center position of the joystick.
[0087] To this end, based on the above embodiment, in one embodiment of the present invention, the step S220, when the distance remains unchanged within the preset first time length, the step of storing and setting the position parameters of the current joystick as the center position parameters specifically includes: when the distance remains unchanged within the preset first time length (preset by the R&D personnel) and is less than the preset first distance (preset by the R&D personnel), the position parameters of the current joystick are stored and set as the center position parameters. It can be understood that during the use of the joystick, although the center position will shift, the offset is generally small. Therefore, through the above setting, it can be effectively determined whether your current joystick has been restored to the center position, thereby further improving the accuracy of the center position calibration of the joystick of the handle.
[0088] Step S300: Determine an actual center position parameter according to the plurality of center position parameters, and store and update the actual center position parameter as a center position calibration parameter.
[0089] In this embodiment, when the user pushes the joystick to the extreme position (including the first extreme position and the second extreme position) and releases it back to the center position, the control device obtains at least one center position parameter each time the joystick returns to the center position, and obtains at least two center position parameters in total. It is understandable that the handle can also be calibrated multiple times at different extreme positions according to the needs of the user or the program preset by the R&D personnel.
[0090] Optionally, in one embodiment, between the step of storing and setting the position parameters of the current joystick as the center position parameters when the joystick of the handle is restored from the extreme position to the center position and the step of determining the actual center position parameters based on the multiple center position parameters, and storing and updating the actual center position parameters as the center position calibration parameters, the method further includes: prompting the user to repeat the calibration and correspondingly repeating at least once the step of storing and setting the position parameters of the current joystick as the center position parameters when the joystick of the handle is restored from the extreme position to the center position. The joystick can guide the user multiple times so that the user repeats the above operation for multiple extreme positions, so that the control device can obtain multiple center position parameters, so as to be more accurate in the subsequent determination of the actual center position parameters. For example: guide the user to push the joystick to the upper left extreme position, the lower left extreme position, the upper right extreme position, and the lower right extreme position, etc.
[0091] After the control device obtains multiple center position parameters, it can determine and generate the actual center position parameters according to a preset algorithm or a preset calculation model. Figure 3 In one embodiment of the present invention, the step S300 of determining the actual center position parameter according to the plurality of center position parameters and storing the actual center position parameter as a new center position calibration parameter specifically includes:
[0092] Step S310, average multiple X-axis AD values among the multiple center position parameters to determine the X-axis AD average value; Step S320, average multiple Y-axis AD values among the multiple center position parameters to determine the Y-axis AD average value; Step S330, use the X-axis AD average value and the Y-axis AD average value as the actual center position parameters, and store the actual center position parameters as new center position calibration parameters, which calibrate the position parameters when the current joystick is in the center position. In this way, in actual applications, the user only needs to follow the prompts or operating instructions issued by the handle, push the joystick to the limit position and then release it to return to the center position in the free release state, so as to calibrate the position parameters corresponding to the center position of the joystick of the handle, thereby improving the experience of using the handle and improving the influence of the joystick offset caused by assembly accuracy and wear during use. At the same time, since the first extreme position, the second extreme position and the center position in the extreme positions are on the same straight line, based on the mechanical structure of the joystick, when the user releases the joystick from the above two extreme positions to the center position, the center position parameters of the corresponding two joysticks are generally smaller in difference. Therefore, when the actual center position parameters are calculated based on at least one set of the above position parameters (each set of position parameters includes the center position parameters corresponding to the first extreme position and the center position parameters corresponding to the second extreme position), compared with randomly selecting multiple joysticks to restore the position parameters corresponding to the center position from different extreme positions, resulting in a large difference between the parameters, the accuracy of the calculation of the actual center position parameters can be effectively improved.
[0093] In addition, optionally, in another embodiment, the user can operate the handle by himself when necessary, so that the handle prompts the user to calibrate and execute the above calibration process. Optionally, in another embodiment, the handle can also detect and calibrate its own center position. For example, before executing the step of storing and setting the position parameters of the current joystick as the center position parameters when the joystick of the handle is restored from the extreme position to the center position, the method also includes: based on the position parameters when the joystick is in the center position and the stored center position calibration parameters, when determining the joystick offset, prompting the user to calibrate and executing the step of storing and setting the position parameters of the current joystick as the center position parameters when the joystick of the handle is restored from the extreme position to the center position.
[0094] In this embodiment, the control device in the handle can perform the above detection process once every preset time interval (set by the user or the R&D personnel), or perform the above detection process once every time the user turns on the handle, that is, when the control device is awakened. Based on the above X-axis voltage divider circuit and Y-axis voltage divider circuit embodiments, in one embodiment, when the control device is turned on, when confirming that the joystick is in the center position, for example, when determining that the position parameter of the joystick has not changed within a preset third time period (preset by the R&D personnel), the X-axis AD value and the Y-axis AD value of the current position parameter are compared with the value corresponding to the stored center position calibration parameter. When the difference between any of them and the value corresponding to the center position calibration parameter reaches a preset difference, for example, 2%, the control device will consider that the center position of the current joystick has been deviated, that is, the position parameter corresponding to the center position of the current joystick is no longer the position parameter corresponding to the previously calibrated and stored center position, and then the user will be reminded to calibrate and execute the above calibration method.
[0095] The handle calibration method of the present invention comprises: obtaining the position parameters of the joystick; when the joystick of the handle is restored from the extreme position to the center position, storing and setting the position parameters of the current joystick as the center position parameters; determining the actual center position parameters according to multiple center position parameters, and storing and updating the actual center position parameters as the center position calibration parameters. In this way, in actual application, the user only needs to follow the prompt or operation instructions issued by the handle, push the joystick to the extreme position and then release it to return to the center position in the free release state, so as to realize the calibration of the position parameters corresponding to the center position of the joystick of the handle, thereby improving the experience of using the handle and improving the influence of the joystick offset caused by the assembly accuracy and use wear during the use of the joystick of the handle. At the same time, since the first extreme position, the second extreme position and the center position in the extreme positions are on the same straight line, based on the mechanical structure of the joystick, when the user releases the joystick from the above two extreme positions to the center position, the center position parameters of the corresponding two joysticks are generally smaller in difference. Therefore, when the actual center position parameters are calculated based on at least one set of the above position parameters (each set of position parameters includes the center position parameters corresponding to the first extreme position and the center position parameters corresponding to the second extreme position), compared with randomly selecting multiple joysticks to restore the position parameters corresponding to the center position from different extreme positions, resulting in a large difference between the parameters, the accuracy of the calculation of the actual center position parameters can be effectively improved.
[0096] It should be understood that, from the above content, during the actual calibration process, the user manually moves the joystick and slowly releases it until it returns to the center position. Therefore, it is possible that the user does not completely release the joystick to the center position during manual operation, which may lead to a misjudgment of the actual center position of the joystick.
[0097] For this purpose, refer to Figure 5 In another embodiment of the present invention, when the joystick of the handle is restored from the extreme position to the center position, between the step of storing and setting the position parameters of the current joystick as the center position parameters and the step of determining the actual center position parameters based on the multiple center position parameters, and storing and updating the actual center position parameters as the center position calibration parameters, the method further includes:
[0098] Step S400, the center position parameter corresponding to the rocker returning from the first extreme position to the center position is set as the first center position parameter; the center position parameter corresponding to the rocker returning from the second extreme position to the center position is set as the second center position parameter;
[0099] Step S500: When the distance between the position corresponding to the first center position parameter and the position corresponding to the second center position parameter reaches a preset second distance, the user is prompted to recalibrate and return to execute the step of storing and setting the position parameters of the current joystick as the center position parameters when the joystick of the handle is restored from the extreme position to the center position.
[0100] It can be seen from the above embodiments that, based on the mechanical structure of the joystick, when the user releases the joystick from the above two extreme positions to the center position, the center position parameters of the two corresponding joysticks generally have a small difference. Therefore, in this embodiment, the distance between the position corresponding to the first center position parameter and the position corresponding to the second center position parameter can be used to determine whether the user has released the joystick back to the center position during any of the operations, thereby further improving the accuracy of subsequent actual center position parameter calculation.
[0101] Based on the above embodiment of repeatedly executing step S200 for multiple times, in one embodiment of the present invention, the number of times of executing the step of storing and setting the position parameters of the current joystick as the center position parameters when the joystick of the handle is restored from the extreme position to the center position is at least twice; the extreme positions at least include: the upper left extreme position, the lower left extreme position, the upper right extreme position and the lower right extreme position;
[0102] The method further comprises:
[0103] Based on the position parameters of the joystick when it is at the upper left limit position, the lower left limit position, the upper right limit position and the lower right limit position, the actual boundary position parameters are determined, and the actual boundary position parameters are stored and updated as boundary position calibration parameters.
[0104] As can be seen from the above content, repeatedly performing step S200 can effectively further improve the accuracy of the calibration of the center position. Therefore, in this embodiment, the accuracy of the calibration of the center position of the joystick can be improved not only by restoring the joystick from the extreme position to the center position multiple times. At the same time, when the handle executes the above calibration method, it can also guide the user to push the joystick to the upper left extreme position, the lower left extreme position, the upper right extreme position and the lower right extreme position until it abuts the joystick boundary and maintains the preset fourth time length (preset by the R&D personnel), that is, the extreme position is the position where the joystick abuts the joystick boundary, so that the control device obtains the position parameters when the joystick moves in the above four directions and reaches the joystick boundary, and determines the actual boundary position parameters of the joystick according to the multiple position parameters when reaching the boundary position. Optionally, in one embodiment, the control device can determine that the distance between the current position of the joystick and the center position is gradually increasing and the maximum value remains unchanged for the preset fifth time length (preset by the R&D personnel) according to the position parameters of the joystick and the stored center position calibration parameters, and then the corresponding position parameters can be stored as a reference for subsequent determination of the actual boundary position parameters.
[0105] Based on the above embodiment, optionally, in one embodiment, based on the above embodiment of the X-axis voltage divider circuit and the Y-axis voltage divider circuit, when the X-axis voltage divider circuit and the Y-axis voltage divider circuit are provided in the handle, the step of determining the actual boundary position parameters based on the position parameters when the joystick is in the upper left limit position, the lower left limit position, the upper right limit position and the lower right limit position, and storing and updating the actual boundary position parameters as boundary position calibration parameters specifically includes:
[0106] Based on the position parameters when the joystick is at the upper left limit position, the lower left limit position, the upper right limit position and the lower right limit position, a first maximum X-axis AD value, a second maximum X-axis AD value, a first minimum X-axis AD value, a second minimum X-axis AD value, a maximum Y-axis AD value, a second maximum Y-axis AD value, a first minimum Y-axis AD value and a second minimum Y-axis AD value are obtained; the first maximum X-axis AD value and the second maximum X-axis AD value are averaged to determine the maximum X-axis AD average value; the first minimum X-axis AD value and the second minimum X-axis AD value are averaged to determine the minimum X-axis AD average value; the first maximum Y-axis AD value and the second maximum Y-axis AD value are averaged to determine the maximum Y-axis AD average value; the first minimum Y-axis AD value and the second minimum Y-axis AD value are averaged to determine the minimum Y-axis AD average value; the maximum X-axis AD average value, the minimum X-axis AD average value, the maximum Y-axis AD average value and the minimum Y-axis AD average value are set as actual boundary position parameters, and the actual boundary position parameters are stored and updated as boundary position calibration parameters. In this way, through the above settings, during the user's calibration of the joystick of the handle, not only can the accuracy of the center position of the calibration joystick be further improved, but the calibration of the boundary position of the joystick can also be achieved, thereby further improving the accuracy of the handle operation and improving the user's experience of using the handle.
[0107] refer to Figure 6 The present invention also proposes a control device 10, which includes: a memory 12, a processor 11, and a computer program stored in the memory 12 and executable on the processor 11, wherein the computer program is configured to implement the steps of the handle calibration method as described in any one of the above items.
[0108] It is worth noting that since the control device 10 of the present invention includes the above-mentioned handle calibration method, the control device 10 of the present invention includes all technical solutions of the above-mentioned handle calibration method, and at least has all the beneficial effects brought by the technical solutions of the above-mentioned embodiments, which will not be repeated here one by one.
[0109] refer to Figure 6 and Figure 7 The present invention also proposes a handle, which includes an X-axis voltage divider circuit 20, a Y-axis voltage divider circuit 30 and the control device 10 as described above; the control device 10 is electrically connected to the X-axis voltage divider circuit 20 and the Y-axis voltage divider circuit 30 respectively.
[0110] The X-axis voltage division circuit 20 is used to adjust its own voltage division ratio and output a corresponding X-axis voltage division signal when the joystick moves in the left and right directions;
[0111] The Y-axis voltage division circuit 30 is used to adjust its own voltage division ratio and output a corresponding Y-axis voltage division signal when the joystick moves in the up and down directions.
[0112] It is worth noting that, since the handle of the present invention includes the above-mentioned control device 10, the handle of the present invention includes all technical solutions of the above-mentioned control device 10, and also has at least all the beneficial effects brought by the technical solutions of the above-mentioned embodiments, which will not be described one by one here.
[0113] The present invention provides a handle assembly, which comprises the handle as described above and an auxiliary calibration device detachably connected to the handle.
[0114] It is worth noting that, since the handle assembly of the present invention includes the above-mentioned handle, the handle assembly of the present invention includes all technical solutions of the above-mentioned handle, and also has at least all the beneficial effects brought by the technical solutions of the above-mentioned embodiments, which will not be described one by one here.
[0115] refer to Figure 8 In one embodiment of the present invention, a central hole 60 is provided at the central position of the auxiliary calibration device, and a plurality of through slots 50 are connected to each other, and at least two of the through slots 50 pass through the central hole 60 and are symmetrically arranged along the central position;
[0116] When the auxiliary calibration device is disposed on the handle, the rocker of the handle is disposed through the central hole 60 and can move along the extending direction of the through slot 50 .
[0117] In this embodiment, the auxiliary calibration device can be detachably connected to the handle, for example, by being fixed by a buckle, etc. Optionally, the length of the through slot 50 can be greater than the distance from the center position of the rocker to the rocker boundary 40, so that when the user moves the rocker in the through slot 50 along the extending direction of the through slot 50, it is sufficient to move to the rocker boundary 40.
[0118] It should be understood that, from the above content, in order to improve the accuracy of calibration, the present application will prompt the user to push the joystick to the first extreme position in the above embodiment and then release it back to the center position, and push it to the second extreme position in the above embodiment and then release it back to the center position during calibration. However, in actual situations, since the above calibration process occurs on the user side, it can only be operated by the user manually pushing the joystick. Compared with the test stand test on the production line, it is often difficult for the user to ensure that the first extreme position and the second extreme position pushed to the center position are in a straight line.
[0119] Therefore, reference Fig. 9When the user calibrates the center position of the handle, that is, when the handle performs the above calibration method, the user can first install the auxiliary calibration device on the handle, and then push the rocker to move into the corresponding through slot 50 and move to the boundary of the rocker along the extension direction of the through slot 50 according to the prompt. It can be understood that, since there are at least two through slots 50 passing through the center hole 60 and symmetrically arranged along the center position, when the user pushes the rocker to move into the corresponding two through slots 50, the direction in which the rocker moves relative to the center position must be 180° different, that is, the first extreme position and the second extreme position must be on the same straight line as the center position, thereby effectively improving the accuracy of the calibration of the center position and boundary position of the handle on the user side.
[0120] Further, refer to Figure 8 In another embodiment of the present invention, an XY coordinate system is formed with the center position of the joystick as the origin, the straight line where the joystick moves in the left-right direction as the X-axis, and the straight line where the joystick moves in the up-down direction as the Y-axis, and the XY coordinate system has four quadrants;
[0121] The plurality of through slots 50 include at least four through slots 50; Fig. 9 When the auxiliary calibration device is set on the handle, the four through slots 50 are respectively set in four quadrants and the midline of each through slot 50 has an angle of 45° with the adjacent X-axis / Y-axis. In this way, in the process of the user calibrating the joystick of the handle, not only can the accuracy of the calibration of the center position of the joystick of the handle be improved by the at least four through slots 50, but also when the boundary position of the joystick of the handle needs to be calibrated, the joystick can be pushed to move in each quadrant along the direction with an angle of 45° with the X-axis / Y-axis, thereby further ensuring the accuracy of the user's calibration of the boundary position of the joystick of the handle.
[0122] In summary, by providing an auxiliary calibration device that can be detachably connected to the handle, the accuracy of manual calibration of the handle by the user is effectively improved. At the same time, the auxiliary calibration device of the present application is easy to install, small in size, easy to carry or store, and effectively improves the convenience of user operation.
[0123] The above description is only an exemplary embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the technical concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.
Claims
1. A handle calibration method, It is characterized in that The handle calibration method comprises: Get the position parameters of the joystick; When the rocker of the handle is restored from the extreme position to the center position, the position parameters of the current rocker are stored and set as the center position parameters; wherein the extreme position includes a first extreme position and a second extreme position, the first extreme position and the second extreme position are in opposite directions relative to the center position, and the first extreme position, the second extreme position and the center position are on the same straight line; According to the plurality of center position parameters, an actual center position parameter is determined, and the actual center position parameter is stored and updated as a center position calibration parameter.
2. The handle calibration method according to claim 1, It is characterized in that The handle is provided with an X-axis voltage dividing circuit and a Y-axis voltage dividing circuit; The X-axis voltage division circuit is used to adjust its own voltage division ratio and output a corresponding X-axis voltage division signal when the joystick moves to the left or right relative to the center position; The Y-axis voltage division circuit is used to adjust its own voltage division ratio and output a corresponding Y-axis voltage division signal when the joystick moves to the upper or lower side relative to the center position; The step of obtaining the position parameters of the joystick specifically includes: The X-axis voltage division signal is subjected to analog-to-digital conversion processing to generate an X-axis AD value, and the Y-axis voltage division signal is subjected to analog-to-digital conversion processing to generate a Y-axis AD value; The X-axis AD value and the Y-axis AD value are used as the position parameters.
3. The handle calibration method according to claim 2, It is characterized in that The step of determining the actual center position parameter according to the plurality of center position parameters and storing the actual center position parameter as a new center position calibration parameter specifically includes: Calculate the average of multiple X-axis AD values in the multiple center position parameters to determine the X-axis AD average value; Calculate the mean of multiple Y-axis AD values in multiple center position parameters to determine the Y-axis AD average value; The X-axis AD average value and the Y-axis AD average value are used as the actual center position parameters, and the actual center position parameters are stored and set as new center position calibration parameters.
4. The handle calibration method according to claim 1, It is characterized in that When the joystick of the handle is restored from the extreme position to the center position, the step of storing and setting the position parameters of the current joystick as the center position parameters specifically includes: According to the position parameter and the stored center position calibration parameter, it is determined that the distance of the position of the joystick relative to the center position is gradually shortened, and it is confirmed that the joystick of the handle is restored from the extreme position to the center position; When the distance remains unchanged within a preset first time period, the position parameters of the current joystick are stored and set as the center position parameters.
5. The handle calibration method according to claim 4, It is characterized in that When the distance remains unchanged within the preset first time period, the step of storing and setting the position parameters of the current joystick as the center position parameters specifically includes: When the distance remains unchanged within the preset first time period and is less than the preset first distance, the position parameters of the current joystick are stored and set as the center position parameters.
6. The handle calibration method according to claim 1, It is characterized in that When the rocker of the handle is restored from the extreme position to the center position, between the step of storing and setting the position parameters of the current rocker as the center position parameters and the step of determining the actual center position parameters according to the plurality of center position parameters, and storing and updating the actual center position parameters as the center position calibration parameters, the method further includes: The center position parameter corresponding to the rocker returning to the center position from the first extreme position is set as the first center position parameter; the center position parameter corresponding to the rocker returning to the center position from the second extreme position is set as the second center position parameter; When the distance between the position corresponding to the first center position parameter and the position corresponding to the second center position parameter reaches a preset second distance, the user is prompted to recalibrate and return to execute the step of storing and setting the position parameters of the current joystick as the center position parameters when the joystick of the handle returns to the center position from the extreme position.
7. The method according to any one of claims 1 to 6, It is characterized in that When the rocker of the handle is restored from the extreme position to the center position, between the step of storing and setting the position parameters of the current rocker as the center position parameters and the step of determining the actual center position parameters according to the plurality of center position parameters, and storing and updating the actual center position parameters as the center position calibration parameters, the method further includes: The user is prompted to repeat the calibration and correspondingly repeat at least once the step of storing and setting the position parameters of the current rocker as the center position parameters when the rocker of the handle is restored from the extreme position to the center position.
8. The method according to claim 7, It is characterized in that The step of storing and setting the position parameters of the current rocker as the center position parameters when the rocker of the handle is restored from the extreme position to the center position is performed at least twice; The limit positions at least include: an upper left limit position, a lower left limit position, an upper right limit position and a lower right limit position; The method further comprises: Based on the position parameters of the joystick when it is at the upper left limit position, the lower left limit position, the upper right limit position and the lower right limit position, the actual boundary position parameters are determined, and the actual boundary position parameters are stored and updated as boundary position calibration parameters.
9. The method according to claim 8, It is characterized in that When an X-axis voltage divider circuit and a Y-axis voltage divider circuit are provided in the handle, the steps of determining the actual boundary position parameters based on the position parameters when the joystick is at the upper left limit position, the lower left limit position, the upper right limit position and the lower right limit position, and storing and updating the actual boundary position parameters as boundary position calibration parameters specifically include: Based on the position parameters when the joystick is at the upper left limit position, the lower left limit position, the upper right limit position, and the lower right limit position, obtaining a first maximum X-axis AD value, a second maximum X-axis AD value, a first minimum X-axis AD value, a second minimum X-axis AD value, a maximum Y-axis AD value, a second maximum Y-axis AD value, a first minimum Y-axis AD value, and a second minimum Y-axis AD value; Calculate the average of the first maximum X-axis AD value and the second maximum X-axis AD value to determine the maximum X-axis AD average value; Calculate the average of the first minimum X-axis AD value and the second minimum X-axis AD value to determine the minimum X-axis AD average value; Calculate the average of the first maximum Y-axis AD value and the second maximum Y-axis AD value to determine the maximum Y-axis AD average value; Calculate the average of the first minimum Y-axis AD value and the second minimum Y-axis AD value to determine the minimum Y-axis AD average value; The maximum X-axis AD average value, the minimum X-axis AD average value, the maximum Y-axis AD average value, and the minimum Y-axis AD average value are set as actual boundary position parameters, and the actual boundary position parameters are stored and updated as boundary position calibration parameters.
10. The method according to any one of claims 1 to 6, It is characterized in that Before executing the step of storing and setting the position parameters of the current rocker as the center position parameters when the rocker of the handle is restored from the extreme position to the center position, the method further includes: When the joystick offset is determined based on the position parameters when the joystick is in the center position and the stored center position calibration parameters, the user is prompted to calibrate and execute the step of storing and setting the current joystick position parameters as the center position parameters when the joystick of the handle returns to the center position from the extreme position.
11. A control device, It is characterized in that The control device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the handle calibration method according to any one of claims 1 to 10.
12. A handle, It is characterized in that The handle comprises an X-axis voltage divider circuit, a Y-axis voltage divider circuit and the control device as claimed in claim 11; Among them, the X-axis voltage divider circuit is used to adjust its own voltage divider ratio and output the corresponding X-axis voltage divider signal when the joystick moves in the left and right directions; the Y-axis voltage divider circuit is used to adjust its own voltage divider ratio and output the corresponding Y-axis voltage divider signal when the joystick moves in the up and down directions.
13. A handle assembly, It is characterized in that The handle assembly comprises the handle as claimed in claim 9 and an auxiliary calibration device detachably connected to the handle; The auxiliary calibration device is provided with a central hole at the central position, and also has a plurality of mutually connected through slots, at least two of which pass through the central hole and are symmetrically arranged along the central position; When the auxiliary calibration device is arranged on the handle, the rocker of the handle is arranged through the central hole and can move along the extending direction of the through slot.
14. The handle assembly of claim 13, It is characterized in that An XY coordinate system is formed with the center position of the joystick as the origin, the straight line where the joystick moves in the left and right directions as the X-axis, and the straight line where the joystick moves in the up and down directions as the Y-axis. The XY coordinate system has four quadrants. The plurality of through slots include at least four through slots; when the auxiliary calibration device is arranged on the handle, the four through slots are respectively arranged in four quadrants and the included angle between the midline of each through slot and its adjacent X-axis / Y-axis is 45°.
Citation Information
Cited By
Method for adjusting operation handle, electronic equipment and readable storage medium
CN119394158A
Rocker output and shaft self-correction device and method of unmanned aerial vehicle control terminal
CN120578156A
Configurable dead zone-based joystick control precision improvement method and system
CN121070130A
Joystick control precision improvement method and system based on configurable dead zone
CN121070130B
Method and electronic device for optimizing roundness error of analog joystick
TWI925708B
