WO2022237167A1 - 手柄及其按键反馈力的矫正方法、控制装置及存储介质 - Google Patents
手柄及其按键反馈力的矫正方法、控制装置及存储介质 Download PDFInfo
- Publication number
- WO2022237167A1 WO2022237167A1 PCT/CN2021/138872 CN2021138872W WO2022237167A1 WO 2022237167 A1 WO2022237167 A1 WO 2022237167A1 CN 2021138872 W CN2021138872 W CN 2021138872W WO 2022237167 A1 WO2022237167 A1 WO 2022237167A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- deformation displacement
- resistance value
- elastic component
- button
- feedback force
- 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.)
- Ceased
Links
Images
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/20—Input arrangements for video game devices
- A63F13/22—Setup operations, e.g. calibration, key configuration or button assignment
-
- 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/25—Output arrangements for video game devices
- A63F13/28—Output arrangements for video game devices responding to control signals received from the game device for affecting ambient conditions, e.g. for vibrating players' seats, activating scent dispensers or affecting temperature or light
- A63F13/285—Generating tactile feedback signals via the game input device, e.g. force feedback
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01H—ELECTRIC SWITCHES; RELAYS; SELECTORS; EMERGENCY PROTECTIVE DEVICES
- H01H21/00—Switches operated by an operating part in the form of a pivotable member acted upon directly by a solid body, e.g. by a hand
- H01H21/02—Details
- H01H21/18—Movable parts; Contacts mounted thereon
- H01H21/22—Operating parts, e.g. handle
-
- 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
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/10—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals
- A63F2300/1018—Calibration; Key and button assignment
-
- 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
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/30—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
- A63F2300/302—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device specially adapted for receiving control signals not targeted to a display device or game input means, e.g. vibrating driver's seat, scent dispenser
Definitions
- the invention relates to the technical field of game equipment, in particular to a method for correcting the feedback force of a handle and its buttons, a control device and a storage medium.
- the trigger buttons of modern gamepads have added force feedback effects.
- Game designers can use the force feedback effects of trigger buttons to simulate some game scenes and increase the user's immersion in certain scenes in the game.
- the trigger button can be used to imitate the bow shooting scene. The game experiencer can truly feel the effect of the force during the process of drawing the bow. Then, in the scene of pulling the trigger in the shooting game, the feedback force of the trigger button can be given to the user. Bring a better experience effect.
- the existing handle includes a button assembly and a sliding rheostat.
- the button assembly includes an elastic assembly and a button.
- the elastic assembly is specifically a spring. One end of the spring is fixed by a limit. The inner side abuts to drive the elastic component to deform after the key is pressed, and the sliding piece of the sliding rheostat is connected to the end of the elastic component that is acted by the key, so as to move with the elastic component.
- the button When the button is pressed, the button will suppress the deformation of the elastic component to drive the movement of the sliding rheostat, resulting in a change in the resistance of the sliding rheostat, and the force fed back to the trigger button can be obtained by obtaining the resistance of the sliding rheostat.
- the force feedback mechanism of the trigger button that is, the feedback force acting on the trigger button is due to the compression of the spring.
- the greater the compression, the greater the feedback force, and the spring stroke is proportional to the resistance of the sliding rheostat.
- the displacement of the sliding rheostat is linearly related to the resistance value under ideal conditions, but in the actual use process, due to structural assembly errors and poor linear consistency of the sliding rheostat itself, it is calculated based on the real resistance value
- the accuracy of the feedback force is not high, and in order to ensure the consistency of the feedback force between different products, it is necessary to calibrate the force of the trigger button.
- the main purpose of the present invention is to provide a method for correcting the feedback force of the handle and its buttons, a control device and a storage medium, aiming at correcting the feedback force of the trigger button.
- the present invention provides a method for correcting the button feedback force of the handle, including:
- the actual resistance value Ract of the sliding rheostat corresponding to the deformation displacement S is obtained.
- the step of calculating the deformation displacement S of the elastic component corresponding to F according to the required feedback force value F of the button and the set relationship between the feedback force value of the button and the deformation displacement of the elastic component includes:
- the deformation displacement S of the elastic component corresponding to F is calculated and obtained.
- the actual resistance value Ractual of the sliding rheostat corresponding to the deformation displacement S is obtained steps, including:
- the actual resistance value Ractual of the sliding rheostat is calculated and obtained.
- the step of calculating and obtaining the actual resistance value Ractual of the sliding rheostat include:
- the step of finding out the displacement interval value [S1, S2] where the deformation displacement S is located it also includes:
- the resistance correction value corresponding to each section is calculated and obtained.
- the step of calculating and obtaining the actual resistance value Ractual of the sliding rheostat include:
- the actual resistance value Ractual is calculated and obtained.
- the step of finding out the displacement interval value [S1, S2] where the deformation displacement S is located it also includes:
- the slope value corresponding to each of the intervals is calculated and obtained according to the deformation displacement and the actual resistance value of the two endpoints of the plurality of intervals.
- the present invention further provides a readable storage medium, which stores a correction program of key feedback force that can be run on a processor, and the correction program of key feedback force is configured to realize the correction of key feedback force as described in any one of the above Steps in the corrective method.
- the present invention also provides a control device, including a memory, a processor, and a correction program of the key feedback force stored on the memory and operable on the processor, and the correction program of the key feedback force is configured to realize the following: The steps of the method for correcting the key feedback force described in any one of the above.
- the present invention further provides a handle, characterized in that it comprises:
- the button assembly includes an elastic assembly and a button, one end of the elastic assembly is limited and fixed, and the other end of the elastic assembly abuts against the inner side of the button, so as to drive the elastic assembly to deform under the action of the button ;
- the sliding piece of the sliding rheostat is connected to the end of the elastic component that is acted by the button, so as to move with the elastic component;
- a control device is electrically connected to the sliding rheostat, and the control device is the above-mentioned control device.
- the deformation displacement S of the elastic component corresponding to F is calculated according to the required feedback force value F of the button and the set relationship between the feedback force value of the button and the deformation displacement of the elastic component, According to the mapping relationship between the deformation displacement S and the actual resistance value of the sliding rheostat and the deformation displacement of the elastic component, the actual resistance value Ractual of the sliding rheostat corresponding to the deformation displacement S is obtained to realize the sliding The resistance value of the rheostat is corrected, and then the feedback force of the trigger button is corrected.
- Fig. 1 is a partial structural schematic diagram of an embodiment of the handle provided by the present invention.
- Fig. 2 is a schematic frame diagram of an embodiment of the control device of the handle provided in Fig. 1;
- Fig. 3 is a schematic flow chart of an embodiment of the method for correcting the button feedback force of the handle provided by the present invention
- FIG. 4 is a schematic flow chart of an implementation manner of step S10 in FIG. 3;
- FIG. 5 is a schematic flowchart of an implementation manner of step S20 in FIG. 3;
- FIG. 6 is a schematic flowchart of an implementation manner of step S23 in FIG. 5;
- FIG. 7 is a schematic flow chart of another implementation before step S22 in FIG. 5;
- Fig. 8 is the relationship diagram between the resistance and the displacement of the handle provided in Fig. 1;
- FIG. 9 is a schematic diagram during the compensation calculation process of the relationship diagram in FIG. 8 .
- the directional indication is only used to explain the position in a certain posture (as shown in the accompanying drawing). If the specific posture changes, the directional indication will also change accordingly.
- the handle 100 includes a button assembly 1, a sliding rheostat 2 and a control device.
- the button assembly 1 includes an elastic assembly 11 and a button 12.
- the elastic assembly 11 is specifically a spring
- the button assembly 1 also includes a push post 13 for the spring to cover, one end of the elastic assembly 11 is limited and fixed, and the other end of the elastic assembly 11 abuts against the inner side of the button 12,
- the sliding piece 21 of the sliding rheostat 2 is connected to the end of the elastic component 11 that is acted by the button 12, so as to move with the elastic component 11 , the control device is electrically connected with the sliding rheostat 2 .
- the spring on the top column 13 is compressed by the stepping motor 3 to simulate the effect of the trigger button on the spring, and the motor moves to compress the spring.
- the elastic force of the spring then acts on a feedback force. Since the stepper motor 3 moves up and down, it drives the sliding rheostat 2 to move, causing the resistance of the sliding rheostat 2 to change.
- the feedback of the spring is obtained through the resistance of the sliding rheostat 2.
- the force of the button 12, that is, the feedback force acting on the button 12 is due to the compression spring, the greater the compression, the greater the feedback force, and the spring stroke is proportional to the resistance of the sliding rheostat 2, and due to the sliding rheostat 2 Ideally, displacement and resistance are linearly related, but in actual use, due to structural assembly errors and poor linear consistency of the sliding rheostat 2 itself, the accuracy of the feedback force calculated based on the real resistance value is not accurate. Not high, and in order to ensure the consistency of the feedback force between different products, it is necessary to calibrate the force of the trigger button.
- the technical solution provided by the present invention can solve the above-mentioned technical problems, and its main idea is: according to the demand feedback force value F of the button, and the setting relationship between the feedback force value of the button and the deformation displacement of the elastic component, calculate and The deformation displacement S of the elastic component corresponding to F, according to the mapping relationship between the deformation displacement S and the actual resistance value of the sliding rheostat and the deformation displacement of the elastic component, the sliding corresponding to the deformation displacement S is obtained The actual resistance value R of the rheostat is actual , so as to realize the correction of the resistance value of the sliding rheostat, and further complete the correction of the feedback force of the trigger button.
- the technical solutions provided by the present invention will be described below in combination with specific embodiments of the present invention.
- the control device may include: a processor 1001 , such as a CPU or a chip, a communication bus 1002 , an I/O interface 1003 , a network interface 1004 , and a memory 1005 .
- the communication bus 1002 is used to realize connection and communication between these components.
- the I/O interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional I/O interface 1003 may also include a standard wired interface and a wireless interface.
- the network interface 1004 may include a standard wired interface and a wireless interface (such as a WI-FI interface).
- the memory 1005 can be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory.
- the memory 1005 may also be a storage device independent of the aforementioned processor 1001 .
- the processor 1001 invokes the correction program of the handle key feedback force stored in the memory 1005, and performs the following operations:
- the actual resistance value Ract of the sliding rheostat corresponding to the deformation displacement S is obtained.
- the step of calculating the deformation displacement S of the elastic component corresponding to F according to the required feedback force value F of the button and the set relationship between the feedback force value of the button and the deformation displacement of the elastic component includes:
- the deformation displacement S of the elastic component corresponding to F is calculated and obtained.
- the actual resistance value Ractual of the sliding rheostat corresponding to the deformation displacement S is obtained steps, including:
- the actual resistance value Ractual of the sliding rheostat is calculated and obtained.
- the actual resistance value R of the sliding rheostat is calculated and obtained Practical steps, including:
- the step of finding out the displacement interval value [S1, S2] where the deformation displacement S is located it also includes:
- the resistance correction value corresponding to each section is calculated and obtained.
- the step of calculating and obtaining the actual resistance value Ractual of the sliding rheostat include:
- the actual resistance value Ractual is obtained by calculation.
- the step of finding out the displacement interval value [S1, S2] where the deformation displacement S is located it also includes:
- the slope value corresponding to each of the intervals is calculated and obtained according to the deformation displacement and the actual resistance value of the two endpoints of the plurality of intervals.
- the present invention also provides a method for correcting the key feedback force of the handle.
- FIG. 3 to FIG. 9 are embodiments of the correction method for the key feedback force of the handle provided by the present invention.
- Fig. 3 is a schematic flow chart of an embodiment of the correction method of the button feedback force of the handle provided by the present invention. Please refer to Fig. 3, the present invention provides a correction method of the button feedback force of the handle, including:
- Step S10 according to the required feedback force value F of the button and the set relationship between the feedback force value of the button and the deformation displacement of the elastic component, calculate the deformation displacement S of the elastic component corresponding to F;
- Step S20 according to the deformation displacement S and the mapping relationship between the actual resistance value of the sliding rheostat and the deformation displacement of the elastic component, the actual resistance value Ractual of the sliding rheostat corresponding to the deformation displacement S is obtained.
- the actual resistance value Ractual of the sliding rheostat corresponding to the deformation displacement S can be obtained according to the deformation displacement S, and the actual resistance value of the sliding rheostat is stored in the system
- the mapping relationship with the deformation displacement of the elastic component is obtained through experiments, which will be introduced in the following sections.
- the deformation displacement S of the elastic component corresponding to F is calculated according to the required feedback force value F of the button and the set relationship between the feedback force value of the button and the deformation displacement of the elastic component, According to the mapping relationship between the deformation displacement S and the actual resistance value of the sliding rheostat and the deformation displacement of the elastic component, the actual resistance value Ractual of the sliding rheostat corresponding to the deformation displacement S is obtained to realize the sliding The resistance value of the rheostat is corrected, and then the feedback force of the trigger button is corrected.
- FIG. 4 is a schematic flowchart of an implementation manner of step S10 in FIG. 3, please refer to FIG. 4, in this embodiment, step S10 includes:
- Step S11 according to the theoretical mapping relationship between the demand feedback force value F, the feedback force value of the button and the resistance value of the sliding rheostat, calculate and obtain the theoretical resistance value R of the sliding rheostat corresponding to F ;
- K/M (F2-F1)/(R2-R1).
- Step S12 according to the theoretical resistance value R theory and the theoretical mapping relationship between the resistance value of the sliding rheostat and the deformation displacement of the elastic component, calculate and obtain the deformation displacement S of the elastic component corresponding to F.
- the theoretical mapping relationship between the resistance value of the sliding rheostat and the deformation displacement of the elastic component can be calculated to obtain the deformation displacement S of the elastic component corresponding to F, and
- the theoretical displacement resistance slope K can be calculated through the deformation displacement of the corresponding elastic component and the resistance of the sliding rheostat when the key is at the initial position and the maximum stroke position, and further, the theoretical displacement resistance slope K and the theoretical resistance can be calculated
- the value R is theoretical, and the deformation displacement S of the elastic component corresponding to F is calculated.
- FIG. 5 is a schematic flow chart of an implementation manner of step S20 in FIG. 3, please refer to FIG. 5.
- step S20 includes:
- Step S21 comparing the deformation displacement S of the elastic component with a plurality of preset deformation displacement intervals of the elastic component
- the system will divide the deformation displacement S of the elastic component into multiple intervals, as shown in Figure 9.
- the deformation displacement S is divided into 8 deformation displacement intervals.
- the more intervals are theoretically divided the final obtained The higher the accuracy of the actual resistance value Ractual is.
- Step S22 Find out the deformation displacement interval [S1, S2] to which the deformation displacement S belongs;
- Step S23 according to the deformation displacement interval [S1, S2] and the mapping relationship between the actual resistance value of the sliding rheostat and the deformation displacement of the elastic component, calculate and obtain the actual resistance value Ractual of the sliding rheostat.
- each deformation displacement interval [S1, S2] the system stores the mapping relationship between the actual resistance value of the sliding rheostat and the deformation displacement of the elastic component, and the actual resistance value Ractual of the sliding rheostat can be obtained directly.
- step S23 includes:
- the system stores different resistance correction values in different intervals corresponding to the deformation intervals [S1, S2], and the resistance correction values are obtained through experiments.
- Fig. 7 is a schematic flowchart of another implementation before step S22 in Fig. 5, please refer to Fig. 7, in this embodiment, before step S22, it also includes:
- Step S22a dividing the maximum deformation displacement of the elastic component into multiple intervals
- Step S22b dividing each interval into a plurality of interval segments
- Step S22c according to the theoretical mapping relationship and the actual mapping relationship between the resistance value of the sliding rheostat and the deformation displacement of the elastic component, calculate and obtain the resistance correction value corresponding to each section.
- the magnitude of the feedback force can be calculated based on the current resistance value of the sliding rheostat, but in the actual process, the linear correlation between the resistance value of the sliding rheostat and the deformation displacement is not ideal.
- Figure 8 shows the relationship between the resistance value and the deformation displacement in the actual process . It can be seen from the figure that there is a large error between the actual resistance-displacement relationship and the ideal resistance-displacement relationship, and it is necessary to calibrate the ideal resistance-displacement relationship to the actual resistance-displacement relationship.
- Feedback force position corresponding to the resistance value position, the motor starts to move toward the initial position R1 at a constant speed, and the product end outputs the resistance value in real time until it stops immediately when the resistance value is equal to R1.
- the feedback force of the trigger in the game scene is adjustable, it is realized according to the algorithm.
- the known condition is the feedback force, and the theoretical resistance value can be calculated according to the formula, but the theoretical resistance value must be calibrated, so that it can be calculated according to the actual feedback force.
- the relationship between the actual resistance value of the product trigger and the calibration displacement resistance value is shown in Figure 9. All resistance points on the straight line must be calibrated to the corresponding resistance points on the actual curve, that is, point R2 must be calibrated to point R1.
- the ideal displacement resistance slope K can be calculated according to the coordinate M of the actual initial point position (ie, the minimum position of the trigger feedback force) and the end point coordinate N (ie, the maximum position of the trigger feedback force).
- This method is to divide the displacement axis into 8 sections, and then find the resistance value corresponding to the initial position and end position of each section of displacement, and then calculate the theoretical resistance value according to the ideal displacement resistance slope K, and obtain the S1 position according to the curve
- the corresponding actual resistance value R1, and the corresponding theoretical resistance value R2; the actual resistance value corresponding to the S2 position is R3, and the corresponding theoretical resistance value is R4, so as to obtain 8 groups (S1, R1-R2), (S2 , R3-R4) and similar data.
- step S20 includes:
- Step S24 according to the deformation displacement interval [S1, S2], obtain the slope value of the equivalent linear relationship between the actual resistance value of the sliding rheostat and the deformation displacement of the elastic component within the deformation displacement interval [S1, S2] k1;
- Step S25 calculating and obtaining the actual resistance value Ractual according to the deformation displacement S and the slope value k1.
- step S24 for each deformation displacement interval, there is a slope value corresponding to the equivalent linear relationship between the actual resistance value of the sliding rheostat and the deformation displacement of the elastic component, and the slope value can be obtained by using the sliding rheostat
- the actual mapping relationship between the resistance value and the deformation displacement of the elastic component is obtained, specifically, before step S24, it also includes:
- Step S24a dividing the maximum deformation displacement of the elastic component into multiple intervals
- Step S24b According to the actual mapping relationship between the resistance value of the sliding rheostat and the deformation displacement of the elastic component, calculate the actual resistance values corresponding to the two endpoints of the plurality of intervals;
- Step S24c calculating and obtaining slope values corresponding to each of the intervals according to the deformation displacements and actual resistance values of the two end points of the plurality of intervals.
- the obtained actual mapping relationship curve of the resistance value displacement can be divided into multiple sections according to the deformation displacement, and then, find the corresponding resistance value of the two endpoints of each section on the curve, and then, according to Calculate the slope value of this segment from the resistance value and displacement value.
- the present invention also proposes a computer-readable storage medium.
- the computer-readable storage medium stores a correction program for the key feedback force of the handle.
- the correction program for the key feedback force of the handle is executed by the processor, the following The steps of the method for correcting the button feedback force of the handle in any of the above embodiments will not be repeated here.
- the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation.
- the technical solution of the present invention can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in one of the above storage media (such as ROM/RAM, magnetic CD, CD), including several instructions to make a terminal device (which may be a mobile phone, computer, server, TV, or network device, etc.) execute the method of each embodiment of the present invention.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Human Computer Interaction (AREA)
- Adjustable Resistors (AREA)
Abstract
本发明公开一种手柄及其按键反馈力的矫正方法、控制装置及存储介质,所述手柄按键反馈力的矫正方法包括:根据按键的需求反馈力值F、以及按键的反馈力值与弹性组件的形变位移之间的设定关系,计算与F对应的所述弹性组件的形变位移S,根据所述形变位移S、以及滑动变阻器的实际电阻值与所述弹性组件的形变位移之间的映射关系,获得与所述形变位移S对应的滑动变阻器的实际电阻值R 实际,以实现对滑动变阻器的电阻值进行矫正,进而完成对扳机按键的反馈力进行矫正。
Description
本申请要求于2021年05月12日提交中国专利局、申请号为202110519644.1、发明名称为“手柄及其按键反馈力的矫正方法、控制装置及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本发明涉及游戏设备技术领域,特别涉及一种手柄及其按键反馈力的矫正方法、控制装置及存储介质。
随着游戏设备硬件的升级换代,现代游戏手柄扳机按键增加了力反馈效果,游戏设计者们可以利用扳机按键的力反馈效果模拟一些游戏场景,增加游戏中用户在某些场景的沉浸效果。例如,可以利用扳机按键模仿射弓场景,游戏体验者在拉弓这一过程中能真实感受到力的作用效果,再就是射击游戏中扣动扳机等场景,通过扳机按键的反馈力,给用户带来更好的体验效果。
现有的手柄包括按键组件和滑动变阻器,所述按键组件包括弹性组件和按键,所述弹性组件具体为弹簧,所述弹簧的一端被限位固定,所述弹簧的另一端与所述按键的内侧抵接,以在所述按键受压后驱动所述弹性组件变形,所述滑动变阻器的滑片与所述弹性组件被所述按键作用的一端连接,以随同所述弹性组件活动,在所述按键受压时,所述按键会压制所述弹性组件变形,以带动滑动变阻器运动,导致滑动变阻器的阻值发生变化,通过滑动变阻器阻值获取得知反馈给扳机按键的力大小。
通过以上简单介绍了解了扳机按键的力反馈作用机制,即作用给扳机按键的反馈力是由于压缩弹簧而来,压缩量越大,反馈力也越大,而弹簧行程量与滑动变阻器阻值成正比,而由于滑动变阻器的位移量与阻值理想情况下是线性相关的,但是在实际使用过程中,由于结构装配误差、滑动变阻器本身线性一致性较差等原因,导致根据真实电阻值计算得出的反馈力精度并不 高,同时为了保证不同产品之间反馈力大小的一致性,需要对扳机按键进行力校准。
发明内容
本发明的主要目的是提出一种手柄及其按键反馈力的矫正方法、控制装置及存储介质,旨在对扳机按键的反馈力进行矫正。
为实现上述目的,本发明提一种手柄的按键反馈力的矫正方法,包括:
根据按键的需求反馈力值F、以及按键的反馈力值与弹性组件的形变位移之间的设定关系,计算与F对应的所述弹性组件的形变位移S;
根据所述形变位移S、以及滑动变阻器的实际电阻值与所述弹性组件的形变位移之间的映射关系,获得与所述形变位移S对应的滑动变阻器的实际电阻值R
实际。
可选地,根据按键的需求反馈力值F、以及按键的反馈力值与弹性组件的形变位移之间的设定关系,计算与F对应的所述弹性组件的形变位移S的步骤,包括:
根据所述需求反馈力值F、所述按键的反馈力值与所述滑动变阻器的电阻值之间的理论映射关系,计算获得与F对应的所述滑动变阻器的理论电阻值R
理论;
根据所述理论电阻值R
理论、以及所述滑动变阻器的电阻值与所述弹性组件的形变位移之间的理论映射关系,计算获得与F对应的所述弹性组件的形变位移S。
可选地,根据所述形变位移S、以及滑动变阻器的实际电阻值与所述弹性组件的形变位移之间的映射关系,获得与所述形变位移S对应的滑动变阻器的实际电阻值R
实际的步骤,包括:
将所述弹性组件的形变位移S与多个预设的弹性组件的形变位移区间进行比较;
找出所述形变位移S所属的形变位移区间[S1,S2];
根据所述形变位移区间[S1,S2]、以及滑动变阻器的实际电阻值与所述弹性组件的形变位移之间的映射关系,计算获得滑动变阻器的实际电阻值R
实际。
可选地,根据所述形变位移区间[S1,S2]、以及滑动变阻器的实际电阻值 与所述弹性组件的形变位移之间的映射关系,计算获得滑动变阻器的实际电阻值R
实际的步骤,包括:
当所述形变位移S处在[S1,S2]中的第一区间段时,则其对应的电阻矫正值为R11,则对应的实际电阻值R
实际=R
理论+R11;
当所述形变位移S处在[S1,S2]中的第二区间段时,则其对应的电阻矫正值为R12,则对应的实际电阻值R
实际=R
理论+R12;
当所述形变位移S处在[S1,S2]中的第N区间段时,则其对应的电阻矫正值为R1n,则对应的实际电阻值R
实际=R
理论+R1n。
可选地,找出所述形变位移S所处的位移区间值[S1,S2]的步骤之前,还包括:
将所述弹性组件最大的形变位移划分为多个区间;
将各区间分为多个区间段;
根据滑动变阻器的电阻值与所述弹性组件的形变位移之间的理论映射关系和实际映射关系,计算获得各个区间段所对应的电阻矫正值。
可选地,根据所述形变位移区间[S1,S2]、以及滑动变阻器的实际电阻值与所述弹性组件的形变位移之间的映射关系,计算获得滑动变阻器的实际电阻值R
实际的步骤,包括:
根据所述形变位移区间[S1,S2],获得在形变位移区间[S1,S2]内,滑动变阻器的实际电阻值与所述弹性组件的形变位移之间等效直线关系的斜率值k1;
根据所述形变位移S以及所述斜率值k1,计算获得所述实际电阻值R
实际。
可选地,找出所述形变位移S所处的位移区间值[S1,S2]的步骤之前,还包括:
将所述弹性组件最大的形变位移划分为多个区间;
根据所述滑动变阻器的电阻值与所述弹性组件的形变位移之间的实际映射关系,计算所述多个区间的两个端点对应的实际电阻值;
根据所述多个区间的两个端点的形变位移和实际电阻值,计算获得各个所述区间对应的斜率值。
本发明又提供一种可读存储介质,存储有可在处理器上运行的按键反馈 力的矫正程序,所述按键反馈力的矫正程序配置为实现如上述任一项所述的按键反馈力的矫正方法的步骤。
本发明还一种控制装置,包括存储器和处理器及存储在所述储存器上且可在所述处理器上运行的按键反馈力的矫正程序,所述按键反馈力的矫正程序配置为实现如上述任一项所述的按键反馈力的矫正方法的步骤。
本发明进一步提供一种手柄,其特征在于,包括:
按键组件,包括弹性组件和按键,所述弹性组件的一端被限位固定,所述弹性组件的另一端与所述按键的内侧抵接,以在所述按键的作用下驱动所述弹性组件变形;
滑动变阻器,所述滑动变阻器的滑片与所述弹性组件被所述按键作用的一端连接,以随同所述弹性组件活动;以及,
控制装置,与所述滑动变阻器电性连接,所述控制装置为上述的控制装置。
本发明提供的技术方案中,根据按键的需求反馈力值F、以及按键的反馈力值与弹性组件的形变位移之间的设定关系,计算与F对应的所述弹性组件的形变位移S,根据所述形变位移S、以及滑动变阻器的实际电阻值与所述弹性组件的形变位移之间的映射关系,获得与所述形变位移S对应的滑动变阻器的实际电阻值R
实际,以实现对滑动变阻器的电阻值进行矫正,进而完成对扳机按键的反馈力进行矫正。
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图示出的结构获得其他的附图。
图1为本发明提供的手柄的一实施例的部分结构示意图;
图2为图1提供的手柄的控制装置的一实施例的框架示意图;
图3为本发明提供的手柄的按键反馈力的矫正方法的一实施例的流程示意图
图4为图3中的步骤S10的一种实施方式的流程示意图;
图5为图3中的步骤S20的一种实施方式的流程示意图;
图6为为图5中的步骤S23的一种实施方式的流程示意图;
图7为图5中的步骤S22之前的又一实施方式的流程示意图;
图8为图1提供的手柄的电阻与位移之间的关系图;
图9为图8中的关系图的补偿计算过程中的示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
需要说明,若本发明实施例中有涉及方向性指示(诸如上、下、左、右、前、后……),则该方向性指示仅用于解释在某一特定姿态(如附图所示)下各部件之间的相对位置关系、运动情况等,如果该特定姿态发生改变时,则该方向性指示也相应地随之改变。
另外,若本发明实施例中有涉及“第一”、“第二”等的描述,则该“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,全文中出现的“和/或”的含义,包括三个并列的方案,以“A和/或B”为例,包括A方案、或B方案、或A和B同时满足的方案。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本发明要求的保护范围之内。
本发明提供一种手柄,如图1所示,所述手柄100包括按键组件1、滑动变阻器2和控制装置,所述按键组件1包括弹性组件11和按键12,所述弹性组件11具体为弹簧,且所述按键组件1还包括供所述弹簧套设的顶柱13,所述弹性组件11的一端被限位固定,所述弹性组件11的另一端与所述按键12的内侧抵接,以在所述按键12的作用下驱动所述弹性组件11变形,所述滑动变阻器2的滑片21与所述弹性组件11被所述按键12作用的一端连接,以随同所述弹性组件11活动,所述控制装置与所述滑动变阻器2电性连接。进一步如图1所示,为了对所述手柄100的按键反馈力进行矫正,通过一步进电机3运动压缩顶柱13上的弹簧,以模拟扳机按键对弹簧的作用,电机运动压缩弹簧,由于弹簧的弹力进而作用给一个反馈力,由于步进电机3上下移动,进而带动滑动变阻2器运动,导致滑动变阻器2的阻值发生变化,通过滑动变阻器2阻值获取得知弹簧的反馈给按键12的力大小,即作用给按键12的反馈力是由于压缩弹簧而来,压缩量越大,反馈力也越大,而弹簧行程量与滑动变阻器2阻值成正比,而由于滑动变阻器2的位移量与阻值理想情况下是线性相关的,但是在实际使用过程中,由于结构装配误差、滑动变阻器2本身线性一致性较差等原因,导致根据真实电阻值计算得出的反馈力精度并不高,同时为了保证不同产品之间反馈力大小的一致性,需要对扳机按键进行力校准。
为此,本发明提供的技术方案可以解决上述技术问题,其主要构思为:根据按键的需求反馈力值F、以及按键的反馈力值与弹性组件的形变位移之间的设定关系,计算与F对应的所述弹性组件的形变位移S,根据所述形变位移S、以及滑动变阻器的实际电阻值与所述弹性组件的形变位移之间的映射关系,获得与所述形变位移S对应的滑动变阻器的实际电阻值R
实际,以实现对滑动变阻器的电阻值进行矫正,进而完成对扳机按键的反馈力进行矫正。以下结合本发明的具体实施例对本发明提供的技术方案进行展开说明。
所述控制装置可以包括:处理器1001,例如CPU或者芯片,通信总线1002、I/O接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。I/O接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选I/O接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。
在图2所示的控制装置中,通过所述处理器1001调用存储器1005中存储的手柄按键反馈力的矫正程序,并执行以下操作:
根据按键的需求反馈力值F、以及按键的反馈力值与弹性组件的形变位移之间的设定关系,计算与F对应的所述弹性组件的形变位移S;
根据所述形变位移S、以及滑动变阻器的实际电阻值与所述弹性组件的形变位移之间的映射关系,获得与所述形变位移S对应的滑动变阻器的实际电阻值R
实际。
可选地,根据按键的需求反馈力值F、以及按键的反馈力值与弹性组件的形变位移之间的设定关系,计算与F对应的所述弹性组件的形变位移S的步骤,包括:
根据所述需求反馈力值F、所述按键的反馈力值与所述滑动变阻器的电阻值之间的理论映射关系,计算获得与F对应的所述滑动变阻器的理论电阻值R
理论;
根据所述理论电阻值R
理论、以及所述滑动变阻器的电阻值与所述弹性组件的形变位移之间的理论映射关系,计算获得与F对应的所述弹性组件的形变位移S。
可选地,根据所述形变位移S、以及滑动变阻器的实际电阻值与所述弹性组件的形变位移之间的映射关系,获得与所述形变位移S对应的滑动变阻器的实际电阻值R
实际的步骤,包括:
将所述弹性组件的形变位移S与多个预设的弹性组件的形变位移区间进行比较;
找出所述形变位移S所属的形变位移区间[S1,S2];
根据所述形变位移区间[S1,S2]、以及滑动变阻器的实际电阻值与所述弹性组件的形变位移之间的映射关系,计算获得滑动变阻器的实际电阻值R
实际。
可选地,可选地,根据所述形变位移区间[S1,S2]、以及滑动变阻器的实际电阻值与所述弹性组件的形变位移之间的映射关系,计算获得滑动变阻器的实际电阻值R
实际的步骤,包括:
当所述形变位移S处在[S1,S2]中的第一区间段时,则其对应的电阻矫正值 为R11,则对应的实际电阻值R
实际=R
理论+R11;
当所述形变位移S处在[S1,S2]中的第二区间段时,则其对应的电阻矫正值为R12,则对应的实际电阻值R
实际=R
理论+R12;
当所述形变位移S处在[S1,S2]中的第N区间段时,
可选地,找出所述形变位移S所处的位移区间值[S1,S2]的步骤之前,还包括:
将所述弹性组件最大的形变位移划分为多个区间;
将各区间分为多个区间段;
根据滑动变阻器的电阻值与所述弹性组件的形变位移之间的理论映射关系和实际映射关系,计算获得各个区间段所对应的电阻矫正值。
可选地,根据所述形变位移区间[S1,S2]、以及滑动变阻器的实际电阻值与所述弹性组件的形变位移之间的映射关系,计算获得滑动变阻器的实际电阻值R
实际的步骤,包括:
根据所述形变位移区间[S1,S2],获得在形变位移区间[S1,S2]内,滑动变阻器的实际电阻值与所述弹性组件的形变位移之间等效直线关系的斜率值k1;
根据所述形变位移S以及所述斜率值k1,计算获得获得所述实际电阻值R
实际。
可选地,找出所述形变位移S所处的位移区间值[S1,S2]的步骤之前,还包括:
将所述弹性组件最大的形变位移划分为多个区间;
根据所述滑动变阻器的电阻值与所述弹性组件的形变位移之间的实际映射关系,计算所述多个区间的两个端点对应的实际电阻值;
根据所述多个区间的两个端点的形变位移和实际电阻值,计算获得各个所述区间对应的斜率值。
本发明还提供一种手柄的按键反馈力的矫正方法,图3至图9为本发明提供的手柄的按键反馈力的矫正方法的实施例。
图3为本发明提供的手柄的按键反馈力的矫正方法的一实施例的流程示意图,请参照图3,本发明提供一种手柄的按键反馈力的矫正方法,包括:
步骤S10、根据按键的需求反馈力值F、以及按键的反馈力值与弹性组件的形变位移之间的设定关系,计算与F对应的所述弹性组件的形变位移S;
按键的需求反馈力值F为针对不同的游戏设置的按键力,或者同一种游戏针对不同用户或者不同的效果所设置的按键的需求反馈力,按键的反馈力值与弹性组件的形变位移之间显然存在设定关系,该设定关系理论上应该是线性关系,该关系可以通过胡克定律得知F=K*X得知。
步骤S20、根据所述形变位移S、以及滑动变阻器的实际电阻值与所述弹性组件的形变位移之间的映射关系,获得与所述形变位移S对应的滑动变阻器的实际电阻值R
实际。
将用户的需求馈力值F转化为形变位移S之后,可以根据所述形变位移S获得与所述形变位移S对应的滑动变阻器的实际电阻值R
实际,系统中存储有滑动变阻器的实际电阻值与所述弹性组件的形变位移之间的映射关系,该映射关系时通过实验获得,具体后续部分有介绍。
本发明提供的技术方案中,根据按键的需求反馈力值F、以及按键的反馈力值与弹性组件的形变位移之间的设定关系,计算与F对应的所述弹性组件的形变位移S,根据所述形变位移S、以及滑动变阻器的实际电阻值与所述弹性组件的形变位移之间的映射关系,获得与所述形变位移S对应的滑动变阻器的实际电阻值R
实际,以实现对滑动变阻器的电阻值进行矫正,进而完成对扳机按键的反馈力进行矫正。
图4为图3中的步骤S10的一种实施方式的流程示意图,请参阅图4,在本实施例中,步骤S10包括:
步骤S11、根据所述需求反馈力值F、所述按键的反馈力值与所述滑动变阻器的电阻值之间的理论映射关系,计算获得与F对应的所述滑动变阻器的理论电阻值R
理论;
根据胡克定律得知F=K*X,当扳机按键保持在初始位置,使用校准机器去接触扳机按键会得到一个初始按压力F1,根据胡克定律,在K未知的情况下,假设得出F=F1时对应的位移为X1,然后产品端发送指令去获取扳机按键在没有触发时的滑动变阻器电阻值R1;之后,电机运动到压缩弹簧量的最大位置,使用校准机器去接触扳机按键,并获取此时的反馈力。假设产品的最 大反馈力为F2,则产品电机根据校准机器得到的反馈力大小去不断调整位置,直到电机运动到反馈力为F2的位置,并获取此时滑动变阻器的电阻值R2。假设此时压缩弹簧的行程为X2,△X=X2-X1,由于电阻值变化与压缩弹簧量的位移行程成线性相关,既能得到△X=(R2-R1)/M,根据胡克定律:
F2=K*(X1+△X);
所以:F2=F1+K(R2-R1)/M,进而得到F2-F1=K(R2-R1)/M,
所以:K/M=(F2-F1)/(R2-R1)。
假设电机运动到某一位置X3,此位置从X1位置运动到X3位置压缩的弹簧量行程为△X1,对应从产品端得到此时的电阻值为R,则F3=KX3=K(X1+△X1),即F3-F1=K*(R-R1)/M,F1已知,K/M也已知,所以能根据此公式算出电阻值为R时所对应的反馈力F,相应地,可以通过反馈力F,计算出对应的滑动变阻器的理论电阻值R
理论。
步骤S12、根据所述理论电阻值R
理论、以及所述滑动变阻器的电阻值与所述弹性组件的形变位移之间的理论映射关系,计算获得与F对应的所述弹性组件的形变位移S。
当理论电阻值R
理论计算出来之后,进而可以所述滑动变阻器的电阻值与所述弹性组件的形变位移之间的理论映射关系,计算获得与F对应的所述弹性组件的形变位移S,而该理论映射关系,可以通过按键在初始位置和最大行程位置时,对应的弹性组件的形变位移和滑动变阻器的电阻,计算出理论位移电阻斜率K,进而,可以根据理论位移电阻斜率K和理论电阻值R
理论,计算出与F对应的所述弹性组件的形变位移S。
图5为图3中的步骤S20的一种实施方式的流程示意图,请参阅图5,在,本实施例中,步骤S20包括:
步骤S21、将所述弹性组件的形变位移S与多个预设的弹性组件的形变位移区间进行比较;
系统会将弹性组件的形变位移S划分为多个区间,如图9所示,在一实施例中,将形变位移划分为8个形变位移区间,当然理论上划分的区间越多,最终获得的实际电阻值R
实际的精确度越高。
步骤S22、找出所述形变位移S所属的形变位移区间[S1,S2];
将所述形变位移S与各个形变位移区间进行比较,以可以获得对应所属的形变位移区间[S1,S2];
步骤S23、根据所述形变位移区间[S1,S2]、以及滑动变阻器的实际电阻值与所述弹性组件的形变位移之间的映射关系,计算获得滑动变阻器的实际电阻值R
实际。
在每一个形变位移区间[S1,S2],系统都存储有滑动变阻器的实际电阻值与所述弹性组件的形变位移之间的映射关系,可以直接获得滑动变阻器的实际电阻值R
实际。
图6为为图5中的步骤S23的一种实施方式的流程示意图,请参阅图6,在本实施例中,步骤S23包括:
步骤S231、当所述形变位移S处在[S1,S2]中的第一区间段时,则其对应的电阻矫正值为R11,则对应的实际电阻值R
实际=R
理论+R11;
步骤S232、当所述形变位移S处在[S1,S2]中的第二区间段时,则其对应的电阻矫正值为R12,则对应的实际电阻值R
实际=R
理论+R12;
步骤S233、当所述形变位移S处在[S1,S2]中的第N区间段时,则其对应的电阻矫正值为R1n,则对应的实际电阻值R
实际=R
理论+R1n。
也即系统在对应所述形变区间[S1,S2]的不同区间段存储有不同的电阻矫正值,该电阻矫正值时通过实验获得的。
图7为图5中的步骤S22之前的又一实施方式的流程示意图,请参阅图7,在本实施例中,步骤S22之前,还包括:
步骤S22a、将所述弹性组件最大的形变位移划分为多个区间;
步骤S22b、将各区间分为多个区间段;
步骤S22c、根据滑动变阻器的电阻值与所述弹性组件的形变位移之间的理论映射关系和实际映射关系,计算获得各个区间段所对应的电阻矫正值。
反馈力大小能根据目前滑动变阻器的电阻值算得,但是实际过程中,滑动变阻器阻值与形变位移之间线性相关性并不理想,图8为实际过程中电阻阻值与形变位移之间的关系。从图中可以看出,实际的电阻位移关系与理想的电阻位移关系存在较大误差,需要将理想的电阻位移关系校准成实际的电阻位移关系,此图是当电机在反馈力为F2(最大反馈力位置)对应的电阻值位置 时,电机开始匀速朝初始位置R1运动,并且产品端实时输出电阻值,直到运动到电阻值等于R1的位置时立刻停止,绘制的位移阻值关系图,假设运动速度为V=1m/s,则图8中位移S=V*T=T。
由于在游戏场景中扳机的反馈力可调,根据算法实现,已知条件是反馈力,能根据公式计算出理论的电阻值,但是理论的电阻值要经过校准,这样才能根据实际的反馈力算出产品扳机的实际电阻值,校准位移阻值关系如图9所示,所有直线上的阻值点都要校准到对应的实际的曲线上的阻值点,即R2点要校准到R1点。根据图9所示的已知条件,可以根据实际初始点位置(即扳机反馈力最小位置)坐标M与终点坐标N(即扳机反馈力最大位置),计算出理想位移电阻斜率K。本方法是将位移轴等分成多8段,然后找到每段位移初始位置与终点位置对应的电阻值,再根据理想的位移电阻斜率K,计算得出理论的电阻值,并根据曲线得到S1位置分别对应的实际电阻值R1,及对应的理论电阻值R2;S2位置分别对应的实际电阻值为R3,对应的理论电阻值为R4,以此得到8组(S1,R1-R2)、(S2,R3-R4)等类似数据。
在本发明的另一实施例中,步骤S20包括:
步骤S24、根据所述形变位移区间[S1,S2],获得在形变位移区间[S1,S2]内,滑动变阻器的实际电阻值与所述弹性组件的形变位移之间等效直线关系的斜率值k1;
步骤S25、根据所述形变位移S以及所述斜率值k1,计算获得获得所述实际电阻值R
实际。
也即,在该实施例中,对于各个形变位移区间,对应存在有滑动变阻器的实际电阻值与所述弹性组件的形变位移之间等效直线关系的斜率值,该斜率值可以通过将滑动变阻器的电阻值与所述弹性组件的形变位移的实际映射关系上获得,具体地,步骤S24之前,还包括:
步骤S24a、将所述弹性组件最大的形变位移划分为多个区间;
步骤S24b、根据所述滑动变阻器的电阻值与所述弹性组件的形变位移之间的实际映射关系,计算所述多个区间的两个端点对应的实际电阻值;
步骤S24c、根据所述多个区间的两个端点的形变位移和实际电阻值,计算获得各个所述区间对应的斜率值。
也即,如图9所示,可以将获得的电阻值位移的实际映射关系曲线按照形变位移分为多段,然后,在该曲线上找到每一段的两个端点对应地电阻值,进而,可以根据电阻值和位移值算出该段的斜率值。
本发明还提出一种计算机可读的存储介质,所述计算机可读的存储介质上存储有手柄的按键反馈力的矫正程序,所述手柄的按键反馈力的矫正程序被处理器执行时实现如上述任一实施例的手柄的按键反馈力的矫正方法的步骤,在此不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,电视机,或者网络设备等)执行本发明各个实施例的方法。
以上所述仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是在本发明的发明构思下,利用本发明说明书及附图内容所作的等效结构变换,或直接/间接运用在其他相关的技术领域均包括在本发明的专利保护范围。
Claims (10)
- 一种手柄的按键反馈力的矫正方法,其特征在于,包括:根据按键的需求反馈力值F、以及按键的反馈力值与弹性组件的形变位移之间的设定关系,计算与F对应的所述弹性组件的形变位移S;根据所述形变位移S、以及滑动变阻器的实际电阻值与所述弹性组件的形变位移之间的映射关系,获得与所述形变位移S对应的滑动变阻器的实际电阻值R 实际。
- 如权利要求1所述的手柄的按键反馈力的矫正方法,其特征在于,根据按键的需求反馈力值F、以及按键的反馈力值与弹性组件的形变位移之间的设定关系,计算与F对应的所述弹性组件的形变位移S的步骤,包括:根据所述需求反馈力值F、所述按键的反馈力值与所述滑动变阻器的电阻值之间的理论映射关系,计算获得与F对应的所述滑动变阻器的理论电阻值R 理论;根据所述理论电阻值R 理论、以及所述滑动变阻器的电阻值与所述弹性组件的形变位移之间的理论映射关系,计算获得与F对应的所述弹性组件的形变位移S。
- 如权利要求2所述的手柄的按键反馈力的矫正方法,其特征在于,根据所述形变位移S、以及滑动变阻器的实际电阻值与所述弹性组件的形变位移之间的映射关系,获得与所述形变位移S对应的滑动变阻器的实际电阻值R 实际的步骤,包括:将所述弹性组件的形变位移S与多个预设的弹性组件的形变位移区间进行比较;找出所述形变位移S所属的形变位移区间[S1,S2];根据所述形变位移区间[S1,S2]、以及滑动变阻器的实际电阻值与所述弹性组件的形变位移之间的映射关系,计算获得滑动变阻器的实际电阻值R 实 际。
- 如权利要求3所述的手柄的按键反馈力的矫正方法,其特征在于,根据所述形变位移区间[S1,S2]、以及滑动变阻器的实际电阻值与所述弹性组件的形变位移之间的映射关系,计算获得滑动变阻器的实际电阻值R 实际的步骤,包括:当所述形变位移S处在[S1,S2]中的第一区间段时,则其对应的电阻矫正值为R11,则对应的实际电阻值R 实际=R 理论+R11;当所述形变位移S处在[S1,S2]中的第二区间段时,则其对应的电阻矫正值为R12,则对应的实际电阻值R 实际=R 理论+R12;当所述形变位移S处在[S1,S2]中的第N区间段时,则其对应的电阻矫正值为R1n,则对应的实际电阻值R 实际=R 理论+R1n。
- 如权利要求4所述的手柄的按键反馈力的矫正方法,其特征在于,找出所述形变位移S所处的位移区间值[S1,S2]的步骤之前,还包括:将所述弹性组件最大的形变位移划分为多个区间;将各区间分为多个区间段;根据滑动变阻器的电阻值与所述弹性组件的形变位移之间的理论映射关系和实际映射关系,计算获得各个区间段所对应的电阻矫正值。
- 如权利要求3所述的手柄的按键反馈力的矫正方法,其特征在于,根据所述形变位移区间[S1,S2]、以及滑动变阻器的实际电阻值与所述弹性组件的形变位移之间的映射关系,计算获得滑动变阻器的实际电阻值R 实际的步骤,包括:根据所述形变位移区间[S1,S2],获得在形变位移区间[S1,S2]内,滑动变阻器的实际电阻值与所述弹性组件的形变位移之间等效直线关系的斜率值k1;根据所述形变位移S以及所述斜率值k1,计算获得获得所述实际电阻值R 实 际。
- 如权利要求6所述的手柄的按键反馈力的矫正方法,其特征在于,找出所述形变位移S所处的位移区间值[S1,S2]的步骤之前,还包括:将所述弹性组件最大的形变位移划分为多个区间;根据所述滑动变阻器的电阻值与所述弹性组件的形变位移之间的实际映射关系,计算所述多个区间的两个端点对应的实际电阻值;根据所述多个区间的两个端点的形变位移和实际电阻值,计算获得各个所述区间对应的斜率值。
- 一种存储介质,其特征在于,存储有可在处理器上运行的手柄的按键反馈力的矫正程序,所述手柄的按键反馈力的矫正程序配置为实现如权利要求1至7中任一项所述的手柄的按键反馈力的矫正方法的步骤。
- 一种控制装置,其特征在于,包括存储器、处理器以及存储在所述存储器的手柄的按键反馈力的矫正程序,所述处理器执行所述手柄的按键反馈力的矫正程序实现如权利要求1至7中任一项所述的手柄的按键反馈力的矫正方法的步骤。
- 一种手柄,其特征在于,包括:按键组件,包括弹性组件和按键,所述弹性组件的一端被限位固定,所述弹性组件的另一端与所述按键的内侧抵接,以在所述按键的作用下驱动所述弹性组件变形;滑动变阻器,所述滑动变阻器的滑片与所述弹性组件被所述按键作用的一端连接,以随同所述弹性组件活动;以及,控制装置,与所述滑动变阻器电性连接,所述控制装置为如权利要求9所述的控制装置。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110519644.1A CN113181628B (zh) | 2021-05-12 | 2021-05-12 | 手柄及其按键反馈力的矫正方法、控制装置及存储介质 |
| CN202110519644.1 | 2021-05-12 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2022237167A1 true WO2022237167A1 (zh) | 2022-11-17 |
Family
ID=76981288
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2021/138872 Ceased WO2022237167A1 (zh) | 2021-05-12 | 2021-12-16 | 手柄及其按键反馈力的矫正方法、控制装置及存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN113181628B (zh) |
| WO (1) | WO2022237167A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2025059821A1 (en) * | 2023-09-18 | 2025-03-27 | Razer (Asia-Pacific) Pte. Ltd. | Analog input device, system for receiving and processing analog input |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113181628B (zh) * | 2021-05-12 | 2023-03-28 | 歌尔科技有限公司 | 手柄及其按键反馈力的矫正方法、控制装置及存储介质 |
| CN115382197B (zh) * | 2022-08-29 | 2025-05-30 | 歌尔科技有限公司 | 手柄扳机的按压校准方法、装置、设备及存储介质 |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20040046740A1 (en) * | 1998-04-10 | 2004-03-11 | Martin Kenneth M. | Position sensing methods for interface devices |
| CN108885144A (zh) * | 2016-11-23 | 2018-11-23 | 深圳市汇顶科技股份有限公司 | 一种压力检测方法、装置及设备 |
| CN109189212A (zh) * | 2018-08-14 | 2019-01-11 | 中新国际电子有限公司 | 一种触控反馈方法及装置及一种电子设备 |
| US10649583B1 (en) * | 2016-10-11 | 2020-05-12 | Valve Corporation | Sensor fusion algorithms for a handheld controller that includes a force sensing resistor (FSR) |
| CN111278517A (zh) * | 2017-10-25 | 2020-06-12 | 微软技术许可有限责任公司 | 用户输入设备中控制机构的校准偏置 |
| CN111295233A (zh) * | 2017-10-30 | 2020-06-16 | 微软技术许可有限责任公司 | 控制杆灵敏度调整 |
| CN113181628A (zh) * | 2021-05-12 | 2021-07-30 | 歌尔科技有限公司 | 手柄及其按键反馈力的矫正方法、控制装置及存储介质 |
Family Cites Families (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5691898A (en) * | 1995-09-27 | 1997-11-25 | Immersion Human Interface Corp. | Safe and low cost computer peripherals with force feedback for consumer applications |
| US9423874B2 (en) * | 2013-03-15 | 2016-08-23 | Steelseries Aps | Gaming accessory with sensory feedback device |
| JP6527339B2 (ja) * | 2015-01-27 | 2019-06-05 | 任天堂株式会社 | 振動信号生成プログラム、振動生成装置、振動生成システム、および振動信号生成方法 |
| US11094483B2 (en) * | 2019-03-21 | 2021-08-17 | Apple Inc. | Keyboard with adjustable feedback |
| CN110750181A (zh) * | 2019-10-16 | 2020-02-04 | 南昌黑鲨科技有限公司 | 遥控终端及遥控终端的操纵控制方法 |
| CN110917613A (zh) * | 2019-11-30 | 2020-03-27 | 吉林大学 | 一种基于振动触觉的游戏智能桌垫 |
| CN111346367A (zh) * | 2020-02-27 | 2020-06-30 | 歌尔科技有限公司 | 一种手柄扳机调整装置及具有该装置的手柄 |
| CN111948525B (zh) * | 2020-09-18 | 2022-08-30 | 珠海市精实测控技术有限公司 | 一种fct测试机中框板弹性形变调整方法 |
| CN112337084B (zh) * | 2020-09-29 | 2022-12-09 | 歌尔科技有限公司 | 一种摇杆漂移处理方法与装置 |
-
2021
- 2021-05-12 CN CN202110519644.1A patent/CN113181628B/zh active Active
- 2021-12-16 WO PCT/CN2021/138872 patent/WO2022237167A1/zh not_active Ceased
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20040046740A1 (en) * | 1998-04-10 | 2004-03-11 | Martin Kenneth M. | Position sensing methods for interface devices |
| US10649583B1 (en) * | 2016-10-11 | 2020-05-12 | Valve Corporation | Sensor fusion algorithms for a handheld controller that includes a force sensing resistor (FSR) |
| CN108885144A (zh) * | 2016-11-23 | 2018-11-23 | 深圳市汇顶科技股份有限公司 | 一种压力检测方法、装置及设备 |
| CN111278517A (zh) * | 2017-10-25 | 2020-06-12 | 微软技术许可有限责任公司 | 用户输入设备中控制机构的校准偏置 |
| CN111295233A (zh) * | 2017-10-30 | 2020-06-16 | 微软技术许可有限责任公司 | 控制杆灵敏度调整 |
| CN109189212A (zh) * | 2018-08-14 | 2019-01-11 | 中新国际电子有限公司 | 一种触控反馈方法及装置及一种电子设备 |
| CN113181628A (zh) * | 2021-05-12 | 2021-07-30 | 歌尔科技有限公司 | 手柄及其按键反馈力的矫正方法、控制装置及存储介质 |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2025059821A1 (en) * | 2023-09-18 | 2025-03-27 | Razer (Asia-Pacific) Pte. Ltd. | Analog input device, system for receiving and processing analog input |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113181628B (zh) | 2023-03-28 |
| CN113181628A (zh) | 2021-07-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2022237167A1 (zh) | 手柄及其按键反馈力的矫正方法、控制装置及存储介质 | |
| US9354797B2 (en) | Progress adjustment method and electronic device | |
| CN103686281A (zh) | 模拟鼠标控制智能电视的方法、遥控器和移动终端 | |
| CN113382242A (zh) | 码率控制方法、装置、设备及计算机可读存储介质 | |
| CN108885144B (zh) | 一种压力检测方法、装置及设备 | |
| CN107477771A (zh) | 导风板的控制方法、空调器以及控制装置和存储介质 | |
| CN111151000B (zh) | 操作杆调整方法、装置、设备和存储介质 | |
| WO2022156651A1 (zh) | 步长获取方法和电子设备 | |
| WO2022171055A1 (zh) | 折叠结构、电子设备和折叠角度确定方法 | |
| CN104902331A (zh) | 一种播放进度调节方法及电子设备 | |
| CN115247664B (zh) | 液压泵的压力调节方法、装置、电子设备及存储介质 | |
| WO2020154899A1 (zh) | 压力计算方法及其装置、电子设备以及触控系统 | |
| CN111831139B (zh) | 具有测力笔头的智能笔及其交互方法 | |
| CN102902751A (zh) | 移动终端中的网页输入方法及装置、移动终端 | |
| CN112181577A (zh) | 显示控制系统、方法及装置 | |
| CN107632723A (zh) | 可调整按压手感的鼠标 | |
| CN114576527B (zh) | 显示器高度调整装置以及调整显示器高度的方法 | |
| US8299777B2 (en) | Calculating a parasitic capacitance of an oscillator circuit | |
| CN105912242B (zh) | 一种播放图片的方法及移动终端 | |
| CN102591545B (zh) | 输入装置和输入方法 | |
| CN115102365A (zh) | 可调电源系统、控制方法、可调电源、存储介质 | |
| CN217008634U (zh) | 一种稳定型力度键盘 | |
| CN112181575A (zh) | 显示控制系统、方法及装置 | |
| CN113885733A (zh) | 一种笔迹轨迹预测方法 | |
| JP2017134851A (ja) | 表示制御装置、表示制御方法及びプログラム |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21941729 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 21941729 Country of ref document: EP Kind code of ref document: A1 |