Real-time slope calculation method and device, intelligent wearable device and storage medium

CN116858185BActive Publication Date: 2026-09-25SHENZHEN DO INTELLIGENT TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310820038.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-05
Publication Date
2026-09-25
Estimated Expiration
2043-07-05

AI Technical Summary

Technical Problem

现有的智能手环等设备虽然可以实现实时坡度计算,但准确度较低,无法满足用户需求

Benefits of technology

[0037]本发明实施例提供的实时坡度计算方法、装置、智能穿戴设备及存储介质中,该方法应用于配备有高度计和定位模块的智能穿戴设备,在进行实时坡度计算时,先获取当前时刻的坡度计算数据,该坡度计算数据包括来自高度计的当前海拔变化量和来自定位模块的当前距离变化量;然后基于当前海拔变化量和记录的历史海拔变化量,对用户进行是否匀速运动的判定,得到匀速判定结果;之后基于匀速判定结果和当前距离变化量,确定目标距离变化量;进而基于当前海拔变化量对应的目标高度变化量和目标距离变化量,计算得到当前时刻的实时坡度值。这样通过智能穿戴设备,采用基于匀速判定结果的实时坡度计算方式,可以实现在户外运动场景下准确的坡度计算,也即提高了实时坡度计算结果的准确度。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116858185B_ABST
    Figure CN116858185B_ABST
Patent Text Reader

Abstract

The application provides a real-time slope calculation method and device, an intelligent wearable device and a storage medium, wherein the method is applied to the intelligent wearable device equipped with an altimeter and a positioning module; when real-time slope calculation is performed, slope calculation data at a current time is acquired first, the slope calculation data including a current altitude change amount from the altimeter and a current distance change amount from the positioning module; then, whether the user is moving at a constant speed is determined based on the current altitude change amount and a recorded historical altitude change amount, and a constant speed determination result is obtained; then, a target distance change amount is determined based on the constant speed determination result and the current distance change amount; and then, a real-time slope value at the current time is calculated based on a target altitude change amount corresponding to the current altitude change amount and the target distance change amount. In this way, the intelligent wearable device can accurately calculate the slope in an outdoor sports scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of smart wearable device technology, and in particular to a real-time slope calculation method, apparatus, smart wearable device, and storage medium. Background Technology

[0002] Slope measures the inclination and gentleness of a terrain surface, calculated as the ratio of vertical height to horizontal distance. In outdoor hiking scenarios, users are concerned with terrain changes throughout the activity, especially professional athletes who are particularly interested in ascents during training. Real-time slope values ​​are therefore a crucial parameter for measuring terrain undulation. While existing smart bracelets and other devices can calculate slope in real time, their accuracy is low and cannot meet user needs. Summary of the Invention

[0003] The purpose of this invention is to provide a real-time slope calculation method, apparatus, smart wearable device, and storage medium to improve the accuracy of real-time slope calculation results.

[0004] In a first aspect, embodiments of the present invention provide a real-time slope calculation method, applied to a smart wearable device equipped with an altimeter and a positioning module; the real-time slope calculation method includes:

[0005] Obtain the slope calculation data at the current moment, the slope calculation data including the current altitude change from the altimeter and the current distance change from the positioning module;

[0006] Based on the current altitude change and the recorded historical altitude change, the system determines whether the user is moving at a constant speed, and obtains a constant speed determination result.

[0007] Based on the constant speed determination result and the current distance change, determine the target distance change;

[0008] Based on the target height change and target distance change corresponding to the current altitude change, the real-time slope value at the current moment is calculated.

[0009] Furthermore, the determination of whether the user is moving at a constant speed based on the current altitude change and the recorded historical altitude changes, to obtain a constant speed determination result, includes:

[0010] Determine the first preset number of historical altitude changes and the second preset number of historical altitude slope values ​​that are closest to the current time.

[0011] Based on the current elevation change and each of the historical elevation changes, the current elevation slope value is calculated.

