A method and system for calibrating the boundaries and center point of a rocker
By setting a calibration target for the joystick to operate within a specific range, sampling and calculating the joystick calibration parameters, the problem of game malfunctions caused by joystick drift after release was solved, achieving precise joystick operation and stable signal output, thus improving the gaming experience.
Patent Information
- Application Number
- CN202210287477.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-22
- Publication Date
- 2025-12-23
- Estimated Expiration
- 2042-03-22
AI Technical Summary
The existing joystick drifts when returning to the center position after being released, causing erroneous actions and the joystick value not reaching its maximum value, thus affecting the gaming experience.
By setting a calibration target for the joystick to operate within a specific range, sampling the joystick calibration parameters, calculating and outputting the calibration result parameters, ensuring that the joystick outputs intermediate values within the center point area, preserving the maximum and minimum value boundaries, and adjusting the dead zone to stably output the maximum and minimum value signals.
It enables the joystick to maintain a precise operating position and movement trajectory during operation, avoiding accidental actions in the game and improving the gaming experience.
Smart Images

Figure CN114588623B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of joystick control, in particular to a method and system for calibrating the boundary and center point of a joystick. BACKGROUND
[0002] A joystick is usually used in gamepad, remote controller of unmanned aerial vehicle and other types of products, and the joystick can control a machine or a character in a game by being shaken. The joystick belongs to a mechanical device, and a slight drift occurs in the position of the joystick returning to the center each time the joystick is released in normal use, which causes a misoperation of the game character. When the joystick is shaken against the shell, the edge shakes due to the change of the shaking speed and strength, which causes the remote sensing to fail to reach the maximum value and affects the game experience. SUMMARY
[0003] The present application aims to provide a method and system for calibrating the boundary and center point of a joystick to solve the problems in the prior art.
[0004] The present application is implemented by the following technical solutions: a method for calibrating the boundary and center point of a joystick, comprising:
[0005] setting a calibration target for making the joystick work in a specific state range;
[0006] sampling a joystick calibration parameter, wherein the joystick calibration parameter comprises a boundary and center point calibration parameter;
[0007] calculating a working state of the joystick according to the joystick calibration parameter, and outputting a calibration result parameter when the working state of the joystick reaches the calibration target of the specific state range.
[0008] Further, the setting of the calibration target for making the joystick work in a specific state range, the sampling of the joystick calibration parameter, the calculation of the working state of the joystick according to the joystick calibration parameter, and the outputting of the calibration result parameter when the working state of the joystick reaches the calibration target of the specific state range are specifically as follows:
[0009] sampling a center point value of an original shaft of the joystick, taking the center point value of the original shaft as a center reference point Z of the joystick, and taking a circular region with a fixed radius R as a center value region O of the joystick with the reference point Z as the center;
[0010] when the sampled original shaft position data of the joystick is within the center value region O, directly outputting a middle value of the original shaft position of the joystick.
[0011] Further, the setting makes the joystick work in a calibration target of a specific state range, samples a joystick calibration parameter, calculates a working state of the joystick according to the joystick calibration parameter, and outputs a calibration result parameter when the working state of the joystick reaches the calibration target of the specific state range.
[0012] The maximum value m and the minimum value n of the joystick horizontal and vertical axis data sampling are saved in the working of the joystick, so as to obtain the maximum boundary m and the minimum boundary value n of the current sampling of the joystick;
[0013] When a value greater than m-a is sampled, a joystick maximum value signal required by a game platform is directly outputted, and when a value smaller than n+b is sampled, a joystick minimum value signal required by the game platform is directly outputted; wherein a is called a maximum value dead zone of the joystick, and b is called a minimum value dead zone of the joystick.
[0014] Further, the radius R of the center value region O satisfies that the joystick is in the center value region O after each time the joystick is returned to the center.
[0015] Further, the maximum value dead zone a and the minimum value dead zone b satisfy that the maximum boundary m and the minimum boundary n of the joystick are reached each time the joystick is moved.
[0016] The application further provides a boundary and center point calibration system of a joystick, comprising:
[0017] A calibration target setting module is configured to set a calibration target for the joystick to work in a specific state range;
[0018] A joystick calibration parameter sampling module is configured to sample a joystick calibration parameter, wherein the joystick calibration parameter comprises a boundary and center point calibration parameter;
[0019] A calibration result calculation and output module is configured to calculate a working state of the joystick according to the joystick calibration parameter, and output a calibration result parameter when the working state of the joystick reaches the calibration target of the specific state range.
[0020] Further, the calibration system sets a calibration target for the joystick to work in a specific state range, samples a joystick calibration parameter, calculates a working state of the joystick according to the joystick calibration parameter, and outputs a calibration result parameter when the working state of the joystick reaches the calibration target of the specific state range, and specifically:
[0021] The center point value of the original axis of the joystick is sampled, the center point value of the original axis is taken as a center reference point Z of the joystick, a circular region with a fixed radius R is taken as a center value region O of the joystick with the reference point Z as the center.
[0022] When the sampled original axis position data of the rocker is in the center value region O, the rocker directly outputs the middle value of the original axis position of the rocker.
[0023] Further, the calibration system sets the calibration target so that the rocker works in a specific state range, samples the rocker calibration parameter, calculates the working state of the rocker according to the rocker calibration parameter, and outputs the calibration result parameter when the working state of the rocker reaches the calibration target of the specific state range, and further comprises:
[0024] The maximum value m and the minimum value n of the sampling of the horizontal and vertical axis data of the rocker are saved in the working of the rocker, and the maximum boundary m and the minimum boundary value n of the current sampling of the rocker are obtained.
[0025] When a value greater than m-a is sampled, a rocker maximum value signal required by a game platform is directly output, and when a value smaller than n+b is sampled, a rocker minimum value signal required by the game platform is directly output; wherein a is referred to as a maximum value dead zone of the rocker, and b is referred to as a minimum value dead zone of the rocker.
[0026] Further, the radius R of the center value region O constructed by the center value region construction module satisfies that the center value region O is in the center value region O after each time the rocker is returned to the center.
[0027] Further, the maximum value dead zone a and the minimum value dead zone b sampled by the rocker motion monitoring module satisfy that the maximum boundary m and the minimum boundary n of the rocker are reached each time the rocker is moved.
[0028] Advantages of the present application:
[0029] The boundary and center point calibration method of the rocker of the present application enables the rocker to maintain accurate operation position and motion trajectory in the working, avoids game misoperation, and improves the game experience. BRIEF DESCRIPTION OF DRAWINGS
[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor on the basis of these drawings.
[0031] Figure 1 For the ideal center point of the rocker and the edge trajectory diagram;
[0032] Figure 2 For the actual center point of the rocker and the edge trajectory diagram;
[0033] Figure 3 For the principle diagram of the center value calibration method of the rocker of the present application.
[0034] Figure 4 This is a schematic diagram of the edge calibration method for the joystick of the present invention. Detailed implementation method:
[0035] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0036] like Figure 1 The image shows the ideal center point and edge trajectory of the joystick. Figure 2 This is a diagram showing the actual center point and edge trajectory of the joystick (shown as the zigzag lines inside and outside the circle).
[0037] A comparison of the two trajectory diagrams reveals that the actual edge data sampled by the main controller for the joystick is far from ideally smooth. The sampling positions of the center point are distributed within a limited area. This is due to two main reasons: firstly, the joystick is a mechanical component, and each centering occurs within a central area; a smaller this area indicates better joystick performance. Secondly, because the main controller's sampling precision for the joystick is very high, the actual sampled edge data can vary in size under slight force and mechanical stress. Based on these realities, the main controller needs to perform data calibration on the joystick's sampled data in the software to obtain the ideal joystick trajectory shown in the diagram above.
[0038] Therefore, the present invention provides a method for calibrating the boundary and center point of a joystick, specifically as follows:
[0039] like Figure 3 The diagram shows the principle of the joystick center value calibration method: A qualified joystick will have its center point within a normal range. The main controller samples the joystick's center value when it is first powered on, and this point is used as the joystick's center reference point Z. A circular area with a fixed radius R centered on Z is designated as the joystick's center value area O. The radius R should be as small as possible, but it must ensure that the joystick is within the center value area O after each centering. The size of R can be obtained by testing several joystick samples. When the main controller detects that the joystick's data is within the center value area O, the joystick directly outputs the joystick's intermediate value. That is, the main controller will output the joystick's intermediate value signal for all sampling points within the center value area O. If the specification requires the joystick's value range to be 0 to 255, then the main controller will output an intermediate value of 128 for all sampling points within the center value area O.
[0040] like Figure 4As shown, it is the edge calibration method principle diagram of the rocker: the greater the strength of the rocker along the edge, the farther the sampling point of the main controller from the center point, and the main control will save the maximum value m and the minimum value n of the rocker sampling at any time in the work, so as to know the maximum boundary m and the minimum boundary value n of the current sampling of the rocker. Therefore, all the sampling points that can be sampled by the host controller are in the area between the maximum boundary m and the minimum boundary n, and the main controller directly outputs the maximum value signal of the rocker when sampling a value greater than m-a, and a is called the maximum value dead zone of the rocker. When the data sampled is less than n+b, the minimum value signal of the rocker is directly output, and b is called the minimum value dead zone of the rocker. a and b are as small as possible, but it is ensured that the maximum value and the minimum value boundary of the rocker can be reached every time the rocker is shaken, and a and b can be determined by multiple rocker sample tests. If the range of the rocker is specified to be 0 to 255, the host controller outputs 255 when the sampling point is greater than the maximum value m-a, and the host controller outputs 0 when the sampling data is less than the minimum value n+b.
[0041] In the above-mentioned center value calibration method of the rocker, the same batch of rockers has a consistent specification standard, so the size of the radius R is determined by trying multiple samples, and the rocker is installed as long as it can output the intermediate value signal required by the game platform in the stationary state. The principle is that the radius is as small as possible, and multiple sample rockers can output the intermediate value signal required by the game platform.
[0042] In the above-mentioned edge calibration method of the rocker, the size of a and b is also determined by multiple remote sensing samples, and a and b are adjusted by testing multiple remote sensing samples to ensure that the rocker can stably output the maximum value and the minimum value required by the game platform when sliding to both sides. a and b are as small as possible.
[0043] The boundary and center point calibration method of the rocker can keep the accurate operation position and motion trajectory of the rocker in work, avoid game misoperation, and improve the game experience.
[0044] The above only describes the preferred embodiments of the present application, and does not limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for calibrating the boundary and center point of a joystick, characterized in that, include: Set a calibration target that allows the joystick to operate within a specific range of states; Sample the joystick calibration parameters, which include boundary and center point calibration parameters; The working state of the joystick is calculated based on the joystick calibration parameters. When the working state of the joystick reaches the calibration target within the specific state range, calibration result parameters are output. The calibration result parameters include the coordinate value of the center reference point Z, the numerical range of the maximum boundary m and the minimum boundary n, and the specific values of the dead zones a and b; specifically: The center point value of the original axis of the joystick is sampled, and the center point value of the original axis is used as the center reference point Z of the joystick. With the reference point Z as the center, a circular area with a fixed radius R is used as the center value area O of the joystick. When the sampled original axis position data of the joystick is within the center value region O, the joystick directly outputs the median value of the original axis position of the joystick. During joystick operation, the maximum value m and minimum value n of the joystick's horizontal and vertical axis data samples are saved to obtain the maximum boundary m and minimum boundary value n of the current joystick sampling. When a value larger than ma is sampled, the maximum value signal of the joystick required by the game platform is directly output. When a value smaller than n+b is sampled, the minimum value signal of the joystick required by the game platform is directly output. Here, a is called the maximum value dead zone of the joystick, and b is called the minimum value dead zone of the joystick. The radius R of the center value region O is such that the joystick remains within the center value region O after each centering process. The maximum dead zone a and minimum dead zone b are determined by the fact that each time the joystick is shaken, it reaches the maximum boundary m and minimum boundary n of the joystick.
2. A boundary and center point calibration system for a joystick, characterized in that, include: The calibration target setting module is used to set the calibration target so that the joystick works within a specific range of states; A joystick calibration parameter sampling module is used to sample joystick calibration parameters, including boundary and center point calibration parameters. The calibration result calculation and output module is used to calculate the working state of the joystick based on the joystick calibration parameters. When the working state of the joystick reaches the calibration target within the specific state range, it outputs calibration result parameters. The calibration result parameters include the coordinate value of the center reference point Z, the numerical range of the maximum boundary m and the minimum boundary n, and the specific values of the dead zones a and b, specifically: The center point value of the original axis of the joystick is sampled, and the center point value of the original axis is used as the center reference point Z of the joystick. With the reference point Z as the center, a circular area with a fixed radius R is used as the center value area O of the joystick. When the sampled original axis position data of the joystick is within the center value region O, the joystick directly outputs the median value of the original axis position of the joystick. During joystick operation, the maximum value m and minimum value n of the joystick's horizontal and vertical axis data samples are saved to obtain the maximum boundary m and minimum boundary value n of the current joystick sampling. When a value larger than ma is sampled, the maximum value signal of the joystick required by the game platform is directly output. When a value smaller than n+b is sampled, the minimum value signal of the joystick required by the game platform is directly output. Here, a is called the maximum value dead zone of the joystick, and b is called the minimum value dead zone of the joystick. The radius R of the center value region O constructed by the center value region construction module satisfies that the center value region O is within the center value region O after each joystick centering. The maximum dead zone a and minimum dead zone b sampled by the joystick motion monitoring module are based on the maximum boundary m and minimum boundary n of the joystick being reached each time the joystick is shaken.
Citation Information
Patent Citations
Rocker calibration method and device, and remote control device
CN110244619A