Method for adjusting operation handle, electronic equipment and readable storage medium
By obtaining and analyzing the relationship between the amplitude and output current of the operating handle, dividing the amplitude interval and adjusting the output current resolution, the problem that operators cannot accurately adjust the output current is solved, and more efficient operating handle control is achieved.
Patent Information
- Application Number
- CN202411499786.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2044-10-25
AI Technical Summary
In the prior art, operators are unable to accurately adjust the output current corresponding to the operating handle through the operating handle, resulting in difficulty in operating when a slight and accurate adjustment is required.
By obtaining the preset function relationship between the handle amplitude and the output current of the operating handle, divide the handle amplitude into multiple amplitude intervals, and periodically obtain the operating amplitude, determine the amplitude change curve and the amplitude interval to be adjusted, and adjust according to the preset rules The initial output current in the amplitude interval to be adjusted to change the output current resolution.
The precise adjustment of the output current by the operating handle is realized, allowing the operator to perform small and precise control more conveniently and quickly, and improve the efficiency of the operating handle.
Smart Images

Figure CN119394158A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of engineering machinery, and in particular to a method for adjusting an operating handle, an electronic device, a readable storage medium, and a computer program product. Background Art
[0002] The operating handle is a mechanical accessory. In the field of engineering machinery, operators often rely on the operating handle to operate various engineering machinery. The operator controls the operating handle to adjust the output current corresponding to the operating handle, thereby controlling the engineering machinery.
[0003] In the prior art, after the output current corresponding to the position of the operating handle is initially set, it will not change during the subsequent operation and use. However, if the operator needs to make a small and precise adjustment to the engineering machinery through the operating handle, the operator needs to control the amplitude of the operating handle very accurately to adjust the output current corresponding to the operating handle, which is very demanding and difficult for the operator to achieve. Therefore, how to enable the operator to accurately adjust the output current corresponding to the operating handle through the operating handle is a technical problem that needs to be solved urgently. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a method for adjusting an operating handle, an electronic device, a readable storage medium and a computer program product, so as to solve the technical problem in the prior art that an operator cannot accurately adjust the output current corresponding to the operating handle through the operating handle.
[0005] In order to achieve the above object, an embodiment of the present application provides a method for adjusting an operating handle, the method comprising:
[0006] Obtaining a preset functional relationship between the handle amplitude of the operating handle and the output current;
[0007] Dividing the handle amplitude to obtain multiple amplitude intervals;
[0008] Determine the initial output current corresponding to each amplitude interval according to a preset functional relationship;
[0009] Periodically obtain the operating range of the operating handle;
[0010] When the number of the acquired operating amplitudes reaches a first preset number, determining an amplitude variation curve corresponding to the first preset number of operating amplitudes;
[0011] When the amplitude variation curve meets the first preset condition, determining the amplitude interval corresponding to the amplitude variation curve, and marking the amplitude interval corresponding to the amplitude variation curve;
[0012] For any amplitude interval, when the number of times the amplitude interval is marked is greater than a second preset number, the amplitude interval is determined as an amplitude interval to be adjusted;
[0013] The initial output current corresponding to the amplitude range to be adjusted is adjusted according to a preset rule to change the output current resolution corresponding to the operating handle.
[0014] In an embodiment of the present application, when the amplitude change curve meets the first preset condition, determining the amplitude interval corresponding to the amplitude change curve includes: when the amplitude change curve does not satisfy monotonicity, determining that the amplitude change curve meets the first preset condition; when the amplitude change curve meets the first preset condition, determining the variance of all operating amplitudes corresponding to the amplitude change curve and the average value of all operating amplitudes; when the variance is greater than the first preset value, determining the amplitude interval corresponding to the average value as the amplitude interval corresponding to the amplitude change curve.
[0015] In an embodiment of the present application, the method also includes: after marking the amplitude interval corresponding to the amplitude change curve, obtaining the number of markings corresponding to each amplitude interval; determining the maximum number of markings among the number of markings corresponding to all amplitude intervals, and when the maximum number of markings is greater than a second preset number, determining the amplitude interval corresponding to the maximum number of markings as the amplitude interval to be adjusted.
[0016] In an embodiment of the present application, after the amplitude interval is determined as the amplitude interval to be adjusted, the method also includes: determining whether the current resolution corresponding to any adjacent amplitude interval of the amplitude interval to be adjusted is amplified; when the current resolution corresponding to any adjacent amplitude interval has been amplified, reducing the current resolution of the amplitude interval with the amplified current resolution, and updating the maximum number of marking times among the number of marking times corresponding to all amplitude intervals to a second preset value; when the current resolution corresponding to any adjacent amplitude interval has not been amplified, adjusting the initial output current corresponding to the amplitude interval to be adjusted according to a preset rule.
[0017] In an embodiment of the present application, reducing the current resolution of the amplitude range of the amplified current resolution includes: determining the current output current values corresponding to the lower amplitude limit value and the upper amplitude limit value of the amplitude range of the amplified current resolution, respectively; updating the output current value corresponding to the lower amplitude limit value of the amplitude range of the amplified current resolution to the current output current value corresponding to the upper amplitude limit value of the amplitude range of the amplified current resolution; determining the initial output current value corresponding to the upper amplitude limit value of the amplitude range of the amplified current resolution based on the initial output current corresponding to each amplitude range; and restoring the output current value corresponding to the upper amplitude limit value of the amplitude range of the amplified current resolution to the initial output current value corresponding to the upper amplitude limit value of the amplitude range of the amplified current resolution.
[0018] In an embodiment of the present application, adjusting the output current corresponding to the amplitude interval to be adjusted according to a preset rule includes: determining the output current values corresponding to the lower amplitude limit value and the upper amplitude limit value of the amplitude interval to be adjusted respectively; updating the output current value corresponding to the upper amplitude limit value to the output current value corresponding to the lower amplitude limit value; determining the output current value corresponding to the lower amplitude limit value of an adjacent interval of the amplitude interval to be adjusted, wherein the adjacent interval refers to an amplitude interval whose upper amplitude limit value is the lower amplitude limit value of the amplitude interval to be adjusted; determining the intermediate output current value of the output current value corresponding to the lower amplitude limit value of the adjacent interval and the updated output current value corresponding to the upper amplitude limit value of the amplitude interval to be adjusted by a preset algorithm, wherein the intermediate output current value is greater than the output current value corresponding to the lower amplitude limit value of the adjacent interval, and less than the updated output current value corresponding to the upper amplitude limit value of the amplitude interval to be adjusted; determining the intermediate output current value as the output current value corresponding to the lower amplitude limit value of the amplitude interval to be adjusted.
[0019] In an embodiment of the present application, the method further includes: after changing the output current resolution corresponding to the operating handle, updating the maximum number of marking times among the number of marking times corresponding to all amplitude intervals to a second preset value.
[0020] A second aspect of the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;
[0021] Memory stores computer-executable instructions;
[0022] The processor executes the computer-executable instructions stored in the memory to implement the method for adjusting the operating handle as described in any one of the above embodiments.
[0023] A third aspect of the present application provides a machine-readable storage medium, on which instructions are stored. When the instructions are executed by a processor, the processor is configured to execute a method for adjusting an operating handle according to any one of the above embodiments.
[0024] A fourth aspect of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the method for adjusting an operating handle according to any one of the above embodiments.
[0025] The above technical solution obtains the operating amplitude of the operating handle to mark the amplitude range, thereby selecting the amplitude range to be adjusted according to the mark, and adjusting the output current corresponding to the amplitude range to be adjusted to change the output current resolution corresponding to the operating handle, so that the operating handle is more in line with the operator's usage habits, so that the operator can more conveniently and quickly adjust the output current corresponding to the operating handle through the operating handle.
[0026] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the accompanying drawings:
[0028] Figure 1 A schematic diagram of a process of adjusting an operating handle according to an embodiment of the present application is schematically shown;
[0029] Figure 2 A schematic diagram showing the relationship between handle amplitude and current according to an embodiment of the present application is shown;
[0030] Figure 3 A schematic diagram showing the relationship between the handle amplitude and the current when reducing the current resolution according to an embodiment of the present application is shown;
[0031] Figure 4 A schematic diagram showing the relationship between the handle amplitude and the current when reducing the current resolution according to another embodiment of the present application is shown;
[0032] Figure 5 A schematic diagram showing the relationship between handle amplitude and current when amplifying current resolution according to an embodiment of the present application is shown;
[0033] Figure 6 A schematic diagram showing the relationship between handle amplitude and current when amplifying current resolution according to another embodiment of the present application is shown;
[0034] Figure 7 A schematic diagram schematically shows a flow chart of another method for adjusting an operating handle according to an embodiment of the present application;
[0035] Figure 8 A structural block diagram of an electronic device according to an embodiment of the present application is schematically shown;
[0036] Fig. 9 The internal structure diagram of a computer device according to an embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the specific implementation methods described herein are only used to illustrate and explain the embodiments of the present application, and are not used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0038] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back...), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0039] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0040] Figure 1 The following is a schematic diagram showing a flow chart of a method for adjusting an operating handle according to an embodiment of the present application. Figure 1 As shown, an embodiment of the present application provides a method for adjusting an operating handle, which may include the following steps.
[0041] Step 101, obtaining a preset functional relationship between a handle amplitude of an operating handle and an output current;
[0042] Step 102: Divide the handle amplitude to obtain multiple amplitude intervals;
[0043] Step 103, determining the initial output current corresponding to each amplitude interval according to a preset functional relationship;
[0044] Step 104: periodically obtain the operating range of the operating handle;
[0045] Step 105: when the number of the acquired operating amplitudes reaches a first preset number, determine the amplitude variation curve corresponding to the first preset number of operating amplitudes;
[0046] Step 106: when the amplitude variation curve meets the first preset condition, determine the amplitude interval corresponding to the amplitude variation curve, and mark the amplitude interval corresponding to the amplitude variation curve;
[0047] Step 107: for any amplitude interval, if the number of times the amplitude interval is marked is greater than a second preset number, determine the amplitude interval as an amplitude interval to be adjusted;
[0048] Step 108: adjusting the initial output current corresponding to the amplitude range to be adjusted according to a preset rule to change the output current resolution corresponding to the operating handle.
[0049] The embodiments of the present application can be applied to the operating handle of the engineering machinery. For the operating handle of the engineering machinery, the processor can obtain the preset functional relationship between the handle amplitude of the operating handle and the output current of the engineering machinery. The processor can divide the handle amplitude of the operating handle to obtain multiple amplitude intervals of the operating handle. For example, assuming that the handle amplitude of the operating handle is 180°, the processor can divide the handle amplitude according to 18° as the amplitude interval, thereby obtaining ten amplitude intervals. The processor can determine the initial current corresponding to each amplitude interval based on the preset functional relationship between the handle amplitude of the operating handle and the output current, for example Figure 2 The relationship between the handle amplitude and the current is shown, and the horizontal axis represents the handle amplitude range (in percentage). For example, 0.1 represents the position where the handle amplitude is 10%, 0.1-0.2 is an amplitude range, which represents the amplitude range of 10%-20% of the handle amplitude, and so on. The current corresponding to the upper and lower limits of the amplitude of each amplitude range is determined according to a preset functional relationship. For example, the current corresponding to the handle amplitude of 0.1 (i.e., the handle amplitude of 10%) is 0.055, and so on, thereby obtaining a schematic diagram of the relationship between the handle amplitude and the corresponding initial current.
[0050] During the operation of the operating handle, the processor can periodically obtain the operating amplitude of the operating handle. When the number of operating amplitudes obtained by the processor reaches a first preset number, the processor can determine the amplitude change curve of the number of operating amplitudes according to the first preset number of operating amplitudes obtained. For example, assuming that the first preset number is 10 and the acquisition cycle is 0.1 seconds, the processor can obtain the operating amplitude of the operating handle once every 0.1 seconds. When the acquired operating amplitudes reach 10, the processor can determine the amplitude change curve of the 10 acquired operating amplitudes. After the processor determines the amplitude curve, it can judge the amplitude curve. When it is determined that the amplitude curve meets the first preset condition, it can determine the amplitude interval corresponding to the amplitude change curve and mark the amplitude interval. For each amplitude interval obtained by division, the processor can determine the number of times each amplitude interval is marked. When the number of times any amplitude interval is marked reaches a second preset number set by the processor, the processor can determine the amplitude interval, that is, the amplitude interval whose number of marks is greater than the second preset number, as the amplitude interval to be adjusted. The processor can adjust the initial output current corresponding to the amplitude interval to be adjusted according to the preset rule, thereby changing the output current resolution corresponding to the operating handle. In an embodiment of the present application, the amplitude range is marked by obtaining the operating amplitude of the operating handle, so that the amplitude range to be adjusted is selected according to the mark, and the output current corresponding to the amplitude range to be adjusted is adjusted to change the output current resolution corresponding to the operating handle, so that the operating handle is more in line with the operator's usage habits, so that the operator can more conveniently and quickly adjust the output current corresponding to the operating handle through the operating handle.
[0051] In one embodiment, when the amplitude change curve does not satisfy monotonicity, it is determined that the amplitude change curve meets the first preset condition; when the amplitude change curve meets the first preset condition, determining the amplitude interval corresponding to the amplitude change curve includes: when the amplitude change curve does not satisfy monotonicity, determining the variance of all operating amplitudes corresponding to the amplitude change curve and the average value of all operating amplitudes; when the variance is greater than the first preset value, determining the amplitude interval corresponding to the average value as the amplitude interval corresponding to the amplitude change curve.
[0052] The processor can set the first preset condition to not satisfy monotonicity. After determining the first preset number of operating amplitudes obtained and obtaining the amplitude change curve corresponding to the first preset number of operating amplitudes, the processor can determine whether the amplitude change curve satisfies monotonicity. When it is determined that the amplitude change curve does not satisfy monotonicity, the processor can determine that the amplitude curve meets the first preset condition. When the processor determines that the amplitude change curve meets the first preset condition, it can determine the variance of all operating amplitudes corresponding to the amplitude change curve and the average value of all operating amplitudes. For example, assuming that the amplitude change curve is composed of 10 operating amplitudes, the processor can determine the variance and average value of these 10 operating amplitudes. The processor can judge the determined variance. When it is determined that the variance is greater than the first preset value set by the processor, the processor can determine the amplitude interval corresponding to the average amplitude, and determine the corresponding amplitude interval as the amplitude interval corresponding to the amplitude change curve.
[0053] In one embodiment, the method also includes: after marking the amplitude interval corresponding to the amplitude change curve, obtaining the number of markings corresponding to each amplitude interval; determining the maximum number of markings among the number of markings corresponding to all amplitude intervals, and when the maximum number of markings is greater than a second preset number, determining the amplitude interval corresponding to the maximum number of markings as the amplitude interval to be adjusted.
[0054] After marking the amplitude interval corresponding to the amplitude change curve that meets the first preset condition, the processor can obtain the number of times marked corresponding to each amplitude interval, and determine the maximum number of times marked in all amplitude intervals. When the maximum number of times marked is greater than the second preset number set by the processor, the processor can determine the amplitude interval as the interval to be adjusted. For example, assuming that the processor sets the second preset number to 3, assuming that the amplitude of the operating handle is divided into 10 intervals, the processor can obtain the number of times marked corresponding to each amplitude interval, and determine the maximum number of times marked. When the maximum number of times marked is greater than 3, the amplitude interval corresponding to the number of times marked is determined as the amplitude interval to be adjusted.
[0055] In one embodiment, after the amplitude interval is determined as the amplitude interval to be adjusted, the method also includes: determining whether the current resolution corresponding to any adjacent amplitude interval of the amplitude interval to be adjusted is amplified; when the current resolution corresponding to any adjacent amplitude interval has been amplified, reducing the current resolution of the amplitude interval with the amplified current resolution, and updating the maximum number of marking times among the number of marking times corresponding to all amplitude intervals to a second preset value; when the current resolution corresponding to any adjacent amplitude interval has not been amplified, adjusting the initial output current corresponding to the amplitude interval to be adjusted according to a preset rule.
[0056] After determining the amplitude interval to be adjusted, the processor can determine whether the current resolution corresponding to the amplitude interval adjacent to the amplitude interval to be adjusted has been enlarged. For example, assuming that the processor determines that the amplitude interval to be adjusted is an amplitude interval of 10%-20%, the processor can determine whether the interval of 0%-10% and the interval of 20%-30% are enlarged. In the case where the processor determines that the current resolution corresponding to any adjacent amplitude interval has been enlarged, the processor can reduce the current resolution of the amplitude interval with the enlarged current resolution, and update the maximum number of markings in the number of markings corresponding to all amplitude intervals to a second preset value. For example, assuming that the processor sets the second preset value to 0, the processor can update the maximum number of markings in all amplitude intervals to 0 after reducing the current resolution of the amplitude interval with the enlarged current resolution. When the processor determines that the current resolution corresponding to any adjacent amplitude interval of the amplitude interval to be adjusted has not been enlarged, the processor can adjust the initial output current corresponding to the amplitude interval to be adjusted according to the preset rules.
[0057] In one embodiment, reducing the current resolution of the amplitude range of the amplified current resolution includes: determining the current output current values corresponding to the lower amplitude limit value and the upper amplitude limit value of the amplitude range of the amplified current resolution, respectively; updating the output current value corresponding to the lower amplitude limit value of the amplitude range of the amplified current resolution to the current output current value corresponding to the upper amplitude limit value of the amplitude range of the amplified current resolution; determining the initial output current value corresponding to the upper amplitude limit value of the amplitude range of the amplified current resolution based on the initial output current corresponding to each amplitude range; and restoring the output current value corresponding to the upper amplitude limit value of the amplitude range of the amplified current resolution to the initial output current value corresponding to the upper amplitude limit value of the amplitude range of the amplified current resolution.
[0058] When the processor reduces the current resolution of the amplitude interval of the amplified current resolution, the processor can determine the current output current values corresponding to the amplitude lower limit value and the amplitude upper limit value of the amplitude interval of the amplified current resolution, and the processor can update the output current value corresponding to the amplitude lower limit value of the amplitude interval of the amplified current resolution to the current output current value corresponding to the amplitude upper limit value of the amplitude interval of the amplified current resolution. For example, Figure 3 As shown, assuming Figure 3 The schematic diagram shows the relationship between the handle amplitude and the current when the current resolution is reduced. Figure 3 The horizontal axis is the amplitude range of the handle amplitude, and the vertical axis is the output current. The curve represents the output current percentage corresponding to each amplitude range. Assuming that Figure 3In the example, the current resolution corresponding to the amplitude range of 0.1-0.2, that is, 10%-20% of the operating handle, has been enlarged. The processor can determine the current output current corresponding to the lower and upper limits of the amplitude range, such as Figure 3 As shown, the output current corresponding to the lower limit value of the amplitude of the amplitude interval (i.e., the amplitude is at 0.1) is 0.046, and the output current corresponding to the upper limit value of the amplitude (i.e., the amplitude is at 0.2) is 0.055. The processor can update the output current 0.046 corresponding to the lower limit value of the amplitude (i.e., the position of 0.1) to the output current 0.055 corresponding to the upper limit value of the amplitude (i.e., the position of 0.2), that is, Figure 3 As shown, the method of reducing the current resolution of the amplitude range 0.1-0.2 is to shift the output current 0.055 corresponding to the upper limit value of the amplitude (i.e., the position of 0.2) to the left, so that the output current of the lower limit value of the amplitude (i.e., the position of 0.1) is updated to 0.055.
[0059] After the amplitude lower limit value of the amplitude interval of the amplified current resolution is updated, the processor can determine the initial output current corresponding to the amplitude upper limit value of the amplitude interval of the amplified current resolution according to the initial output current corresponding to each amplitude interval, and the processor can restore the amplitude upper limit value of the amplitude interval of the amplified current resolution to the initial output current corresponding to the amplitude upper limit value of the amplitude interval of the amplified current resolution. Figure 4 As shown, assuming that the amplitude range of 0.1-0.2, that is, the amplitude range of 10%-20% of the operating handle is the amplitude range of the amplified current resolution, through Figure 3 After the output current corresponding to the lower limit value of the amplitude interval (i.e., the position of 0.1) is updated to 0.055, the processor can determine the initial output current value corresponding to the upper limit value of the amplitude (i.e., the position of 0.2) according to the initial output current corresponding to each amplitude interval, by Figure 2 The relationship between the handle amplitude and the current shown determines that the initial output current value corresponding to the amplitude upper limit value (i.e., the position of 0.2) is 0.081, so the processor can restore the output current of the amplitude upper limit value (i.e., the position of 0.2) of the amplitude interval of the amplified current resolution to the initial value 0.081.
[0060] In one embodiment, adjusting the output current corresponding to the amplitude interval to be adjusted according to a preset rule includes: determining the output current values corresponding to the lower amplitude limit value and the upper amplitude limit value of the amplitude interval to be adjusted respectively; updating the output current value corresponding to the upper amplitude limit value to the output current value corresponding to the lower amplitude limit value; determining the output current value corresponding to the lower amplitude limit value of an adjacent interval of the amplitude interval to be adjusted, wherein the adjacent interval refers to an amplitude interval whose upper amplitude limit value is the lower amplitude limit value of the amplitude interval to be adjusted; determining the intermediate output current value between the output current value corresponding to the lower amplitude limit value of the adjacent interval and the updated output current value corresponding to the upper amplitude limit value of the amplitude interval to be adjusted by a preset algorithm, wherein the intermediate output current value is greater than the output current value corresponding to the lower amplitude limit value of the adjacent interval, and less than the updated output current value corresponding to the upper amplitude limit value of the amplitude interval to be adjusted; determining the intermediate output current value as the output current value corresponding to the lower amplitude limit value of the amplitude interval to be adjusted.
[0061] After determining the amplitude interval to be adjusted, the processor can adjust the initial output current corresponding to the amplitude interval to be adjusted according to a preset rule. The processor can determine the output current values corresponding to the amplitude lower limit value and the amplitude upper limit value of the amplitude interval to be adjusted, respectively. The processor can update the output current value corresponding to the amplitude upper limit value to the output current value corresponding to the amplitude lower limit value. For example, Figure 5 As shown, assuming Figure 5 The schematic diagram shows the relationship between the handle amplitude and the current when the current resolution is enlarged. Figure 5 The horizontal axis is the amplitude range of the handle amplitude, and the vertical axis is the output current. The curve represents the output current percentage corresponding to each amplitude range. Assuming that Figure 5 In the example, the amplitude range of 0.1-0.2, that is, the amplitude range of 10%-20% of the operating handle is the amplitude range to be adjusted. The processor can determine the current output current corresponding to the lower limit value and the upper limit value of the amplitude range to be adjusted, such as Figure 5 As shown, the output current corresponding to the lower limit value of the amplitude of the amplitude interval to be adjusted (i.e., the amplitude is at 0.1) is 0.055, and the output current corresponding to the upper limit value of the amplitude (i.e., the amplitude is at 0.2) is 0.081. The processor can update the output current 0.081 corresponding to the upper limit value of the amplitude (i.e., the position of 0.1) to the output current 0.055 corresponding to the lower limit value of the amplitude (i.e., the position of 0.1), that is, Figure 5 As shown, the method of enlarging the current resolution of the amplitude range to be adjusted 0.1-0.2 is to right-shift the output current 0.055 corresponding to the lower limit value of the amplitude (i.e., the position of 0.1), so that the output current of the upper limit value of the amplitude (i.e., the position of 0.2) is updated to 0.055.
[0062] After updating the upper amplitude limit value of the amplitude interval to be adjusted, the processor can determine the adjacent interval to the amplitude interval to be adjusted, wherein the adjacent interval refers to the amplitude interval whose upper amplitude limit value is the lower amplitude limit value of the amplitude interval to be adjusted. For example, assuming that the amplitude interval to be adjusted is 0.1-0.2, the adjacent interval is 0-0.1. The processor can determine the output current value corresponding to the lower amplitude limit value of the adjacent interval. At this time, the processor can process the output current value corresponding to the lower amplitude limit value of the adjacent interval and the output current value after the upper amplitude limit value of the amplitude interval to be adjusted through a preset algorithm, so as to obtain the intermediate output current value between the two. In addition, the intermediate output current value is greater than the output current value corresponding to the lower amplitude limit value of the adjacent interval, and is less than the updated output current value corresponding to the upper amplitude limit value of the amplitude interval to be adjusted. After determining the intermediate output current value, the processor can determine the intermediate output current value as the output current value corresponding to the lower amplitude limit value of the amplitude interval to be adjusted. For example Figure 6 As shown in the figure, it is assumed that the amplitude range is 0.1-0.2, that is, the amplitude range of 10%-20% of the operating handle is the amplitude range to be adjusted. Figure 5 After the output current corresponding to the upper limit value of the amplitude interval to be adjusted (i.e., the position of 0.2) is updated to 0.055, the processor can determine the amplitude interval of 0-0.1 as an adjacent interval of the amplitude interval to be adjusted. After determining the output current value 0.037 corresponding to the amplitude lower limit value (i.e., the position of 0) of the adjacent interval and the updated output current value 0.055 corresponding to the upper limit value (i.e., the position of 0.2) of the amplitude interval to be adjusted, the processor can determine the intermediate output value between 0.037 and 0.055 through the preset algorithm, for example Figure 6 As shown, assuming that the intermediate output value is 0.046 determined by the interpolation calculation method, the processor can determine 0.046 as the output current value corresponding to the lower limit value of the amplitude of the amplitude range 0.1-0.2 to be adjusted (that is, the position of 0.1).
[0063] In one embodiment, the method further includes: after changing the output current resolution corresponding to the operating handle, updating the maximum number of marking times among the number of marking times corresponding to all amplitude intervals to a second preset value.
[0064] After the processor adjusts the initial output current corresponding to the amplitude interval to be adjusted according to the preset rules, thereby changing the output current resolution corresponding to the operating handle, the maximum number of marking times corresponding to all amplitude intervals can be updated to a second preset value. For example, assuming that the processor sets the second preset value to 0, the processor can update the maximum number of marking times corresponding to all amplitude intervals to 0 after adjusting the output current resolution.
[0065] In one embodiment, the processor may obtain a preset functional relationship between the handle amplitude of the operating handle and the output current of the engineering machine. The processor may divide the handle amplitude of the operating handle to obtain a plurality of amplitude intervals of the operating handle, and the processor may determine the initial current corresponding to each amplitude interval according to the preset functional relationship between the handle amplitude of the operating handle and the output current, thereby obtaining, for example Figure 2 The relationship between the handle amplitude and the current is shown. During the operation of the operating handle, the processor can periodically obtain the operating amplitude of the operating handle, for example Figure 7 As shown, the processor can read the handle amplitude value once every 0.1s and store it in an array, that is, read the operating amplitude of the handle once every 0.1s and store the operating amplitude in the array. The processor can determine whether the number of readings reaches a first preset number, for example Figure 7 As shown, the first preset number is set to 10, and the processor can determine whether the number of reads is less than 10. Until the number of reads is greater than or equal to 10, the processor can determine the monotonicity of the array composed of the 10 handle amplitude values obtained, and determine whether it satisfies monotonicity. When it is determined that the read amplitude array satisfies monotonicity, the processor can re-read the handle amplitude and store it in the array. If it does not satisfy monotonicity, the processor can determine the variance of the array and determine whether the variance is greater than the first preset value set by the processor, for example Figure 7 As shown, assuming that the processor sets the first preset value to 0.1, when it is determined that the variance is greater than 0.1, the average value of the array is added to the corresponding operator usage habit array position by 1, that is, the average value of the array of the operating amplitude can be determined, and the amplitude range corresponding to the average value is determined, and the operator usage habit array corresponding to the amplitude range is added by 1, which is equivalent to marking the amplitude range once, and the data in the recorded operator usage habit array is calculated to determine the maximum value in the operator usage habit array, that is, the maximum value of the marked times, and the processor can determine whether the maximum value is greater than the second preset number, for example Figure 7 As shown, assuming that the second preset number is set to 3, when it is determined that the maximum value is less than or equal to 3, the handle amplitude value continues to be read according to the preset period. If it is determined that the maximum value is greater than 3, the processor can determine whether the adjacent area of the interval corresponding to the maximum value has been enlarged. If it has been enlarged, the current resolution within the adjacent handle range that has been enlarged is reduced. The processor can Figure 3 and Figure 4 The current resolution is reduced in the manner shown in the figure, and then the maximum value in the operator's habit array is changed to 0. If it is not amplified, the processor can amplify the handle range current resolution corresponding to the maximum value of the habit array. The processor can Figure 5 and Figure 6 The current resolution is amplified in the manner shown.
[0066] The above technical solution obtains the operating amplitude of the operating handle at a preset frequency to collect the operating habits of the operator, and determines whether the operator currently needs to adjust the current resolution of the operating handle by identifying the operating habits, that is, identifying the acquired operating amplitude, and judging the monotonicity of the amplitude curve of the operating amplitude. When it is determined that the current resolution needs to be adjusted, the initial output current corresponding to the handle amplitude range is moved and scaled, thereby adjusting the current resolution corresponding to the operating handle, so that the operating handle is more in line with the operator's usage habits, so that the operator can accurately control the output current through the operating handle.
[0067] In one embodiment, Figure 8 As shown, an electronic device 800 is provided, including: a processor 801, and a memory 802 communicatively connected to the processor 801; the memory 802 stores computer-executable instructions; the processor 801 executes the computer-executable instructions stored in the memory 802 to implement a method for adjusting an operating handle as in any one of the above embodiments.
[0068] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip. Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0069] In one embodiment, a machine-readable storage medium is provided, on which instructions are stored. When the instructions are executed by a processor, the processor is configured to execute the method for adjusting an operating handle according to any one of the above embodiments.
[0070] In one embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the computer program implements the method for adjusting an operating handle according to any one of the above embodiments.
[0071] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig. 9As shown. The computer device includes a processor A01, a network interface A02, a memory (not shown in the figure) and a database (not shown in the figure) connected via a system bus. Among them, the processor A01 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes an internal memory A03 and a non-volatile storage medium A04. The non-volatile storage medium A04 stores an operating system B01, a computer program B02 and a database (not shown in the figure). The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 in the non-volatile storage medium A04. The database of the computer device is used to store relevant data of the operating handle. The network interface A02 of the computer device is used to communicate with an external terminal through a network connection. When the computer program B02 is executed by the processor A01, a method for adjusting the operating handle is implemented.
[0072] An embodiment of the present application provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: obtaining a preset functional relationship between a handle amplitude and an output current of an operating handle; dividing the handle amplitude to obtain a plurality of amplitude intervals; determining an initial output current corresponding to each amplitude interval according to the preset functional relationship; periodically obtaining an operating amplitude of the operating handle; when the number of operating amplitudes obtained reaches a first preset number, determining an amplitude change curve corresponding to the first preset number of operating amplitudes; when the amplitude change curve meets a first preset condition, determining an amplitude interval corresponding to the amplitude change curve, and marking the amplitude interval corresponding to the amplitude change curve; for any amplitude interval, when the number of times the amplitude interval is marked is greater than a second preset number, determining the amplitude interval as an amplitude interval to be adjusted; adjusting the initial output current corresponding to the amplitude interval to be adjusted according to a preset rule to change the output current resolution corresponding to the operating handle.
[0073] In one embodiment, when the amplitude change curve meets the first preset condition, determining the amplitude interval corresponding to the amplitude change curve includes: when the amplitude change curve does not meet monotonicity, determining that the amplitude change curve meets the first preset condition; when the amplitude change curve meets the first preset condition, determining the variance of all operating amplitudes corresponding to the amplitude change curve and the average value of all operating amplitudes; when the variance is greater than the first preset value, determining the amplitude interval corresponding to the average value as the amplitude interval corresponding to the amplitude change curve.
[0074] In one embodiment, the method also includes: after marking the amplitude interval corresponding to the amplitude change curve, obtaining the number of markings corresponding to each amplitude interval; determining the maximum number of markings among the number of markings corresponding to all amplitude intervals, and when the maximum number of markings is greater than a second preset number, determining the amplitude interval corresponding to the maximum number of markings as the amplitude interval to be adjusted.
[0075] In one embodiment, after the amplitude interval is determined as the amplitude interval to be adjusted, the method also includes: determining whether the current resolution corresponding to any adjacent amplitude interval of the amplitude interval to be adjusted is amplified; when the current resolution corresponding to any adjacent amplitude interval has been amplified, reducing the current resolution of the amplitude interval with the amplified current resolution, and updating the maximum number of marking times among the number of marking times corresponding to all amplitude intervals to a second preset value; when the current resolution corresponding to any adjacent amplitude interval has not been amplified, adjusting the initial output current corresponding to the amplitude interval to be adjusted according to a preset rule.
[0076] In one embodiment, reducing the current resolution of the amplitude range of the amplified current resolution includes: determining the current output current values corresponding to the lower amplitude limit value and the upper amplitude limit value of the amplitude range of the amplified current resolution, respectively; updating the output current value corresponding to the lower amplitude limit value of the amplitude range of the amplified current resolution to the current output current value corresponding to the upper amplitude limit value of the amplitude range of the amplified current resolution; determining the initial output current value corresponding to the upper amplitude limit value of the amplitude range of the amplified current resolution based on the initial output current corresponding to each amplitude range; and restoring the output current value corresponding to the upper amplitude limit value of the amplitude range of the amplified current resolution to the initial output current value corresponding to the upper amplitude limit value of the amplitude range of the amplified current resolution.
[0077] In one embodiment, adjusting the output current corresponding to the amplitude interval to be adjusted according to a preset rule includes: determining the output current values corresponding to the lower amplitude limit value and the upper amplitude limit value of the amplitude interval to be adjusted respectively; updating the output current value corresponding to the upper amplitude limit value to the output current value corresponding to the lower amplitude limit value; determining the output current value corresponding to the lower amplitude limit value of an adjacent interval of the amplitude interval to be adjusted, wherein the adjacent interval refers to an amplitude interval whose upper amplitude limit value is the lower amplitude limit value of the amplitude interval to be adjusted; determining the intermediate output current value between the output current value corresponding to the lower amplitude limit value of the adjacent interval and the updated output current value corresponding to the upper amplitude limit value of the amplitude interval to be adjusted by a preset algorithm, wherein the intermediate output current value is greater than the output current value corresponding to the lower amplitude limit value of the adjacent interval, and less than the updated output current value corresponding to the upper amplitude limit value of the amplitude interval to be adjusted; determining the intermediate output current value as the output current value corresponding to the lower amplitude limit value of the amplitude interval to be adjusted.
[0078] In one embodiment, the method further includes: after changing the output current resolution corresponding to the operating handle, updating the maximum number of marking times among the number of marking times corresponding to all amplitude intervals to a second preset value.
[0079] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0080] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0081] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0082] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0083] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0084] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0085] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0086] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0087] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for adjusting an operating handle, characterized in that: The method comprises: Acquiring a preset functional relationship between the handle amplitude of the operating handle and the output current; Dividing the handle amplitude to obtain a plurality of amplitude intervals; Determine the initial output current corresponding to each amplitude interval according to the preset functional relationship; Periodically obtaining the operating amplitude of the operating handle; When the number of the acquired operating amplitudes reaches a first preset number, determining an amplitude variation curve corresponding to the first preset number of operating amplitudes; In the case where the amplitude variation curve meets the first preset condition, determining the amplitude interval corresponding to the amplitude variation curve, and marking the amplitude interval corresponding to the amplitude variation curve; For any amplitude interval, when the number of times the amplitude interval is marked is greater than a second preset number, the amplitude interval is determined as an amplitude interval to be adjusted; The initial output current corresponding to the amplitude range to be adjusted is adjusted according to a preset rule to change the output current resolution corresponding to the operating handle.
2. The method for adjusting the operating handle according to claim 1, characterized in that: When the amplitude change curve meets the first preset condition, determining the amplitude interval corresponding to the amplitude change curve includes: In a case where the amplitude variation curve does not satisfy monotonicity, determining that the amplitude variation curve meets the first preset condition; When the amplitude variation curve meets the first preset condition, determining the variance of all operating amplitudes corresponding to the amplitude variation curve and the average value of all operating amplitudes; When the variance is greater than a first preset value, the amplitude interval corresponding to the average value is determined as the amplitude interval corresponding to the amplitude variation curve.
3. The method for adjusting the operating handle according to claim 1, characterized in that: The method further comprises: After marking the amplitude intervals corresponding to the amplitude variation curve, obtaining the number of times each amplitude interval is marked; Determine the maximum number of marking times among the number of marking times corresponding to all amplitude intervals, and when the maximum number of marking times is greater than a second preset number, determine the amplitude interval corresponding to the maximum number of marking times as the amplitude interval to be adjusted.
4. The method for adjusting the operating handle according to claim 2 or 3, characterized in that: After determining the amplitude interval as the amplitude interval to be adjusted, the method further includes: Determining whether the current resolution corresponding to any adjacent amplitude interval of the amplitude interval to be adjusted is enlarged; In the case where the current resolution corresponding to any adjacent amplitude interval has been amplified, reducing the current resolution of the amplitude interval of the amplified current resolution, and updating the maximum number of marking times among the number of marking times corresponding to all amplitude intervals to a second preset value; In the case where the current resolution corresponding to any adjacent amplitude interval is not enlarged, the initial output current corresponding to the amplitude interval to be adjusted is adjusted according to a preset rule.
5. The method for adjusting the operating handle according to claim 4, characterized in that: The current resolution of reducing the amplitude range of the amplified current resolution includes: Determine the current output current values corresponding to the lower amplitude limit value and the upper amplitude limit value of the amplitude interval of the amplified current resolution respectively; The output current value corresponding to the lower limit value of the amplitude of the amplitude interval of the amplified current resolution is updated to the current output current value corresponding to the upper limit value of the amplitude of the amplitude interval of the amplified current resolution; Determine the initial output current value corresponding to the upper limit of the amplitude of the amplitude interval of the amplified current resolution according to the initial output current corresponding to each amplitude interval; The output current value corresponding to the upper limit of the amplitude of the amplitude interval of the amplified current resolution is restored to the initial output current value corresponding to the upper limit of the amplitude of the amplitude interval of the amplified current resolution.
6. The method for adjusting the operating handle according to claim 1, characterized in that: The step of adjusting the output current corresponding to the amplitude range to be adjusted according to a preset rule comprises: Determine the output current values corresponding to the lower amplitude limit value and the upper amplitude limit value of the amplitude interval to be adjusted; Updating the output current value corresponding to the amplitude upper limit value to the output current value corresponding to the amplitude lower limit value; Determine an output current value corresponding to the lower limit value of the amplitude of an adjacent interval to the amplitude interval to be adjusted, wherein the adjacent interval refers to an amplitude interval whose upper limit value of the amplitude is the lower limit value of the amplitude of the amplitude interval to be adjusted; Determine, by a preset algorithm, an intermediate output current value between the output current value corresponding to the lower amplitude limit value of the adjacent interval and the updated output current value corresponding to the upper amplitude limit value of the amplitude interval to be adjusted, wherein the intermediate output current value is greater than the output current value corresponding to the lower amplitude limit value of the adjacent interval, and is less than the updated output current value corresponding to the upper amplitude limit value of the amplitude interval to be adjusted; The intermediate output current value is determined as the output current value corresponding to the lower limit value of the amplitude of the amplitude range to be adjusted.
7. The method for adjusting the operating handle according to claim 1, characterized in that: The method further comprises: After the output current resolution corresponding to the operating handle is changed, the maximum number of marking times among the number of marking times corresponding to all amplitude intervals is updated to a second preset value.
8. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method for adjusting the operating handle according to any one of claims 1 to 7.
9. A machine-readable storage medium having instructions stored thereon, characterized in that: When the instruction is executed by a processor, the processor is configured to perform the method for adjusting an operating handle according to any one of claims 1 to 7.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the method for adjusting an operating handle according to any one of claims 1 to 7.
Citation Information
Patent Citations
Control method for engineering machinery hydraulic system, controller and storage medium
CN111677724A
Handle acceleration and deceleration oblique wave control method
CN112506124A
Handle, calibration method thereof, control device and handle assembly
CN118567495A
Method for operating an implement of a work machine
US20200392696A1