[0012] The uniform speed determination result is determined based on the current elevation slope value and each of the historical elevation slope values.

[0013] Further, determining the uniform velocity determination result based on the current elevation slope value and each of the historical elevation slope values ​​includes:

[0014] The standard deviation of the current elevation slope value and each of the historical elevation slope values ​​is calculated to obtain the current standard deviation.

[0015] The uniform speed determination result is determined based on the relationship between the current standard deviation and the preset standard deviation threshold.

[0016] Furthermore, the positioning module includes a GNSS positioning module, and the slope calculation data further includes the number of satellites corresponding to the current distance change; determining the target distance change based on the uniform velocity determination result and the current distance change includes:

[0017] When the uniform speed determination result is uniform speed, the current distance change is filtered based on the preset first filtering parameter to obtain the target distance change.

[0018] When the uniform speed determination result is non-uniform speed, the target distance change is determined based on the number of satellites corresponding to the current distance change and the current distance change.

[0019] Further, determining the target distance change based on the number of satellites corresponding to the current distance change and the current distance change includes:

[0020] Determine whether the number of satellites corresponding to the current altitude change is greater than a preset satellite number threshold, and obtain the number determination result;

[0021] When the result of the number determination is yes, the current distance change is determined as the target distance change;

[0022] When the result of the number determination is negative, the current distance change is filtered based on the preset second filtering parameters to obtain the target distance change.

[0023] Furthermore, before determining the target distance change based on the uniform velocity determination result and the current distance change, the real-time slope calculation method further includes:

[0024] Determine whether the current altitude change is less than a preset altitude change threshold;

[0025] When the current altitude change is less than the altitude change threshold, the current distance change is set to 0.

[0026] Furthermore, the real-time slope calculation method also includes:

[0027] When the current altitude change is greater than or equal to the altitude change threshold, determine whether the current distance change is greater than a preset distance threshold, and obtain a distance determination result;

[0028] When the distance determination result is yes, the step of determining the target distance change based on the constant speed determination result and the current distance change is executed;

[0029] When the distance determination result is negative, the current distance change is set to 0.

[0030] Secondly, embodiments of the present invention also provide a real-time slope calculation device, applied to a smart wearable device equipped with an altimeter and a positioning module; the real-time slope calculation device includes:

[0031] The data acquisition module is used to acquire the slope calculation data at the current moment. The slope calculation data includes the current altitude change from the altimeter and the current distance change from the positioning module.

[0032] The uniform speed determination module is used to determine whether the user is moving at a uniform speed based on the current altitude change and the recorded historical altitude change, and to obtain the uniform speed determination result.

[0033] The distance determination module is used to determine the target distance change based on the uniform velocity determination result and the current distance change.

[0034] The slope calculation module is used to calculate the real-time slope value at the current moment based on the target height change corresponding to the current altitude change and the target distance change.

[0035] Thirdly, embodiments of the present invention also provide a smart wearable device, including a memory and a processor, wherein the memory stores a computer program that can run on the processor, and the processor executes the computer program to implement the real-time slope calculation method described in the first aspect.

[0036] Fourthly, embodiments of the present invention also provide a storage medium storing a computer program, wherein the computer program is executed by a processor to perform the real-time slope calculation method described in the first aspect.

[0037] The real-time slope calculation method, apparatus, smart wearable device, and storage medium provided in this invention are applied to a smart wearable device equipped with an altimeter and a positioning module. When performing real-time slope calculation, the method first acquires the slope calculation data for the current moment, including the current altitude change from the altimeter and the current distance change from the positioning module. Then, based on the current altitude change and recorded historical altitude changes, it determines whether the user is moving at a constant speed, obtaining a constant speed determination result. Next, based on the constant speed determination result and the current distance change, it determines the target distance change. Finally, based on the target altitude change and target distance change corresponding to the current altitude change, it calculates the real-time slope value for the current moment. Thus, by using a smart wearable device and a real-time slope calculation method based on the constant speed determination result, accurate slope calculation can be achieved in outdoor sports scenarios, thereby improving the accuracy of the real-time slope calculation results. Attached Figure Description

[0038] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0039] Figure 1 A flowchart illustrating a real-time slope calculation method provided in an embodiment of the present invention;

[0040] Figure 2 A flowchart illustrating another real-time slope calculation method provided in an embodiment of the present invention;

[0041] Figure 3 A schematic diagram of the execution flow of a height discrimination module provided in an embodiment of the present invention;

[0042] Figure 4 A schematic diagram of the execution flow of a distance discrimination module provided in an embodiment of the present invention;

[0043] Figure 5 This is a schematic diagram of the structure of a real-time slope calculation device provided in an embodiment of the present invention;

[0044] Figure 6 This is a schematic diagram of the structure of a smart wearable device provided in an embodiment of the present invention. Detailed Implementation

[0045] The technical solution of the present invention will be clearly and completely described below with reference to the embodiments. 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.

[0046] Currently, smart bracelets can perform real-time slope calculations, but sensor errors can introduce inaccuracies into the calculation. For example, slight anomalies in horizontal distance or trajectory drift can cause drastic changes in slope, resulting in an inability to accurately and smoothly reflect the slope's magnitude. Therefore, this invention provides a real-time slope calculation method, device, smart wearable device, and storage medium. This allows for accurate slope calculation in outdoor sports scenarios through a smart wearable device, providing a more comprehensive reference for exercise.

[0047] To facilitate understanding of this embodiment, a real-time slope calculation method disclosed in this embodiment of the invention will first be described in detail.

[0048] This invention provides a real-time slope calculation method. This method is applied to a smart wearable device equipped with an altimeter and a positioning module. The smart wearable device may include wearable devices such as smart bracelets. The altimeter may be, but is not limited to, a barometric altimeter, and the positioning module may be, but is not limited to, a GNSS (Global Navigation Satellite System) positioning module. Based on a smart wearable device, this method enables real-time slope calculation in outdoor mountaineering scenarios.

[0049] See Figure 1 The diagram shows a flowchart of a real-time slope calculation method, which mainly includes the following steps S102 to S108:

[0050] Step S102: Obtain the slope calculation data at the current moment. The slope calculation data includes the current elevation change from the altimeter and the current distance change from the positioning module.

[0051] When the positioning module uses a GNSS positioning module, the current distance change can be the GPS (Global Positioning System) distance change. The slope calculation data can also include the number of satellites corresponding to the current distance change. The more satellites there are, the higher the reliability of the GNSS signal generated by the GNSS positioning module, that is, the higher the reliability of the current distance change.

[0052] Step S104: Based on the current altitude change and the recorded historical altitude change, determine whether the user is moving at a constant speed, and obtain the constant speed determination result.

[0053] In some possible embodiments, step S104 can be implemented through the following process: first, determine the first preset number of historical altitude changes and the second preset number of historical altitude slope values ​​closest to the current time; then, calculate the current altitude slope value based on the current altitude change and each historical altitude change; and finally, determine the uniform speed determination result based on the current altitude slope value and each historical altitude slope value. This can eliminate the influence of jumps in altitude changes measured by the altimeter and improve the accuracy of the uniform speed determination result.

[0054] Among them, the altitude slope value refers to the rate of change of altitude within a unit time (e.g., within 1 second); the first preset quantity and the second preset quantity can be set according to actual needs, and there is no limitation here. For example, if the first preset quantity and the second preset quantity are both 4, then an altitude slope value is calculated based on 5 altitude changes, and the uniform speed judgment result is determined based on 5 altitude slope values.

[0055] Alternatively, the current elevation slope value can be obtained by fitting using methods such as least squares, which has the advantages of being easy to understand, easy to implement, and highly accurate.

[0056] Optionally, to improve the accuracy of the uniform speed determination result, the uniform speed determination result can be determined through the following process: calculate the standard deviation of the current altitude slope value and each historical altitude slope value to obtain the current standard deviation; based on the relationship between the current standard deviation and a preset standard deviation threshold, determine the uniform speed determination result. Specifically, when the current standard deviation is greater than the standard deviation threshold, the uniform speed determination result is determined to be non-uniform; when the current standard deviation is less than or equal to the standard deviation threshold, the uniform speed determination result is determined to be uniform. The standard deviation threshold can be set according to actual needs and is not limited here; for example, the standard deviation threshold can be 0.1.

[0057] Step S106: Based on the uniform speed determination result and the current distance change, determine the target distance change.

[0058] In some possible embodiments, the positioning module uses a GNSS positioning module, and the slope calculation data also includes the number of satellites corresponding to the current distance change. Based on this, step S106 can be implemented through the following process: when the uniform speed determination result is uniform speed, the current distance change is filtered based on the preset first filtering parameters to obtain the target distance change; when the uniform speed determination result is non-uniform speed, the target distance change is determined based on the number of satellites corresponding to the current distance change and the current distance change. The filtering can use a third-order mean filter, that is, the target distance change is calculated based on the current distance change, the two most recent historical distance changes, and the weights of the three. It should be noted that the weights of the three can be the same, or they can be different or completely different. This approach of using different processing methods for different uniform speed determination results makes the determined target distance change more accurate.

[0059] Optionally, for non-uniform speed conditions, the target distance change can be determined through the following process: First, determine whether the number of satellites corresponding to the current altitude change is greater than a preset satellite number threshold to obtain the number determination result; when the number determination result is yes, the surface GNSS signal quality is good, the measurement result accuracy is high, and filtering is not required, so the current distance change is determined as the target distance change; when the number determination result is no, filter the current distance change based on the preset second filtering parameter to obtain the target distance change.

[0060] The satellite number threshold can be set according to actual needs and is not limited here. For example, the satellite number threshold can be 8. Both the first and second filter parameters can be empirical parameters, for example:

[0061] The first filter parameter is: dis = 0.65 * dis_3 + 0.25 * dis_2 + 0.1 * dis_1;

[0062] The second filter parameter is: Preset parameter 2: dis = 0.45 * dis_3 + 0.35 * dis_2 + 0.2 * dis_1;

[0063] Where dis_3, dis_2, and dis_1 represent the current distance change at the current moment, the historical distance change one second ago, and the historical distance change two seconds ago, respectively.

[0064] To improve the accuracy of real-time slope calculation results, before step S106, the method further includes: determining whether the current elevation change is less than a preset elevation change threshold; when the current elevation change is less than the elevation change threshold, setting the current distance change to 0. When the current elevation change is greater than or equal to the elevation change threshold, determining whether the current distance change is greater than a preset distance threshold to obtain a distance judgment result; when the distance judgment result is yes, executing step S106; when the distance judgment result is no, setting the current distance change to 0.

[0065] Both the altitude change threshold and the distance threshold can be set according to actual needs, and there are no restrictions here. For example, the altitude change threshold can be 0.15m, and the distance threshold can be 1.8m. This can avoid the influence of drift or fluctuation in the distance change, improve the accuracy of the subsequent target distance change, and thus improve the accuracy of the real-time slope calculation results.

[0066] Step S108: Based on the target height change and target distance change corresponding to the current altitude change, calculate the real-time slope value at the current moment.

[0067] Considering that the current elevation change measurement results may have slight anomalies and trajectory drift, an algorithm can be set to process the current elevation change to obtain the target elevation change.

[0068] The change in target height can be used as the `detal_vertical_height` and the change in target distance can be used as the `detal_horizontal_distance`. These values ​​can then be substituted into the following slope calculation formula to obtain the real-time slope value at the current moment:

[0069] slope = tan -1 (detal_vertical height / detal_horizontal distance) * (180 / π).

