CN111151000B - Method, device, equipment and storage medium for adjusting operation lever - Google Patents
Method, device, equipment and storage medium for adjusting operation lever Download PDFInfo
- Publication number
- CN111151000B CN111151000B CN201911366887.5A CN201911366887A CN111151000B CN 111151000 B CN111151000 B CN 111151000B CN 201911366887 A CN201911366887 A CN 201911366887A CN 111151000 B CN111151000 B CN 111151000B
- Authority
- CN
- China
- Prior art keywords
- value
- calibration
- longitudinal
- correction factor
- preset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/40—Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
- A63F13/42—Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E30/00—Energy generation of nuclear origin
- Y02E30/30—Nuclear fission reactors
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Human Computer Interaction (AREA)
- Mechanical Control Devices (AREA)
- Position Input By Displaying (AREA)
Abstract
The invention discloses an operation rod adjusting method, which comprises the following steps: acquiring the use times of an operation rod, and comparing the use times with a preset threshold value; when the use times are larger than or equal to a preset threshold value, calculating a calibration value by using an initial value, the use times of the operating lever and a resistance change value caused by abrasion generated by one-time use; and acquiring the calibration value to perform automatic calibration. The invention also discloses a device, equipment and storage medium for adjusting the operating lever. The invention can improve the efficiency of operating lever calibration and make the operating lever calibration more convenient.
Description
Technical Field
The present invention relates to the field of mechanical component testing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for adjusting an operation lever.
Background
Nowadays, the types of games are more and more, the quality of the games is higher and higher, and many players like to play 3A games on a computer, but the keyboard and mouse operations are comfortable and natural without the operation of the handle, so that many players can purchase a proper handle for themselves.
The gamepad is a part of a common electronic game machine, and controls virtual characters of the game are realized by manipulating buttons and the like of the game pad. The standard configuration of gamepads includes: the direction control key, the action control key and the select and pause key. With the upgrading and updating of the hardware of the game equipment, a Joystick (Joystick) is additionally arranged on a modern game handle, so that great convenience is brought to game players.
The internal working principle of the operating rod is shown in fig. 1, a slide rheostat is respectively arranged in the transverse direction and the longitudinal direction, and in the moving process of the operating rod, the MCU (Microcontroller Unit, micro control unit) detects the resistance change of the operating rod, and the moving distance of the operating rod in the transverse direction and the longitudinal direction can be calculated through the resistance change.
At present, after the operation lever is used for a long time, the problem of inaccurate game operation easily occurs, a user is required to manually calibrate the operation lever, a calibration method for manually calibrating the operation lever by the user is complex and low-efficiency, and how to conveniently and efficiently calibrate the operation lever becomes the technical problem to be solved at present.
Disclosure of Invention
The invention mainly aims to provide an operating rod adjusting method, an operating rod adjusting device and a storage medium, and aims to solve the technical problems that an existing operating rod calibrating method is complex and low-efficiency.
In order to achieve the above object, the present invention provides a lever adjustment method including the steps of:
acquiring the use times of an operation rod, and comparing the use times with a preset threshold value;
when the use times are greater than or equal to the preset threshold, determining a correction factor of the operating rod according to the use times;
calculating the calibration value according to the initial value of the operating rod and the correction factor;
and calibrating the operation rod according to the calibration value.
In an embodiment, the step of obtaining the number of uses of the operation lever and comparing the number of uses with a preset number of uses threshold value includes:
acquiring a transverse moving distance of an operating rod, comparing the transverse moving distance with a preset distance, and/or acquiring a longitudinal moving distance of the operating rod, and comparing the longitudinal moving distance with the preset distance;
and when the transverse moving distance is equal to or greater than the preset distance, the transverse using times are added once, and when the longitudinal moving distance is equal to or greater than the preset distance, the longitudinal using times are added once.
In one embodiment, when the number of uses is greater than or equal to the preset threshold, the step of determining the correction factor of the operation lever according to the number of uses includes:
when the use times are greater than or equal to the preset threshold, inputting the use times into a preset correction factor calculation formula to obtain the correction factor of the operating rod, wherein the preset correction factor calculation formula is as follows: t=1+n r';
and T is a correction factor, n is the number of times of use, and R' is the change value of resistance generated by one-time use of the operating lever.
In one embodiment, the step of calculating the calibration value according to the initial value of the joystick and the correction factor includes:
inputting the correction factor into a first preset formula to obtain a transverse calibration value of the operating rod, wherein the first preset formula is as follows: x' =x×t;
the X' is a transverse calibration value, and the X is a transverse initial value;
inputting the correction factor into a second preset formula to obtain a longitudinal calibration value of the operating rod, wherein the second preset formula is as follows: y' =y×t;
and Y' is a transverse calibration value, and Y is a longitudinal initial value.
In one embodiment, the step of calibrating the lever according to the calibration value includes:
acquiring a transverse calibration value and a longitudinal calibration value in the calibration values;
inquiring a preset first mapping table, obtaining a maximum resistance value and a minimum resistance value of the transverse sliding rheostat corresponding to the transverse calibration value, subtracting the minimum resistance value from the maximum resistance value, calibrating the resistance value of the transverse sliding rheostat, adjusting the transverse parameters of the operating rod through the calibration resistance value of the transverse sliding rheostat, and completing transverse calibration.
Inquiring a preset first mapping table, obtaining a maximum resistance value and a minimum resistance value of the longitudinal sliding rheostat corresponding to the longitudinal calibration value, subtracting the minimum resistance value from the maximum resistance value, calibrating the resistance value of the longitudinal sliding rheostat, adjusting the longitudinal parameter of the operating rod through the calibration resistance value of the longitudinal sliding rheostat, and completing longitudinal calibration.
In one embodiment, after the step of calculating the calibration value according to the initial value of the joystick and the correction factor, the method includes:
acquiring a transverse calibration value and a longitudinal calibration value in the calibration values;
and writing the transverse calibration value into a memory to serve as a new transverse initial value, and writing the longitudinal calibration value into the memory to serve as a new longitudinal initial value.
In an embodiment, after the step of calibrating the lever according to the calibration value, the method includes:
and acquiring a correction factor, a calibration value and calibration times, and writing the correction factor, the calibration value and the calibration times into a preset log file.
In addition, in order to achieve the above object, the present invention also provides a lever adjusting apparatus including: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein:
the computer program when executed by the processor implements the steps of the lever adjustment method described above.
In addition, in order to achieve the above object, the present invention also provides a computer storage medium having a computer program stored thereon, which when executed by a processor, implements the steps of the lever adjustment method as described above.
In addition, in order to achieve the above object, the present invention also provides a lever adjustment device including:
the method comprises the steps of obtaining a comparison module, wherein the comparison module is used for obtaining the use times of an operation rod and comparing the use times with a preset threshold value;
the judging module is used for determining a correction factor of the operating rod according to the using times when the using times are larger than or equal to the preset threshold value;
the calculating module is used for calculating the calibration value according to the initial value of the operating rod and the correction factor;
and the adjusting module is used for calibrating the operating rod according to the calibration value.
In addition, in order to achieve the above object, the present invention also provides a lever adjusting apparatus including: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein:
the computer program when executed by the processor implements the steps of the lever adjustment method described above.
In addition, in order to achieve the above object, the present invention also provides a computer storage medium having a computer program stored thereon, which when executed by a processor, implements the steps of the lever adjustment method as described above.
According to the method, the device, the equipment and the computer storage medium for adjusting the operating rod, the operating rod adjusting equipment compares the using times with the preset threshold value by acquiring the using times of the operating rod, so that the operation of triggering the operating rod to calibrate is automatically judged, the calibration operation of a user is simplified, when the using times are greater than or equal to the preset threshold value, the correction factor of the operating rod is determined according to the using times, the calibration value is calculated according to the initial value of the operating rod and the correction factor, the accurate parameter for calibrating is obtained by calculating the correction factor and the calibration value, and the operating rod is calibrated by using the calibration value, so that the operation steps of the user are greatly simplified, errors caused by manually calibrating the operating rod are avoided, and the accurate, convenient and efficient calibration of the operating rod is realized.
Drawings
FIG. 1 is a schematic diagram of the operation of the interior of an operating lever according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a device structure of a hardware operating environment according to an embodiment of the present invention;
FIG. 3 is a flowchart of a first embodiment of a lever adjustment method according to the present invention;
FIG. 4 is a schematic diagram showing a specific scenario of comparison of the operation lever before and after calibration in the first embodiment of the operation lever adjustment method of the present invention;
FIG. 5 is a flowchart of a second embodiment of the lever adjustment method of the present invention;
fig. 6 is a schematic functional block diagram of an embodiment of the lever adjusting device according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The main solutions of the embodiments of the present invention are:
because the prior art adopts to connect the operating lever equipment to the computer when carrying out the operating lever correction, then according to computer software instruction requirement manual stirring operating lever in order to assist correction, such correction mode is comparatively complicated and probably has manual operation to be out of specification and leads to correction result inaccurate grade defect.
The invention provides a solution, which enables the device to recalculate the calibration value according to the operation rod use times and the preset calibration value and write the calibration value into the memory to complete the calibration, thereby greatly simplifying the operation required to be executed by a user and realizing the convenient and efficient calibration of the operation rod.
As shown in fig. 2, fig. 2 is a schematic structural diagram of a terminal (also called a lever adjusting device) of a hardware running environment according to an embodiment of the present invention, where the lever adjusting device may be formed by a single lever adjusting device or may be formed by a combination of other devices and a lever adjusting device.
The terminal of the embodiment of the invention can be a fixed terminal or a mobile terminal, such as an intelligent air conditioner with networking function, an intelligent electric lamp, an intelligent power supply, an intelligent sound box, an automatic driving automobile, a PC (personal computer) personal computer, an intelligent mobile phone, a tablet personal computer, an electronic book reader, a portable computer and the like.
As shown in fig. 2, the terminal may include: a processor 1001, e.g. a central processing unit Central Processing Unit, a CPU), a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., WIreless-FIdelity, WIFI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the terminal structure shown in fig. 2 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 2, the computer software product is stored in a storage medium (storage medium: also called computer storage medium, computer medium, readable storage medium, computer readable storage medium, or direct called medium, etc.), and the storage medium may be a nonvolatile readable storage medium, such as RAM, a magnetic disk, an optical disk, etc.), and includes several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method according to the embodiments of the present invention, and the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a computer program.
In the terminal shown in fig. 2, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be used to call a computer program stored in the memory 1005 and execute steps in the lever adjustment method provided in the following embodiment of the present invention.
Based on the above hardware structure, an embodiment of the lever adjustment method of the present invention is presented.
Referring to fig. 3, in a first embodiment of a lever adjusting method of the present invention, the lever adjusting method includes:
step S10, the use times of the operation rod are obtained, and the use times are compared with a preset threshold value.
The joystick correction method in the present embodiment applies a joystick adjustment device, the kind of which is not particularly limited, that is, the joystick adjustment device may be a game handle with a joystick, a VR handle, an unmanned aerial vehicle control handle, a robot control handle, or a game device communicatively connected with a joystick, or the like.
In this embodiment, a game handle is taken as an example to describe a preset acquisition comparison module in the game handle, where the preset acquisition comparison module is used to acquire the number of times of use of an operation lever and compare the number of times with a preset threshold (the preset threshold is a value compared with the number of times of use of the operation lever, and when the number of times of use of the operation lever is greater than or equal to the preset threshold, that is, trigger calibration, the preset threshold is a modifiable parameter during user initialization), and the preset acquisition comparison module may be a chip with a voltage acquisition function or a strain gauge.
In combination with fig. 1, the operation lever is forced to move to drive the sliding sheets of the transverse sliding rheostat and the longitudinal sliding rheostat to move, and the comparison module is acquired to acquire operation lever movement information, and two specific implementation modes of acquiring the operation lever movement information by the handle through the comparison module are provided in the embodiment, including:
the implementation mode is as follows: the chip with the voltage acquisition function acquires the voltage values of the sliding sheets of the transverse sliding rheostat and the longitudinal sliding rheostat, and acquires the moving distance of the operating rod in the transverse direction and the longitudinal direction according to the voltage values;
the implementation mode II is as follows: the strain gauge acquires stress information of the operating rod, and acquires the moving distance of the operating rod in the transverse direction and the longitudinal direction according to the stress information.
After the game handle obtains the moving distance of the operation rod in the transverse direction and the longitudinal direction, the game handle judges whether the moving distance in the transverse direction and/or the longitudinal direction generates effective operation, and if the moving distance in the transverse direction and/or the longitudinal direction generates effective operation, the game handle counts the using times as one time.
In this embodiment, the game handle counts the number of times of use of the operation lever in real time, and when the number of times of use is greater than or equal to the preset threshold value, the game handle automatically performs calibration, specifically including:
and step S20, when the use times are greater than or equal to the preset threshold, determining the correction factor of the operation rod according to the use times.
The memory is preset in the game handle, and parameters such as an initial value, a preset threshold value, a calibration value and the like are stored in the preset memory, and it can be understood that in the use process of the handle, the smaller the preset threshold value selected by a user is, the higher the calibration frequency of the operating rod is, the higher the control precision of the operating rod is, the lower the calibration frequency of the operating rod is, the lower the erasing operation frequency of the memory is, and the user can adjust according to the actual use situation. The user-adjustable preset threshold provides the selection of different calibration frequencies under different use scenes, and gives consideration to the use requirements of different scenes.
And continuously accumulating the transverse or longitudinal use times of the operating rod, when the transverse use times are greater than or equal to a preset threshold value, starting to calibrate each transverse parameter, and when the longitudinal use times accumulated value is greater than or equal to the preset threshold value, starting to calibrate each longitudinal parameter, wherein the transverse and longitudinal parameters are calibrated respectively.
The game handle is provided with a preset calculating module, the calculating module comprises a preset correction factor calculating method, when the transverse or longitudinal use times are larger than or equal to a preset threshold value, the correction factor of the operating lever is determined according to the use times, the correction factor is one of factors influencing the calculation of the subsequent calibration value, a plurality of determining modes can be provided, and two determining modes are provided in the embodiment:
determining a first mode: the number of uses is correlated to the value of the primary resistive loss to obtain a correction factor.
And a second determination mode: and obtaining the correction factor by correlating the frequency of use with the voltage difference value under the same coordinate of the operating rod.
In this embodiment, the calibration operation is triggered by the preset threshold value, and the correction factor is calculated, where the correction factor may be a calculated value related to a resistance value, a voltage difference factor, and the like, so that the correction factor may comprehensively consider various factors in the calibration, so that the calibration of the operation lever is more accurate.
And step S30, calculating the calibration value according to the initial value of the operation rod and the correction factor.
As shown in fig. 1, when the operating lever moves, the transverse sliding rheostat and the longitudinal sliding rheostat controlled by the operating lever change the resistance value of the sliding rheostat due to friction loss and other reasons in the long-term use process of the game handle, and when the resistance value changes, the operation accuracy of the operating lever is affected, so that the resistance value of the sliding rheostat needs to be recalibrated and obtained.
The memory is preset in the game handle, and stores parameters such as an initial value, a preset threshold value, an initial value and the like, wherein a calibration value is a parameter related to the resistance value of the slide rheostat of the operating lever, and has a mapping relation with the resistance maximum value and the resistance minimum value of the slide rheostat, the mapping relation can be measured in a laboratory, and the calibration value is divided into a transverse calibration value and a longitudinal calibration value which are respectively used for transverse calibration and longitudinal calibration.
After the correction factor is obtained, the calibration value may be recalculated using the correction factor and the initial value.
And step S40, calibrating the operation rod according to the calibration value.
Referring to fig. 1, the operation lever includes a transverse sliding resistor and a longitudinal sliding resistor, and when the operation lever moves, a sliding piece of the sliding resistor is driven to slide, and when the sliding piece of the sliding resistor slides for a long time, friction loss is generated on the sliding resistor to change a resistance value.
The resistance R of a conductor is proportional to its length L, resistivity ρ and inversely proportional to its cross-sectional area S, this law is called the law of resistance (law of resistance), the formula r=ρl/S. Wherein ρ: resistivity of the material from which the resistor is made, L: length of wire wound into resistor, S: wire cross-sectional area wound into resistor, R: resistance value. When the resistance is worn out, i.e., the value of the cross-sectional area S of the wire becomes small, the resistance value R increases. The corresponding calibration value therefore also needs to be corrected and the resistance value is redetermined accordingly.
In this embodiment, the maximum value and the minimum value of the resistance of the sliding rheostat under the current calibration value are obtained by using the calibration value obtained by the previous step to calculate the calibrated resistance value, and the calibrated resistance value is written into the memory to cover the resistance parameter in the replacement adjustment parameter.
It will be appreciated by those skilled in the art that the manner of obtaining the maximum and minimum values of the sliding resistor is not limited to the manner described above, and that the manner of obtaining the maximum and minimum values of the sliding resistor is not limited thereto.
The change of the resistance value of the sliding rheostat after the calibration of the operation rod in the memory is shown in fig. 4, the inner ring is the resistance value of the sliding rheostat before the calibration, and the outer ring is the resistance value of the sliding rheostat after the calibration.
In this embodiment, the operation lever calibration procedure is triggered by comparing the operation lever usage times with the preset threshold, the correction factor of the operation lever is determined according to the usage times, the calibration value is calculated according to the correction factor and the initial value, and then the calibration is performed according to the calibration value.
Further, referring to fig. 5, on the basis of the first embodiment of the present invention, a second embodiment of the operation lever adjusting method of the present invention is proposed, which is different from the first embodiment of the present invention in that a specific acquisition method of the number of operation lever uses is refined, and the operation lever adjusting method includes:
step S11, obtaining the transverse movement distance of the operation rod, comparing the transverse movement distance with a preset distance, and/or obtaining the longitudinal movement distance of the operation rod, and comparing the longitudinal movement distance with the preset distance.
In this embodiment, the calculation of the movement distance is divided into a lateral distance and a longitudinal distance, which correspond to the lateral calibration and the longitudinal calibration of the operation lever calibration, where the lateral distance and the longitudinal distance are the same in calculation, and the preset distance is a modifiable parameter during user initialization, and the parameter is simultaneously applicable to the comparison between the lateral direction and the longitudinal direction.
Step S12, when the transverse moving distance is equal to or greater than a preset distance, the transverse using times are added once, and when the longitudinal moving distance is equal to or greater than the preset distance, the longitudinal using times are added once.
In this embodiment, the game handle obtains the movement distance of the operation lever in the lateral direction and the longitudinal direction through the preset obtaining comparison module and compares the movement distance with the preset distance, the preset distance is a standard value for comparing the movement distance of the operation lever in the lateral direction and the longitudinal direction, when the movement distance of the operation lever in the lateral direction is greater than or equal to the preset distance, the number of times of lateral use of the operation lever is accumulated once, and when the movement distance of the operation lever in the longitudinal direction is greater than or equal to the preset distance, the number of times of longitudinal use of the operation lever is accumulated once.
Further, in a third embodiment of the lever adjustment method of the present invention, the lever adjustment method includes:
step S21, when the number of times of use is greater than or equal to the preset threshold, inputting the number of times of use into a preset correction factor calculation formula to obtain a correction factor of the operation lever, where the preset correction factor calculation formula is: t=1+n r';
and T is a correction factor, n is the number of times of use, and R' is the change value of resistance generated by one-time use of the operating lever.
In this embodiment, a specific calculation method of the correction factor is provided, as shown in the formula in step S21, where n is the number of times of use, n is the number of times of lateral use when calculating the lateral calibration correction factor, n is the number of times of longitudinal use when calculating the longitudinal calibration correction factor, and n is the number of times of longitudinal use, and the value of change in resistance caused by wear generated by one time use of the R' operating lever is applicable to both the lateral sliding varistor and the longitudinal sliding varistor.
Further, in a fourth embodiment of the lever adjustment method of the present invention, the lever adjustment method includes:
step a1, inputting the correction factor into a first preset formula to obtain a transverse calibration value of the operating lever, wherein the first preset formula is as follows: x' =x×t; the X' is a transverse calibration value, and the X is a transverse initial value;
step a2, inputting the correction factor into a second preset formula to obtain a longitudinal calibration value of the operating rod, wherein the second preset formula is as follows: y' =y×t; and Y' is a transverse calibration value, and Y is a longitudinal initial value.
In the present embodiment, a calculation method of the calibration value is given, and since the calibration of the operation lever distinguishes between the lateral calibration and the longitudinal calibration, the calibration value is also divided into the lateral calibration value and the longitudinal calibration value.
As shown in the first preset formula in step a1, wherein the lateral calibration value is denoted by X', X denotes a lateral initial value, and T denotes a lateral correction factor in this formula. As shown in the second preset formula in step a2, wherein the longitudinal calibration value is denoted by Y', Y denotes a longitudinal initial value, and T denotes a longitudinal correction factor in the formula.
Further, in a fifth embodiment of the lever adjustment method of the present invention, on the basis of the fourth embodiment, the steps of:
step a3, acquiring a transverse calibration value and a longitudinal calibration value in the calibration values;
and a4, writing the transverse calibration value into a memory to serve as a new transverse initial value, and writing the longitudinal calibration value into the memory to serve as a new longitudinal initial value.
In this embodiment, the transverse calibration value and the longitudinal calibration value calculated in the foregoing steps are obtained, and since the calibration values cannot be directly used to complete the calibration, and the present calibration value needs to be used when the calibration value is calculated in the next calibration, the present calibration value needs to be stored, and in this embodiment, the calibration value is written into the memory, and the original calibration value is updated and replaced.
Further, in a sixth embodiment of the lever adjustment method of the present invention, the lever adjustment method includes:
step b1, acquiring a transverse calibration value and a longitudinal calibration value in the calibration values;
and b2, inquiring a preset first mapping table, obtaining a maximum resistance value and a minimum resistance value of the transverse sliding rheostat corresponding to the transverse calibration value, subtracting the minimum resistance value from the maximum resistance value, adjusting the transverse parameters of the operating rod through the transverse sliding rheostat calibration resistance value, and completing transverse calibration.
And b3, inquiring a preset first mapping table, obtaining a maximum resistance value and a minimum resistance value of the longitudinal sliding rheostat corresponding to the longitudinal calibration value, subtracting the minimum resistance value from the maximum resistance value, calibrating the resistance value of the longitudinal sliding rheostat, adjusting the longitudinal parameter of the operating rod through the calibration resistance value of the longitudinal sliding rheostat, and completing longitudinal calibration.
In this embodiment, a transverse calibration value and a longitudinal calibration value written into a memory are obtained first, a mapping relation between the calibration value and a maximum value and a minimum value of a resistance of a sliding rheostat corresponding to the calibration value is recorded in a preset first mapping table, the preset first mapping table is queried, the maximum value and the minimum value of the resistance of the sliding rheostat corresponding to the calibration value are obtained, the maximum resistance value is subtracted by the minimum resistance value, the transverse sliding rheostat calibration resistance value is obtained, and the calibration resistance value is written into the memory as an updated resistance parameter to complete calibration.
Further, in a seventh embodiment of the lever adjustment method of the present invention, the lever adjustment method includes:
step c1, obtaining a correction factor, a calibration value and the number of calibration times, and writing the correction factor, the calibration value and the number of calibration times into a preset log file.
In this embodiment, a method for recording calibration of an operation lever is provided, key parameters for the calibration of the operation lever are obtained, including but not limited to correction factors, calibration values, calibration times, etc., and the key parameters are written into a preset log file to complete the recording calibration operation.
The user can learn about the failure of the calibration system or exclude the calibration system from the failure check by connecting with the game pad, such as a cell phone, a computer, etc., and viewing the calibration record in the preset log file on the connected device.
In addition, referring to fig. 6, an embodiment of the present invention further proposes a lever adjustment device including:
the acquisition comparison module 10 is used for acquiring the use times of the operation rod and comparing the use times with a preset threshold value;
a judging module 20, configured to determine a correction factor of the operation lever according to the usage number when the usage number is greater than or equal to the preset threshold;
a calculation module 30 for calculating the calibration value according to the initial value of the operation lever and the correction factor;
and the adjusting module 40 is used for calibrating the operation rod according to the calibration value.
In one embodiment, the acquiring the comparison module 10 includes:
the device comprises an acquisition unit, a control unit and a control unit, wherein the acquisition unit is used for acquiring the transverse movement distance of the operation rod, comparing the transverse movement distance with a preset distance, and/or acquiring the longitudinal movement distance of the operation rod, and comparing the longitudinal movement distance with the preset distance;
and the comparison unit is used for adding one time to the transverse use times when the transverse moving distance is equal to or greater than a preset distance, and adding one time to the longitudinal use times when the longitudinal moving distance is equal to or greater than the preset distance.
In one embodiment, the determining module 20 includes:
the judgment input unit is used for inputting the use times into a preset correction factor calculation formula when the use times are greater than or equal to the preset threshold value;
and the formula calculation unit is used for calculating the correction factor of the operation rod.
In one embodiment, the computing module 30 includes:
and the formula calculation unit is used for calculating the calibration value.
An acquisition unit configured to acquire a lateral calibration value and a longitudinal calibration value among the calibration values;
and the writing unit is used for writing the transverse calibration value into a memory to serve as a new transverse initial value, and writing the longitudinal calibration value into the memory to serve as a new longitudinal initial value.
In one embodiment, the adjustment module 40 includes:
an acquisition unit configured to acquire a lateral calibration value and a longitudinal calibration value among the calibration values;
the query and adjustment unit is used for querying a preset first mapping table, obtaining a maximum resistance value and a minimum resistance value of the transverse sliding rheostat corresponding to the transverse calibration value, subtracting the minimum resistance value from the maximum resistance value, adjusting the transverse parameters of the operating rod through the transverse sliding rheostat calibration resistance value, and completing transverse calibration;
inquiring a preset first mapping table, obtaining a maximum resistance value and a minimum resistance value of the longitudinal sliding rheostat corresponding to the longitudinal calibration value, subtracting the minimum resistance value from the maximum resistance value, calibrating the resistance value of the longitudinal sliding rheostat, adjusting the longitudinal parameter of the operating rod through the calibration resistance value of the longitudinal sliding rheostat, and completing longitudinal calibration.
The steps of implementing each functional module of the operation lever adjusting device can refer to each embodiment of the operation lever adjusting method of the present invention, and are not described herein again.
In addition, the embodiment of the invention also provides a computer storage medium.
The computer storage medium has stored thereon a computer program which, when executed by a processor, implements the operations in the lever adjustment method provided by the above embodiment.
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity/operation/object from another entity/operation/object without necessarily requiring or implying any actual such relationship or order between such entities/operations/objects; the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points. The apparatus embodiments described above are merely illustrative, in which the units illustrated as separate components may or may not be physically separate. Some or all of the modules may be selected according to actual needs to achieve the objectives of the present invention. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.
Claims (9)
1. A lever adjustment method, characterized in that the lever adjustment method comprises the steps of:
acquiring the use times of an operation rod, and comparing the use times with a preset threshold value;
when the use times are greater than or equal to the preset threshold, inputting the use times into a preset correction factor calculation formula to obtain the correction factor of the operating rod, wherein the preset correction factor calculation formula is as follows: t=1+n×r ', where T is a correction factor, n is the number of times of use, and R' is a change value of resistance generated by one time use of the operating lever;
calculating a calibration value according to an initial value of the operating lever and the correction factor, wherein the initial value is an initial resistance value, and the calibration value is a corrected resistance value obtained by multiplying the initial resistance value by the correction factor;
and calibrating the operation rod according to the calibration value.
2. The lever adjustment method according to claim 1, wherein the number of uses includes a number of lateral uses and a number of longitudinal uses;
the step of obtaining the usage times of the operation lever and comparing the usage times with a preset threshold value comprises the following steps:
acquiring a transverse moving distance of an operating rod, comparing the transverse moving distance with a preset distance, and/or acquiring a longitudinal moving distance of the operating rod, and comparing the longitudinal moving distance with the preset distance;
and when the transverse moving distance is equal to or greater than the preset distance, the transverse using times are added once, and when the longitudinal moving distance is equal to or greater than the preset distance, the longitudinal using times are added once.
3. The lever adjustment method of claim 1, wherein the calibration values comprise a lateral calibration value and a longitudinal calibration value, and the initial values comprise a lateral initial value and a longitudinal initial value;
the step of calculating the calibration value according to the initial value of the operation lever and the correction factor comprises the following steps:
inputting the correction factor into a first preset formula to obtain a transverse calibration value of the operating rod, wherein the first preset formula is as follows: x '=x×t, where X' is a lateral calibration value, and X is a lateral initial value;
inputting the correction factor into a second preset formula to obtain a longitudinal calibration value of the operating rod, wherein the second preset formula is as follows: y '=y×t, where Y' is a lateral calibration value and Y is a longitudinal initial value.
4. The lever adjustment method according to claim 1, wherein the step of calibrating the lever according to the calibration value includes:
acquiring a transverse calibration value and a longitudinal calibration value in the calibration values;
inquiring a preset first mapping table, obtaining a maximum resistance value and a minimum resistance value of the transverse sliding rheostat corresponding to the transverse calibration value, subtracting the minimum resistance value from the maximum resistance value, adjusting the transverse parameters of the operating rod through the transverse sliding rheostat calibration resistance value, and completing transverse calibration;
inquiring a preset first mapping table, obtaining a maximum resistance value and a minimum resistance value of the longitudinal sliding rheostat corresponding to the longitudinal calibration value, subtracting the minimum resistance value from the maximum resistance value, calibrating the resistance value of the longitudinal sliding rheostat, adjusting the longitudinal parameter of the operating rod through the calibration resistance value of the longitudinal sliding rheostat, and completing longitudinal calibration.
5. The lever adjustment method according to claim 1, wherein after the step of calculating the calibration value based on the initial value of the lever and the correction factor, comprising:
acquiring a transverse calibration value and a longitudinal calibration value in the calibration values;
and writing the transverse calibration value into a memory to serve as a new transverse initial value, and writing the longitudinal calibration value into the memory to serve as a new longitudinal initial value.
6. The lever adjustment method according to any one of claims 1 to 5, characterized in that after the step of calibrating the lever according to the calibration value, it comprises:
and acquiring a correction factor, a calibration value and calibration times, and writing the correction factor, the calibration value and the calibration times into a preset log file.
7. A lever adjustment device, characterized in that the lever adjustment device comprises:
the method comprises the steps of obtaining a comparison module, wherein the comparison module is used for obtaining the use times of an operation rod and comparing the use times with a preset threshold value;
the judging module is used for inputting the use times into a preset correction factor calculation formula to obtain the correction factor of the operating rod when the use times are greater than or equal to the preset threshold, wherein the preset correction factor calculation formula is as follows: t=1+n×r ', where T is a correction factor, n is the number of times of use, and R' is a change value of resistance generated by one time use of the operating lever;
the calculating module is used for calculating a calibration value according to the initial value of the operating rod and the correction factor, wherein the initial value is an initial resistance value, and the calibration value is a corrected resistance value obtained by multiplying the initial resistance value by the correction factor;
and the adjusting module is used for calibrating the operating rod according to the calibration value.
8. A lever adjustment device, characterized in that the lever adjustment device comprises: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein:
the computer program, when executed by the processor, implements the steps of the lever adjustment method according to any one of claims 1 to 6.
9. A computer storage medium, characterized in that the computer storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the lever adjustment method according to any of claims 1 to 6.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911366887.5A CN111151000B (en) | 2019-12-26 | 2019-12-26 | Method, device, equipment and storage medium for adjusting operation lever |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911366887.5A CN111151000B (en) | 2019-12-26 | 2019-12-26 | Method, device, equipment and storage medium for adjusting operation lever |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111151000A CN111151000A (en) | 2020-05-15 |
| CN111151000B true CN111151000B (en) | 2023-08-29 |
Family
ID=70558411
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201911366887.5A Active CN111151000B (en) | 2019-12-26 | 2019-12-26 | Method, device, equipment and storage medium for adjusting operation lever |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111151000B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112337084B (en) * | 2020-09-29 | 2022-12-09 | 歌尔科技有限公司 | Rocker drift processing method and device |
| CN115738232B (en) * | 2022-11-10 | 2024-05-07 | 广州小鸡快跑网络科技有限公司 | A calibration test method and system for game controller |
| CN119655630A (en) * | 2023-09-19 | 2025-03-21 | 广东美的生活电器制造有限公司 | Cooking equipment and control method, device and readable storage medium thereof |
Citations (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO1994016426A1 (en) * | 1993-01-07 | 1994-07-21 | Thrustmaster, Inc. | Reconfigurable joystick controller with multi-stage trigger |
| JP3206751B1 (en) * | 1999-04-23 | 2001-09-10 | 株式会社ソニー・コンピュータエンタテインメント | Operation device |
| CN1335786A (en) * | 1999-09-11 | 2002-02-13 | 索尼电脑娱乐公司 | Control equipment and detection devices |
| JP2002318658A (en) * | 1999-09-11 | 2002-10-31 | Sony Computer Entertainment Inc | Operator and detecting element |
| US7671846B1 (en) * | 2000-01-14 | 2010-03-02 | Sony Computer Entertainment Inc. | Computer system having a pressure-sensitive controller, setup method for a pressure-sensitive controller and recording medium that records this method |
| CN103930180A (en) * | 2011-09-19 | 2014-07-16 | 索尼电脑娱乐美国公司 | Systems and methods for calibration and biasing for game controller |
| CN104321115A (en) * | 2011-10-20 | 2015-01-28 | 索尼电脑娱乐公司 | Multi-sensored control stick for enhanced input sensitivity and functionality |
| CN105744155A (en) * | 2016-01-29 | 2016-07-06 | 广东欧珀移动通信有限公司 | Method and device for calibrating key of selfie stick, and mobile terminal |
| CN107137925A (en) * | 2017-06-11 | 2017-09-08 | 吴昊阳 | A kind of game paddle system and its control method |
| CN107294522A (en) * | 2017-07-05 | 2017-10-24 | 广东欧珀移动通信有限公司 | Response method, device, storage medium and electronic equipment based on touch key-press |
| CN109254543A (en) * | 2017-07-13 | 2019-01-22 | 深圳市道通智能航空技术有限公司 | The calibration method of remote control device and its potentiometer rocking bar |
| CN110244619A (en) * | 2019-06-18 | 2019-09-17 | 深圳市道通智能航空技术有限公司 | A kind of rocking bar calibration method, device and remote control device |
| CN110597350A (en) * | 2019-10-22 | 2019-12-20 | 深圳市道通智能航空技术有限公司 | A joystick calibration method, device and remote control device |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2015129558A1 (en) * | 2014-02-28 | 2015-09-03 | 株式会社ソニー・コンピュータエンタテインメント | Information processing device, information processing system, correction method, control method, correction program, control program and recording medium |
| JP6912889B2 (en) * | 2017-01-12 | 2021-08-04 | 任天堂株式会社 | Game system and game controller |
-
2019
- 2019-12-26 CN CN201911366887.5A patent/CN111151000B/en active Active
Patent Citations (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO1994016426A1 (en) * | 1993-01-07 | 1994-07-21 | Thrustmaster, Inc. | Reconfigurable joystick controller with multi-stage trigger |
| JP3206751B1 (en) * | 1999-04-23 | 2001-09-10 | 株式会社ソニー・コンピュータエンタテインメント | Operation device |
| CN1335786A (en) * | 1999-09-11 | 2002-02-13 | 索尼电脑娱乐公司 | Control equipment and detection devices |
| JP2002318658A (en) * | 1999-09-11 | 2002-10-31 | Sony Computer Entertainment Inc | Operator and detecting element |
| US7671846B1 (en) * | 2000-01-14 | 2010-03-02 | Sony Computer Entertainment Inc. | Computer system having a pressure-sensitive controller, setup method for a pressure-sensitive controller and recording medium that records this method |
| CN103930180A (en) * | 2011-09-19 | 2014-07-16 | 索尼电脑娱乐美国公司 | Systems and methods for calibration and biasing for game controller |
| CN104321115A (en) * | 2011-10-20 | 2015-01-28 | 索尼电脑娱乐公司 | Multi-sensored control stick for enhanced input sensitivity and functionality |
| CN105744155A (en) * | 2016-01-29 | 2016-07-06 | 广东欧珀移动通信有限公司 | Method and device for calibrating key of selfie stick, and mobile terminal |
| CN107137925A (en) * | 2017-06-11 | 2017-09-08 | 吴昊阳 | A kind of game paddle system and its control method |
| CN107294522A (en) * | 2017-07-05 | 2017-10-24 | 广东欧珀移动通信有限公司 | Response method, device, storage medium and electronic equipment based on touch key-press |
| CN109254543A (en) * | 2017-07-13 | 2019-01-22 | 深圳市道通智能航空技术有限公司 | The calibration method of remote control device and its potentiometer rocking bar |
| CN110244619A (en) * | 2019-06-18 | 2019-09-17 | 深圳市道通智能航空技术有限公司 | A kind of rocking bar calibration method, device and remote control device |
| CN110597350A (en) * | 2019-10-22 | 2019-12-20 | 深圳市道通智能航空技术有限公司 | A joystick calibration method, device and remote control device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111151000A (en) | 2020-05-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111151000B (en) | Method, device, equipment and storage medium for adjusting operation lever | |
| JP6722954B1 (en) | Battery residual value determination system | |
| US10996775B2 (en) | Dynamic sensor assignment | |
| CN108062573A (en) | Model training method and device | |
| US20200276497A1 (en) | Continuous controller calibration | |
| KR102458981B1 (en) | Battery residual value display device | |
| CN111603760A (en) | Game pad, method for acquiring control data of game pad, and computer-readable storage medium | |
| CN111840994A (en) | Game control method, system, game handle, game end and readable storage medium | |
| KR20190021111A (en) | Method and apparatus for providing guide information associated with exercise intensity based on user activity information | |
| CN118465562B (en) | Method and device for updating full charge capacity of battery and terminal equipment | |
| JP6706173B2 (en) | Control device, control method, and control program | |
| JP6322603B2 (en) | Image processing apparatus, image processing program, and display status determination apparatus | |
| TWI509472B (en) | Method of adjusting cpi of a navigating device and related navigating device and terminal device | |
| US12416984B2 (en) | Touch-sensitive input device with haptic feedback mechanism | |
| CN109074211B (en) | Method and related device for adjusting interface scrolling speed | |
| CN111125466A (en) | Instrument panel layout method and device | |
| US20060007186A1 (en) | Apparatus and method for digitizer pen calibration | |
| CN107357473B (en) | Touch control debugging method for capacitive screen | |
| JP2014228350A (en) | Measuring device | |
| CN112964945A (en) | Method and device for testing charging box, terminal and storage medium | |
| KR101275490B1 (en) | Apparatus and method for correcting posture using recognition of movement | |
| CN117841773A (en) | Method and device for determining target SOC of a power battery of a hybrid vehicle | |
| CN108399478A (en) | A kind of user perceives the determination method, apparatus and equipment of evaluation criterion | |
| US8299777B2 (en) | Calculating a parasitic capacitance of an oscillator circuit | |
| JP2021051403A5 (en) |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |