Measurement method, measurement device, electronic equipment and computer storage medium
By establishing a correction model to correct the output information of the pressure sensor, the problem of inaccuracy in altitude measurement under the influence of wind speed and direction is solved, and more accurate and reliable altitude measurement is achieved.
Patent Information
- Application Number
- CN202510844751.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-23
- Publication Date
- 2025-09-23
AI Technical Summary
Existing pressure sensors lack accuracy and reliability when measuring altitude in the presence of wind speed and direction.
By establishing a correction model based on different wind speeds and directions, the output information of the pressure sensor is used for correction processing, and the corrected measurement value is obtained to calculate the altitude.
The accuracy and reliability of altitude measurement are improved, and the influence of wind speed and direction on measurement is reduced.
Smart Images

Figure CN120685047A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of equipment measurement, and in particular relates to a method for measuring altitude, an altitude measuring device, an electronic device and a computer storage medium. Background Art
[0002] Electronic products on the market, such as watches, bracelets, and mobile phones, are equipped with pressure sensors, enabling them to achieve certain high-precision positioning capabilities. These sensors can quickly and immediately reflect the ambient air pressure at the electronic product's location, and based on the relationship between air pressure and altitude, they can determine the current altitude. However, in actual use, it has been found that when strong winds are blowing at the user's location, the pressure sensor's output is affected not only by the user's current altitude but also by wind direction and speed. This results in a lack of accuracy in the measured altitude and reduces reliability. Summary of the Invention
[0003] The object of the present invention is to at least solve the problem of lack of high accuracy in the presence of wind speed and wind direction. This object is achieved by the following technical solutions:
[0004] A first aspect of the present invention provides a method for measuring altitude, comprising:
[0005] determining a first correction model based on output information of the first pressure sensor at different wind speeds and different wind directions;
[0006] Acquiring a first actual measurement value of a first pressure sensor;
[0007] Based on the first correction model, correcting the first actual measurement value and obtaining a corrected measurement value;
[0008] Based on the corrected measurements, determine the altitude.
[0009] By using the altitude measurement method of the present technical solution, a first correction model is established based on the output information of the first pressure sensor under different wind speeds and different wind directions, and then a corrected measurement value is obtained based on the first actual measurement value of the first pressure sensor and the first correction model, and the altitude is calculated based on the corrected measurement value. The altitude measurement method of the present invention can correct the influence of wind speed and wind direction on the first pressure sensor, and ultimately obtain an accurate altitude, thereby improving the accuracy and reliability of the measurement.
[0010] In addition, the method for measuring altitude according to the present invention may also have the following additional technical features:
[0011] In some embodiments of the present invention, the output information of the first pressure sensor at different wind speeds and wind directions includes:
[0012] There are multiple groups of first noise output values and multiple groups of first pressure output values, and the first noise output values correspond to the first pressure output values in a one-to-one manner.
[0013] In some embodiments of the present invention, determining the first revised model includes:
[0014] Obtaining a second pressure output value of the first pressure sensor in a windless state;
[0015] determining first pressure correction values of the plurality of first pressure sensors according to the second pressure output values and the plurality of first pressure output values;
[0016] A first correction model is determined according to the plurality of sets of first pressure correction values, the plurality of sets of first noise output values, and the plurality of sets of first pressure output values.
[0017] In some embodiments of the present invention, the first actual measurement value includes:
[0018] A first actual pressure output value and a first actual noise output value.
[0019] In some embodiments of the present invention, the correcting the first actual measurement value based on the first correction model and obtaining the corrected measurement value includes:
[0020] determining a first pressure correction value based on the first correction model, the first actual pressure output value, and the first actual noise output value;
[0021] A corrected measurement value is determined based on the first pressure correction value and the first actual pressure output value.
[0022] In some embodiments of the present invention, the correcting the first actual measurement value based on the first correction model and obtaining the corrected measurement value includes:
[0023] Based on the first correction model, the first actual output value is corrected to obtain a first final pressure output value;
[0024] determining a second correction model based on output information of the second pressure sensor at different wind speeds and different wind directions;
[0025] obtaining a second actual measurement value of a second pressure sensor;
[0026] Based on the second correction model, the second actual measurement value is corrected to obtain a second final pressure output value;
[0027] A corrected measurement value is determined based on the first final pressure output value and the second final pressure output value.
[0028] In some embodiments of the present invention, determining the altitude based on the corrected measurement value includes:
[0029] According to the corrected measurement value, using the formula
[0030] Calculate altitude;
[0031] Where Altitude is the altitude, P is the corrected measurement value, and P0 is the standard atmospheric pressure.
[0032] A second aspect of the present invention provides a device for measuring altitude, comprising:
[0033] an acquisition unit, comprising a first pressure sensor;
[0034] The determining unit is configured to determine a first correction model, a correction measurement value, and an altitude.
[0035] A third aspect of the present invention provides an electronic device, comprising:
[0036] a memory configured to store executable code;
[0037] A processor is configured to read the executable code and run a program corresponding to the executable code to implement the above-mentioned altitude measurement method.
[0038] A fourth aspect of the present invention provides a computer storage medium having computer-readable instructions stored thereon. When the computer-readable instructions are read by one or more processors, the one or more processors execute the above-mentioned method for measuring altitude. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present invention. The same reference numerals are used throughout the accompanying drawings to denote the same components. In the accompanying drawings:
[0040] Figure 1 Schematically shows an overall logic flow chart of a method for measuring altitude according to an embodiment of the present invention;
[0041] Figure 2 Schematically shows a logic flow chart of determining a first correction model in a method for measuring altitude according to an embodiment of the present invention;
[0042] Figure 3 Schematically shows a logic flow chart for obtaining a corrected measurement value in a method for measuring altitude according to an embodiment of the present invention;
[0043] Figure 4Schematically shows a structural diagram of an electronic device according to an embodiment of the present invention;
[0044] Figure 5 The figure schematically shows the structure of an electronic device according to another embodiment of the present invention.
[0045] The reference numerals in the accompanying drawings represent the following:
[0046] 100. Electronic equipment;
[0047] 101. First pressure sensor; 102. Second pressure sensor; 103. Third pressure sensor; 104. Fourth pressure sensor. DETAILED DESCRIPTION
[0048] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. Rather, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0049] It should be understood that the terms used herein are for the purpose of describing specific example embodiments only and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "comprise", "include", "contain" and "have" are inclusive and therefore specify the presence of stated features, steps, operations, elements and / or parts, but do not exclude the presence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not to be construed as necessarily requiring them to be performed in the specific order described or illustrated, unless the order of execution is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0050] Although the terms first, second, third, etc. can be used in the text to describe multiple elements, components, regions, layers and / or sections, these elements, components, regions, layers and / or sections should not be limited by these terms. These terms can only be used to distinguish an element, component, region, layer or section from another region, layer or section. Unless the context clearly indicates otherwise, terms such as "first", "second" and other numerical terms do not imply order or sequence when used in the text. Therefore, the first element, component, region, layer or section discussed below can be referred to as the second element, component, region, layer or section without departing from the teaching of the example embodiments.
[0051] For ease of description, spatially relative terms may be used herein to describe the relationship of one element or feature relative to another element or feature as shown in the figures, such as "inside," "outside," "inside," "outside," "below," "beneath," "above," and the like. Such spatially relative terms are intended to encompass different orientations of the device in use or operation in addition to the orientation depicted in the figures. For example, if the device in the figures is flipped over, an element described as "below" or "beneath" another element or feature would then be oriented "above" or "above" the other element or feature. Thus, the example term "below" can encompass both above and below orientations.
[0052] Electronic products on the market, such as watches, bracelets, and mobile phones, are equipped with pressure sensors, enabling them to achieve certain high-precision positioning capabilities. These sensors can quickly and immediately reflect the ambient air pressure at the electronic product's location, and based on the relationship between air pressure and altitude, they can determine the current altitude. However, in actual use, it has been found that when strong winds are blowing at the user's location, the pressure sensor's output is affected not only by the user's current altitude but also by wind direction and speed. This results in a lack of accuracy in the measured altitude and reduces reliability.
[0053] Figure 1 The overall logic flow chart of the method for measuring altitude according to an embodiment of the present invention is schematically shown. Figure 1 As shown, the present invention provides a method for measuring altitude, an apparatus for measuring altitude, an electronic device 100 and a computer storage medium. The method for measuring altitude in the present invention includes:
[0054] S10: Determine a first correction model based on output information of the first pressure sensor 101 at different wind speeds and different wind directions;
[0055] S20: Acquire a first actual measurement value of the first pressure sensor 101;
[0056] S30: Correcting the first actual measurement value based on the first correction model to obtain a corrected measurement value;
[0057] S40: Determine the altitude based on the corrected measurement value.
[0058] By using the altitude measurement method of the present technical solution, a first correction model is established based on the output information of the first pressure sensor 101 under different wind speeds and different wind directions, and then a corrected measurement value is obtained based on the first actual measurement value of the first pressure sensor 101 and the first correction model, and the altitude is calculated based on the corrected measurement value. The altitude measurement method of the present invention can correct the wind speed and the influence of the wind speed on the first pressure sensor 101, and finally obtain an accurate altitude, thereby improving the accuracy and reliability of the measurement.
[0059] In some embodiments of the present invention, the output information of the first pressure sensor 101 at different wind speeds and wind directions includes:
[0060] There are multiple groups of first noise output values and multiple groups of first pressure output values, and the first noise output values correspond to the first pressure output values in a one-to-one manner.
[0061] Specifically, in some embodiments of the measurement method of the present invention, by acting on the first pressure sensor 101 under different wind forces, where the reference value of the different wind forces can be set as a dual combination of different wind speeds and different wind directions, the first pressure output value of the first pressure sensor 101 and the first noise output value at the first pressure sensor 101 are obtained under the above dual conditions, and ultimately multiple sets of data with a one-to-one correspondence between wind speed, wind direction, first pressure output value, and first noise output value can be obtained. For example, if the wind speed is a1 and the wind direction is b1, the corresponding first pressure output value is c1 and the first noise output value is d1; if the wind speed is a2 and the wind direction is b2, the corresponding first pressure output value is c2 and the first noise output value is d2.
[0062] In some embodiments of the present invention, Figure 2 As shown, determining the first revised model includes:
[0063] S11: Acquire a second pressure output value of the first pressure sensor 101 in a windless state;
[0064] S12: Determine the first pressure correction values of the plurality of first pressure sensors 101 according to the second pressure output value and the plurality of first pressure output values;
[0065] S13: Determine a first correction model according to the multiple sets of first pressure correction values, the multiple sets of first noise output values, and the multiple sets of first pressure output values.
[0066] Specifically, in some embodiments of the measurement method of the present invention, after obtaining multiple groups of first noise output values and multiple groups of first pressure output values of the first pressure sensor 101 under different wind speeds and different wind directions, it is also necessary to obtain the second pressure output value of the first pressure sensor 101 in a windless state, and determine the first pressure correction value of the first pressure sensor 101 through the absolute value of the difference between the second pressure output value and the multiple groups of first pressure output values.
[0067] Furthermore, after obtaining the first pressure correction value using the above method, multiple sets of data can be obtained, each corresponding to wind speed, wind direction, first pressure output value, first noise output value, and first pressure correction value. For example, if the wind speed is a1 and the wind direction is b1, the corresponding first pressure output value is c1, the first noise output value is d1, and the first pressure correction value is e1; if the wind speed is a2 and the wind direction is b2, the corresponding first pressure output value is c2, the first noise output value is d2, and the first pressure correction value is e2.
[0068] Specifically, in the implementation mode of the measurement method of the present invention, in order to obtain the relationship between the output information and the wind direction and wind speed and the change in the pressure correction value more accurately, it is required that the wind direction and wind speed can be selected in multiple gradients, such as the wind direction can be selected as 0° / 45° / 90° / 135° / 180° / 225° / 270° / 315°, and the wind direction can be selected as 3m / s, 4m / s, 5m / s, 6m / s, 7m / s, 8m / s, 9m / s, 10m / s, and can be further refined.
[0069] The wind speed and wind direction are inputs to the first pressure sensor 101, and the first pressure output value, the first noise output value, and the first pressure correction value are outputs of the first pressure sensor 101. A first correction model can be determined based on the correspondence between the inputs and outputs of the first pressure sensor 101. When the first actual measurement value of the first pressure sensor 101 is detected, a corrected measurement value can be determined using the reference relationship in the first correction model, and the altitude can be determined based on the corrected measurement value.
[0070] In some embodiments of the present invention, obtaining the first actual measurement value of the first pressure sensor 101 includes:
[0071] A first actual pressure output value and a first actual noise output value.
[0072] Specifically, in some embodiments of the measurement method of the present invention, in the actual process, when the first actual measurement value of the first pressure sensor 101 is obtained, it is necessary to obtain the first actual pressure output value and the first actual noise output value of the first pressure sensor 101, and then look up the table in the first correction model based on the first actual pressure output value and the first actual noise output value, and be able to obtain the first pressure correction value corresponding to the first actual noise output value, and determine the altitude based on the corrected measurement value.
[0073] Furthermore, when the wind speed is a1 and the wind direction is b1, the corresponding first pressure output value is c1, the first noise output value is d1, and the first pressure correction value is e1; when the wind speed is a2 and the wind direction is b2, the corresponding first pressure output value is c2, the first noise output value is d2, and the first pressure correction value is e2. In the above two sets of data, if only the first actual pressure output value and the first pressure output value are compared, the corresponding wind speed may not be accurately determined. Because when a1>a2 and b1<b2 and a1<a2 and b1>b2, the values of c1 and c2 may be the same, and thus the wind speed cannot be determined solely by comparing the first pressure output value with the first actual pressure output value. In this case, the relationship between the wind speed, wind direction, the corresponding first pressure output value, the first noise output value, and the first pressure correction value can be further determined by comparing the first actual noise output value with the first noise output value. Therefore, the first pressure correction value can be accurately determined based on the first actual pressure output value and the first correction model, thereby improving reliability and accuracy.
[0074] In some embodiments of the present invention, Figure 3 As shown, based on the first correction model, the first actual measurement value is corrected, and the corrected measurement value is obtained, including:
[0075] S31: Determine a first pressure correction value based on a first correction model, a first actual pressure output value, and a first actual noise output value;
[0076] S32: Determine a corrected measurement value according to the first pressure correction value and the first actual pressure output value.
[0077] Specifically, in some embodiments of the measurement method of the present invention, when the wind blows toward the first pressure sensor 101 from different directions at different wind speeds, the first pressure sensor 101 will have different degrees of output information (including a first pressure output value and a first noise output value), analyze and obtain the relationship between the output information of the first pressure sensor 101 and the wind direction and wind speed, and at the same time obtain the change (first pressure correction value) of the first pressure sensor 101 relative to the windless state under different wind directions and different wind speeds. The above is the pre-recording stage of the first correction model, and finally, with the input of multiple sets of data, a first correction model is formed. In actual application, the wind direction, wind speed and change at the current position of the first pressure sensor 101 can be inferred through the output information of the first pressure sensor 101, and the change (first pressure correction value) is compensated to the first pressure sensor 101 to obtain the air pressure value of the first pressure sensor 101 at the altitude in the windless state, thereby obtaining the current altitude.
[0078] In some embodiments of the present invention, performing correction processing on the first actual measurement value based on the first correction model and obtaining the corrected measurement value includes:
[0079] Based on the first correction model, the first actual output value is corrected to obtain a first final pressure output value;
[0080] Determine a second correction model based on output information of the second pressure sensor 102 at different wind speeds and different wind directions;
[0081] Acquire a second actual measurement value of the second pressure sensor 102;
[0082] Based on the second correction model, the second actual measurement value is corrected to obtain a second final pressure output value;
[0083] A corrected measurement value is determined based on the first final pressure output value and the second final pressure output value.
[0084] Specifically, in some embodiments of the measurement method of the present invention, a combination structure of two groups of pressure sensors is adopted, including a first pressure sensor 101 and a second pressure sensor 102. The first pressure sensor 101 and the second pressure sensor 102 are both provided on the electronic device 100 and are respectively placed at diagonal positions of the electronic device 100, such as Figure 4 shown.
[0085] Furthermore, when the wind blows towards the electronic device 100 having the first pressure sensor 101 and the second pressure sensor 102 from different directions and at different wind speeds, the first pressure sensor 101 and the second pressure sensor 102 will respectively have output information to different degrees. The relationship between the output information of the first pressure sensor 101 and the second pressure sensor 102 and the wind direction and wind speed is analyzed and obtained, and at the same time, the change of the first pressure sensor 101 and the second pressure sensor 102 under different wind directions and different wind speeds relative to the windless state is obtained. The above is the pre-recording stage of the first correction model and the second correction model, and finally, with the input of multiple sets of data, the first correction model and the second correction model are formed. In actual application, the output information of the first pressure sensor 101 and the second pressure sensor 102 can be used to infer the wind direction, wind speed and change at the current position of the first pressure sensor 101 and the second pressure sensor 102, and the change is compensated to the first pressure sensor 101 and the second pressure sensor 102 to obtain the air pressure value of the first pressure sensor 101 and the second pressure sensor 102 at the current altitude in a windless state, and the corrected measurement value is obtained by taking the average of the first final pressure output value of the first pressure sensor 101 and the second final pressure output value of the second pressure sensor 102, and then the current altitude is obtained by the corrected measurement value.
[0086] Furthermore, in order to make the final corrected measurement value more accurate, the number of pressure sensors on the electronic device 100 can also be increased from two to four, or more. For example, if four pressure sensors (a first pressure sensor 101, a second pressure sensor 102, a third pressure sensor 103, and a fourth pressure sensor 104) are placed, it is recommended to place them in the following positions: Figure 5 As shown in the figure, in actual measurement, if the first final pressure output value is A1, the second final pressure output value is A2, the third final pressure output value is A3, and the fourth final pressure output value is A4, then the final corrected measurement value is the average of A1, A2, A3, and A4. If a structure with more than four pressure sensors is used, the average of the final pressure output values of multiple pressure sensors is used.
[0087] In some embodiments of the present invention, the output information based on the second pressure sensor 102 at different wind speeds and different wind directions includes:
[0088] There are multiple groups of second noise output values and multiple groups of third pressure output values, and the second noise output values correspond to the third pressure output values in a one-to-one manner.
[0089] Specifically, in some embodiments of the measurement method of the present invention, in the actual process, when the second actual measurement value of the second pressure sensor 102 is obtained, it is necessary to obtain the second actual pressure output value and the second actual noise output value of the second pressure sensor 102, and then look up the table in the second correction model based on the second actual pressure output value and the second actual noise output value, and be able to obtain the second pressure correction value corresponding to the second actual noise output value, and determine the corrected measurement value based on the first final pressure output value and the second final pressure output value.
[0090] In some embodiments of the invention, determining the second revised model includes:
[0091] Obtaining a fourth pressure output value of the second pressure sensor 102 in a windless state;
[0092] determining the plurality of sets of second pressure correction values of the second pressure sensor 102 according to the fourth pressure output value and the plurality of sets of third pressure output values;
[0093] A first correction model is determined according to the plurality of sets of second pressure correction values, the plurality of sets of third noise output values, and the plurality of sets of third pressure output values.
[0094] Specifically, in some embodiments of the measurement method of the present invention, after obtaining multiple groups of second noise output values and multiple groups of third pressure output values of the second pressure sensor 102 under different wind speeds and different wind directions, it is also necessary to obtain the fourth pressure output value of the second pressure sensor 102 in a windless state, and determine the second pressure correction value of the second pressure sensor 102 through the absolute value of the difference between the fourth pressure output value and the multiple groups of third pressure output values.
[0095] In some embodiments of the present invention, obtaining the second actual measurement value of the second pressure sensor 102 includes:
[0096] a second actual pressure output value and a second actual noise output value.
[0097] Specifically, in some embodiments of the measurement method of the present invention, in the actual process, when the second actual measurement value of the second pressure sensor 102 is obtained, it is necessary to obtain the second actual pressure output value and the second actual noise output value of the second pressure sensor 102, and then look up the table in the second correction model based on the second actual pressure output value and the second actual noise output value, and be able to obtain the second pressure correction value corresponding to the second actual noise output value, and determine the altitude based on the corrected measurement value.
[0098] In some embodiments of the present invention, performing correction processing on the second actual measurement value based on the second correction model and obtaining the second final pressure output value includes:
[0099] determining a second pressure correction value based on the second correction model, the second actual pressure output value, and the second actual noise output value;
[0100] A second final pressure output value is determined according to the second pressure correction value and the second actual pressure output value.
[0101] Specifically, in some embodiments of the measurement method of the present invention, when the wind blows toward the second pressure sensor 102 from different directions at different wind speeds, the second pressure sensor 102 will have different degrees of output information (including a third pressure output value and a second noise output value), analyze and obtain the relationship between the output information of the second pressure sensor 102 and the wind direction and wind speed, and at the same time obtain the change of the second pressure sensor 102 relative to the windless state under different wind directions and different wind speeds (second pressure correction value). The above is the pre-recording stage of the second correction model, and finally, with the input of multiple sets of data, a second correction model is formed. In actual application, the wind direction, wind speed and change at the current position of the second pressure sensor 102 can be inferred through the output information of the second pressure sensor 102, and the change (second pressure correction value) is compensated to the second pressure sensor 102 to obtain the air pressure value of the second pressure sensor 102 at the altitude in the windless state, combined with the air pressure value of the first pressure sensor 101 at the altitude, and then the current altitude is obtained.
[0102] In some embodiments of the present invention, determining the altitude based on the corrected measurement value includes:
[0103] According to the corrected measurement value, using the formula
[0104] Calculate altitude;
[0105] Where Altitude is the altitude, P is the corrected measurement value, and P0 is the standard atmospheric pressure.
[0106] Furthermore, in some embodiments of the measurement method of the present invention, in order to obtain a more accurate relationship between the output information and the wind direction and wind speed, as well as the obtained change (pressure correction value), the collected data may be subjected to deep algorithm learning.
[0107] The present invention also provides a device for measuring altitude, comprising:
[0108] An acquisition unit, comprising a first pressure sensor, wherein the first pressure sensor is used to acquire a first actual measurement value;
[0109] The determining unit is configured to determine a first correction model, a correction measurement value, and an altitude.
[0110] According to the technical solution of the present invention, the measuring device can be a pressure sensor. A first correction model is established based on the output information of the first pressure sensor 101 at different wind speeds and different wind directions. Then, a corrected measurement value is obtained through the first actual measurement value of the first pressure sensor 101 and the first correction model, and the altitude is calculated based on the corrected measurement value. The measuring device for measuring altitude of the present invention can correct the influence of wind speed and wind direction on the first pressure sensor 101, and finally obtain an accurate altitude, thereby improving the accuracy and reliability of the measurement.
[0111] The present invention further provides an electronic device 100, comprising:
[0112] a memory configured to store executable code;
[0113] The processor is configured to read the executable code and run a program corresponding to the executable code to implement the above-mentioned altitude measurement method.
[0114] According to the technical solution of the present invention, the electronic device 100 can be an electronic device 100 with a pressure sensor, such as a watch, a mobile phone, or a bracelet. The first correction model is established through the output information of the first pressure sensor 101 at different wind speeds and different wind directions. Then, the corrected measurement value is obtained through the first actual measurement value of the first pressure sensor 101 and the first correction model, and the altitude is calculated through the corrected measurement value. The electronic device 100 for measuring altitude of the present invention can correct the influence of wind speed and wind direction on the first pressure sensor 101, and finally obtain an accurate altitude, thereby improving the accuracy and reliability of the measurement.
[0115] Specifically, in this embodiment, the electronic device 100 may be provided with multiple pressure sensors. Since the noise information of the pressure sensors needs to be measured, a noise sensor may be provided on each pressure sensor to obtain corresponding wind noise information.
[0116] The present invention also provides a computer storage medium having computer-readable instructions stored thereon. When the computer-readable instructions are read by one or more processors, the one or more processors execute the above-mentioned method for measuring altitude.
[0117] Specifically, in this embodiment, the altitude measuring device may be a corresponding program module in the memory, and the processor may retrieve it from the memory and call it.
[0118] Those skilled in the art will further appreciate that the various illustrative logic blocks, modules, circuits, and algorithmic steps described in conjunction with the embodiments disclosed herein can be implemented as electronic hardware, computer software, or a combination of the two. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps are generally described above in terms of their functionality. Whether such functionality is implemented as hardware or software depends on the specific application and the design constraints imposed on the overall system. A skilled person may implement the described functionality in different ways for each specific application, but such implementation decisions should not be interpreted as resulting in a departure from the scope of the present invention.
[0119] The various illustrative logic modules and circuits described in conjunction with the embodiments disclosed herein may be implemented or executed using a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general-purpose processor may be a microprocessor, but in an alternative embodiment, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
[0120] In one or more exemplary embodiments, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented as a computer program product in software, each function may be stored as one or more instructions or codes on or transmitted via a computer-readable medium. Computer-readable media include both computer storage media and communication media, including any media that facilitates the transfer of a computer program from one place to another. A storage medium may be any available medium that can be accessed by a computer. By way of example and not limitation, such computer-readable media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. Any connection is also properly referred to as a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwaves, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwaves are included in the definition of medium. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc. Disks typically reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of storage media.
[0121] The above description is merely a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present invention should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.
Claims
1. A method for measuring altitude, characterized in that: include: determining a first correction model based on output information of the first pressure sensor at different wind speeds and different wind directions; Acquiring a first actual measurement value of a first pressure sensor; Based on the first correction model, correcting the first actual measurement value and obtaining a corrected measurement value; Based on the corrected measurements, determine the altitude.
2. The method for measuring altitude according to claim 1, wherein: The output information of the first pressure sensor at different wind speeds and wind directions includes: There are multiple groups of first noise output values and multiple groups of first pressure output values, and the first noise output values correspond to the first pressure output values in one-to-one correspondence.
3. The method for measuring altitude according to claim 2, wherein: Determining the first correction model includes: Obtaining a second pressure output value of the first pressure sensor in a windless state; determining first pressure correction values of the plurality of first pressure sensors according to the second pressure output values and the plurality of first pressure output values; A first correction model is determined according to the plurality of sets of first pressure correction values, the plurality of sets of first noise output values, and the plurality of sets of first pressure output values.
4. The method for measuring altitude according to claim 1, wherein: The first actual measurement value includes: A first actual pressure output value and a first actual noise output value.
5. The method for measuring altitude according to claim 4, characterized in that: The correcting the first actual measurement value based on the first correction model and obtaining the corrected measurement value includes: determining a first pressure correction value based on the first correction model, the first actual pressure output value, and the first actual noise output value; A corrected measurement value is determined based on the first pressure correction value and the first actual pressure output value.
6. The method for measuring altitude according to claim 1, wherein: The correcting the first actual measurement value based on the first correction model and obtaining the corrected measurement value includes: Based on the first correction model, the first actual output value is corrected to obtain a first final pressure output value; determining a second correction model based on output information of the second pressure sensor at different wind speeds and different wind directions; obtaining a second actual measurement value of a second pressure sensor; Based on the second correction model, the second actual measurement value is corrected to obtain a second final pressure output value; A corrected measurement value is determined based on the first final pressure output value and the second final pressure output value.
7. The method for measuring altitude according to claim 1, wherein: Determining the altitude based on the corrected measurement value includes: According to the corrected measurement value, using the formula Calculate altitude; Where Altitude is the altitude, P is the corrected measurement value, and P0 is the standard atmospheric pressure.
8. A device for measuring altitude, characterized in that: include: an acquisition unit, comprising a first pressure sensor; The determining unit is configured to determine a first correction model, a correction measurement value, and an altitude.
9. An electronic device, characterized in that: include: a memory configured to store executable code; A processor is configured to read the executable code and run a program corresponding to the executable code to implement the method for measuring altitude according to any one of claims 1 to 7.
10. A computer storage medium, characterized in that The computer storage medium stores computer-readable instructions, which, when read by one or more processors, enable the one or more processors to execute the method for measuring altitude according to any one of claims 1 to 7.
Citation Information
Patent Citations
Barometric altimeter correction method in inertial navigation / barometric altimeter / GPS integrated navigation system
CN106840203A
Altitude estimator for a drone
CN106996768A
Method, device and UAV for detecting flight altitude
CN107438751A
Method for height measurement and compensation by barometer, and unmanned aerial vehicle
CN110770666A
Altitude acquisition method and system, code table and computer readable storage medium
CN115523896A