[0070] The real-time slope calculation method provided in this invention first acquires the slope calculation data at the current moment, including the current altitude change from an altimeter and the current distance change from a positioning module. Then, based on the current altitude change and recorded historical altitude changes, it determines whether the user is moving at a constant speed, obtaining a constant speed determination result. Next, based on the constant speed determination result and the current distance change, it determines the target distance change. Finally, based on the target altitude change and the target distance change corresponding to the current altitude change, it calculates the real-time slope value at the current moment. Thus, by using a smart wearable device and employing a real-time slope calculation method based on the constant speed determination result, accurate slope calculation can be achieved in outdoor sports scenarios, thereby improving the accuracy of the real-time slope calculation results.

[0071] For ease of understanding, please refer to the following: Figures 2 to 4 The above-mentioned real-time slope calculation method is described by way of example.

[0072] like Figure 2 As shown, after the user starts exercising, GNSS positioning is initiated to obtain the altitude change and GPS distance change. The altitude change is processed by the altitude discrimination module and then output to the distance discrimination module. The distance discrimination module processes the GPS distance change and the output of the altitude discrimination module to obtain the real-time slope value.

[0073] like Figure 3 As shown, the processing steps of the altitude discrimination module include: acquiring the altitude change per second and determining whether it meets the 5-second window requirement; if not, the process ends and continues to acquire the altitude change per second; if it meets the requirement, the altitude slope value within the window is calculated, the window is slid once per second (i.e., the sliding window step size is 1 second), and the altitude slope value is pushed into an array; the standard deviation of the altitude slope values ​​within the current window (window size is 5 seconds, sliding window step size is 1 second) is calculated; then, it is determined whether the standard deviation is greater than the standard deviation threshold; if it is greater than the standard deviation threshold (yes), the altitude flag is determined to be a non-uniform speed flag; if it is less than or equal to the standard deviation threshold (no), the altitude flag is determined to be a uniform speed scene flag. The altitude discrimination module can send the altitude flag of the non-uniform speed flag or the uniform speed scene flag to the distance discrimination module.

[0074] like Figure 4 As shown, the processing steps of the distance discrimination module include: acquiring the GPS distance change per second and determining whether the altitude change is less than the altitude change threshold; if it is less than the altitude change threshold (yes), then the user is determined to be stationary, and the GPS distance change is set to 0; if it is greater than or equal to the altitude change threshold (no), then the GPS distance change is determined to be greater than the distance threshold; if it is less than or equal to the distance threshold (no), then the GPS distance change is set to 0; if it is greater than the distance threshold (yes), then the altitude flag bit output by the altitude discrimination module is acquired; based on the altitude flag bit, it is determined whether the speed is uniform. If the speed is uniform (yes), the GPS distance change is filtered using the first filtering parameter to obtain the filtered distance (i.e., the target distance change). If the speed is non-uniform (no), it is determined whether the number of satellites is greater than the satellite number threshold. If it is less than or equal to the satellite number threshold (no), the GPS distance change is filtered using the second filtering parameter to obtain the filtered distance (i.e., the target distance change). If it is greater than the satellite number threshold (yes), the GPS distance change is determined as the unfiltered distance, that is, the GPS distance change is not filtered and is directly determined as the target distance change.

[0075] Corresponding to the above-described real-time slope calculation method, this embodiment of the invention also provides a real-time slope calculation device, which is applied to a smart wearable device equipped with an altimeter and a positioning module. See also Figure 5 The diagram shows a real-time slope calculation device, which includes:

[0076] The data acquisition module 501 is used to acquire the slope calculation data at the current moment, which includes the current elevation change from the altimeter and the current distance change from the positioning module.

[0077] The uniform speed determination module 502 is used to determine whether the user is moving at a uniform speed based on the current altitude change and the recorded historical altitude change, and to obtain the uniform speed determination result.

[0078] The distance determination module 503 is used to determine the change in target distance based on the uniform velocity determination result and the current distance change.

[0079] The slope calculation module 504 is used to calculate the real-time slope value at the current moment based on the target height change and target distance change corresponding to the current altitude change.

[0080] Furthermore, the uniform speed determination module 502 is specifically used to: determine the first preset number of historical altitude changes and the second preset number of historical altitude slope values ​​that are closest to the current time; calculate the current altitude slope value based on the current altitude change and each historical altitude change; and determine the uniform speed determination result based on the current altitude slope value and each historical altitude slope value.

[0081] Furthermore, the uniform speed determination module 502 is also used to: calculate the standard deviation of the current altitude slope value and each historical altitude slope value to obtain the current standard deviation; and determine the uniform speed determination result based on the relationship between the current standard deviation and the preset standard deviation threshold.

[0082] Furthermore, the aforementioned positioning module includes a GNSS positioning module, and the slope calculation data also includes the number of satellites corresponding to the current distance change; the aforementioned distance determination module 503 is specifically used for: when the uniform speed determination result is uniform speed, filtering the current distance change based on the preset first filtering parameter to obtain the target distance change; when the uniform speed determination result is non-uniform speed, determining the target distance change based on the number of satellites corresponding to the current distance change and the current distance change.

[0083] Furthermore, the distance determination module 503 is also used to: determine whether the number of satellites corresponding to the current altitude change is greater than a preset satellite number threshold, and obtain a number determination result; when the number determination result is yes, determine the current distance change as the target distance change; when the number determination result is no, filter the current distance change based on the preset second filtering parameter to obtain the target distance change.

[0084] Furthermore, the aforementioned distance determination module 503 is also used to: determine whether the current altitude change is less than a preset altitude change threshold; when the current altitude change is less than the altitude change threshold, set the current distance change to 0.

[0085] Furthermore, the aforementioned distance determination module 503 is also used to: when the current altitude change is greater than or equal to the altitude change threshold, determine whether the current distance change is greater than a preset distance threshold and obtain a distance judgment result; when the distance judgment result is yes, execute the step of determining the target distance change based on the uniform speed judgment result and the current distance change; when the distance judgment result is no, set the current distance change to 0.

[0086] The real-time slope calculation device provided in this embodiment has the same implementation principle and technical effect as the aforementioned real-time slope calculation method embodiment. For the sake of brevity, any parts not mentioned in the real-time slope calculation device embodiment can be referred to the corresponding content in the aforementioned real-time slope calculation method embodiment.

[0087] like Figure 6 As shown, an embodiment of the present invention provides a smart wearable device 600, including: a processor 601, a memory 602 and a bus. The memory 602 stores a computer program that can run on the processor 601. When the smart wearable device 600 is running, the processor 601 and the memory 602 communicate through the bus. The processor 601 executes the computer program to implement the above-mentioned real-time slope calculation method.

[0088] Specifically, the memory 602 and processor 601 mentioned above can be general-purpose memory and processor, without any specific limitations here.

[0089] This invention also provides a storage medium storing a computer program, which, when executed by a processor, performs the real-time slope calculation method described in the preceding method embodiments. The storage medium includes various media capable of storing program code, such as a USB flash drive, external hard drive, read-only memory (ROM), RAM, magnetic disk, or optical disk.

[0090] In all examples shown and described herein, any specific values ​​should be interpreted as merely exemplary and not as limitations; therefore, other examples of exemplary embodiments may have different values.

[0091] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0092] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.

[0093] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0094] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0095] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A real-time slope calculation method, characterized in that, It is applied to smart wearable devices equipped with an altimeter and a positioning module, wherein the positioning module includes a GNSS positioning module; The real-time slope calculation method includes: Obtain the slope calculation data at the current moment. The slope calculation data includes the current altitude change from the altimeter and the current distance change from the positioning module. The slope calculation data also includes the number of satellites corresponding to the current distance change. Based on the current altitude change and the recorded historical altitude change, the system determines whether the user is moving at a constant speed, and obtains a constant speed determination result. Determining the target distance change based on the uniform speed determination result and the current distance change includes: when the uniform speed determination result is uniform, filtering the current distance change based on a preset first filtering parameter to obtain the target distance change; when the uniform speed determination result is non-uniform, determining whether the number of satellites corresponding to the current altitude change is greater than a preset satellite number threshold to obtain a number determination result; when the number determination result is yes, determining the current distance change as the target distance change; when the number determination result is no, filtering the current distance change based on a preset second filtering parameter to obtain the target distance change. Based on the target height change and target distance change corresponding to the current altitude change, the real-time slope value at the current moment is calculated.

2. The real-time slope calculation method according to claim 1, characterized in that, The determination of whether the user is moving at a constant speed based on the current altitude change and the recorded historical altitude change, and the resulting constant speed determination, includes: Determine the first preset number of historical altitude changes and the second preset number of historical altitude slope values ​​that are closest to the current time. Based on the current elevation change and each of the historical elevation changes, the current elevation slope value is calculated. The uniform speed determination result is determined based on the current elevation slope value and each of the historical elevation slope values.

3. The real-time slope calculation method according to claim 2, characterized in that, The determination of the uniform velocity determination result based on the current elevation slope value and each of the historical elevation slope values ​​includes: The standard deviation of the current elevation slope value and each of the historical elevation slope values ​​is calculated to obtain the current standard deviation. The uniform speed determination result is determined based on the relationship between the current standard deviation and the preset standard deviation threshold.

4. The real-time slope calculation method according to claim 1, characterized in that, Before determining the target distance change based on the uniform velocity determination result and the current distance change, the real-time slope calculation method further includes: Determine whether the current altitude change is less than a preset altitude change threshold; When the current altitude change is less than the altitude change threshold, the current distance change is set to 0.

5. The real-time slope calculation method according to claim 4, characterized in that, The real-time slope calculation method also includes: When the current altitude change is greater than or equal to the altitude change threshold, determine whether the current distance change is greater than a preset distance threshold, and obtain a distance determination result; When the distance determination result is yes, the step of determining the target distance change based on the constant speed determination result and the current distance change is executed; When the distance determination result is negative, the current distance change is set to 0.

6. A real-time slope calculation device, characterized in that, It is applied to smart wearable devices equipped with an altimeter and a positioning module, wherein the positioning module includes a GNSS positioning module; The real-time slope calculation device includes: The data acquisition module is used to acquire slope calculation data at the current moment. The slope calculation data includes the current altitude change from the altimeter and the current distance change from the positioning module. The slope calculation data also includes the number of satellites corresponding to the current distance change. The uniform speed determination module is used to determine whether the user is moving at a uniform speed based on the current altitude change and the recorded historical altitude change, and to obtain the uniform speed determination result. A distance determination module is used to determine a target distance change based on the uniform speed determination result and the current distance change, including: when the uniform speed determination result is uniform, filtering the current distance change based on a preset first filtering parameter to obtain the target distance change; when the uniform speed determination result is non-uniform, determining whether the number of satellites corresponding to the current altitude change is greater than a preset satellite number threshold to obtain a number determination result; when the number determination result is yes, determining the current distance change as the target distance change; when the number determination result is no, filtering the current distance change based on a preset second filtering parameter to obtain the target distance change. The slope calculation module is used to calculate the real-time slope value at the current moment based on the target height change corresponding to the current altitude change and the target distance change.

7. A smart wearable device, comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, characterized in that, When the processor executes the computer program, it implements the real-time slope calculation method according to any one of claims 1-5.

8. A storage medium storing a computer program, characterized in that, The computer program is executed by the processor to perform the real-time slope calculation method according to any one of claims 1-5.

Citation Information

Patent Citations

  • Astronomical aided single-star positioning method

    CN101464506A

  • Satellite positioning data drifting restraining method and device

    CN104570004A

  • Urea box monitoring method and device, electronic equipment and storage medium

    CN113611090A

  • Gradient measuring system and road section information measuring device

    CN201378052Y