A method, device, storage medium and electronic device for geomagnetic navigation
By dynamically adjusting the sampling frequency during the movement of the carrier and characterizing changes in the geomagnetic field based on geomagnetic entropy, the problem of sampling in areas with severe geomagnetic field changes in geomagnetic navigation is solved, and the accuracy of the carrier position and navigation precision are improved.
Patent Information
- Application Number
- CN202411086731.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-08-08
AI Technical Summary
With existing geomagnetic navigation technology, when the geomagnetic field changes drastically in some areas, uniform sampling is difficult to effectively capture the detailed characteristics of the geomagnetic field, resulting in reduced accuracy of the carrier position.
The method of dynamically adjusting the sampling frequency is adopted. By sampling geomagnetic data according to a preset period during the movement of the carrier, the degree of change of the geomagnetic field is characterized according to the geomagnetic entropy, and the sampling frequency is adjusted to ensure that the position of the carrier is determined from the geomagnetic reference map at the preset threshold. .
It improves the accuracy of the carrier position, can effectively capture the detailed characteristics of the geomagnetic field, adapts to different geomagnetic field changes, and improves navigation accuracy and reliability.
Smart Images

Figure CN118603079B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device, storage medium and electronic device for geomagnetic navigation. Background Art
[0002] With the continuous development of science and technology, geomagnetic navigation technology has become more and more mature and has been used more and more widely. It can be applied to various scenarios such as aviation, aerospace, underwater, ground and underground.
[0003] At present, the geomagnetic data near the carrier is generally collected by uniform sampling, and then the geomagnetic data is compared with the geomagnetic reference map established in advance or generated in real time, and the geomagnetic matching algorithm is used to obtain the position of the carrier. However, the geomagnetic field in some areas changes dramatically, while the geomagnetic field in some areas changes slowly. It may be difficult to effectively capture the detailed characteristics of the geomagnetic field by collecting geomagnetic data through uniform sampling, thereby reducing the accuracy of the obtained carrier position. Therefore, how to perform geomagnetic navigation is a very important issue.
[0004] Based on this, this specification provides a method for geomagnetic navigation. Summary of the invention
[0005] This specification provides a method, device, storage medium and electronic device for geomagnetic navigation to partially solve the above-mentioned problems existing in the prior art.
[0006] This manual adopts the following technical solutions:
[0007] This specification provides a geomagnetic navigation method, which is applied to a movable carrier and includes:
[0008] During the movement of the carrier, sampling the geomagnetic data of the current position of the carrier according to a preset period;
[0009] Determine the geomagnetic entropy of the current period according to the geomagnetic data sampled in the current period, wherein the geomagnetic entropy is used to characterize the degree of change of the geomagnetic intensity of the geomagnetic field;
[0010] According to the geomagnetic entropy, adjusting the sampling frequency of the current cycle;
[0011] According to the adjusted sampling frequency, the geomagnetic data at the location of the carrier continues to be sampled according to the preset period until the number of periods reaches a preset threshold, and the position of the carrier is determined from a preset geomagnetic reference map based on the geomagnetic data sampled in all periods.
[0012] Optionally, determining the geomagnetic entropy of the current period according to the geomagnetic data sampled in the current period specifically includes:
[0013] Dividing the geomagnetic data sampled in the current cycle to obtain several data groups;
[0014] For each data group, determine the number of geomagnetic data in the data group, and determine the frequency of the data group based on the number;
[0015] The geomagnetic entropy of the current period is determined according to the frequencies corresponding to each data group.
[0016] Optionally, adjusting the sampling frequency of the current cycle according to the geomagnetic entropy specifically includes:
[0017] Obtaining the geomagnetic entropy of a previous period of the current period and using it as the first geomagnetic entropy;
[0018] determining a difference between the geomagnetic entropy and the first geomagnetic entropy;
[0019] When the difference is greater than a specified threshold, the sampling frequency of the current cycle is adjusted according to the geomagnetic entropy.
[0020] Optionally, adjusting the sampling frequency of the current cycle according to the geomagnetic entropy specifically includes:
[0021] Determining a change factor according to the preset parameters and the difference;
[0022] The sampling frequency of the current cycle is adjusted according to the change factor and the difference.
[0023] Optionally, adjusting the sampling frequency of the current period according to the variation factor and the difference includes:
[0024] Determining the sampling frequency of the current cycle;
[0025] When the difference is greater than a first threshold, a first frequency is calculated according to the variation factor and the sampling frequency using a preset first formula, and the first frequency is used as the adjusted sampling frequency;
[0026] When the difference is less than a second threshold, a second frequency is calculated according to the variation factor and the sampling frequency using a preset second formula, and the second frequency is used as the adjusted sampling frequency.
[0027] Optionally, according to the adjusted sampling frequency, continuing to sample the geomagnetic data at the location of the carrier according to the preset period specifically includes:
[0028] Sampling the geomagnetic data at the location of the carrier according to the adjusted sampling frequency to obtain a preset amount of geomagnetic data;
[0029] The preset amount of geomagnetic data is used as geomagnetic data sampled in a cycle next to the current cycle.
[0030] Optionally, determining the position of the carrier from a preset geomagnetic reference map according to the geomagnetic data sampled in all cycles specifically includes:
[0031] According to the geomagnetic data sampled in all cycles, a preset geomagnetic matching algorithm is adopted to determine the position of the carrier from a preset geomagnetic reference map.
[0032] This specification provides a geomagnetic navigation device, which is applied to a movable carrier and includes:
[0033] A sampling module, used for sampling the geomagnetic data of the current position of the carrier according to a preset period during the movement of the carrier;
[0034] A determination module, used to determine the geomagnetic entropy of the current period according to the geomagnetic data sampled in the current period, wherein the geomagnetic entropy is used to characterize the degree of change of the geomagnetic intensity of the geomagnetic field;
[0035] An adjustment module, used for adjusting the sampling frequency of the current cycle according to the geomagnetic entropy;
[0036] The matching module is used to continue sampling the geomagnetic data of the position of the carrier according to the preset period according to the adjusted sampling frequency until the number of periods reaches a preset threshold, and determine the position of the carrier from a preset geomagnetic reference map based on the geomagnetic data sampled in all periods.
[0037] This specification provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned geomagnetic navigation method is implemented.
[0038] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned geomagnetic navigation method when executing the program.
[0039] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:
[0040] The geomagnetic navigation method provided in this specification samples the geomagnetic data of the current position of the carrier according to a preset period during the movement of the carrier. Then, the geomagnetic entropy of the current period is determined based on the geomagnetic data sampled in the current period. According to the geomagnetic entropy, the sampling frequency of the current period is adjusted. According to the adjusted sampling frequency, the geomagnetic data of the position of the carrier continues to be sampled according to the preset period until the number of periods reaches a preset threshold, and the position of the carrier is determined from a preset geomagnetic reference map based on the geomagnetic data sampled in all periods.
[0041] It can be seen from the above method that when the present application performs geomagnetic navigation, in the process of the movement of the carrier, the geomagnetic data of the current position of the carrier is sampled according to a preset period. Then, based on the geomagnetic data sampled in the current period, the geomagnetic entropy of the current period is determined. According to the geomagnetic entropy, the sampling frequency of the current period is adjusted. According to the adjusted sampling frequency, the geomagnetic data of the position of the carrier continues to be sampled according to the preset period until the number of periods reaches a preset threshold value, and the position of the carrier is determined from a preset geomagnetic reference map based on the geomagnetic data sampled in all periods. The sampling frequency is dynamically adjusted by the geomagnetic entropy used to characterize the degree of change of the geomagnetic intensity of the geomagnetic magnetic field, so that the sampled geomagnetic data can effectively capture the detailed characteristics of the geomagnetic field, thereby improving the accuracy of the obtained position of the carrier. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings:
[0043] Figure 1 A schematic diagram of a flow chart of a geomagnetic navigation method provided in this specification;
[0044] Figure 2 A schematic diagram of carrier movement provided in this specification;
[0045] Figure 3 Provide a trend change chart for this manual;
[0046] Figure 4 A schematic diagram of a process for adjusting sampling density based on changes in geomagnetic intensity provided in this specification;
[0047] Figure 5 A schematic diagram of the structure of a geomagnetic navigation device provided in this specification;
[0048] Figure 6 A method corresponding to the Figure 1 Schematic diagram of the structure of an electronic device. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.
[0050] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.
[0051] Figure 1 A schematic diagram of a method for geomagnetic navigation provided in this specification. Figure 1 The method shown is applied to a movable carrier, and the method specifically comprises the following steps:
[0052] S100: During the movement of the carrier, the geomagnetic data of the current position of the carrier is sampled according to a preset period.
[0053] In this specification, the device for geomagnetic navigation can sample the geomagnetic data of the current position of the carrier according to a preset period during the movement of the carrier. Among them, the device for geomagnetic navigation can be a server, controller or system of the carrier, or an electronic device such as a desktop computer or a laptop computer. Of course, the device for geomagnetic navigation can also be any other device that communicates with the carrier, and the other device is used to locate the position of the carrier. For the convenience of description, the method of geomagnetic navigation provided in this specification is described below with the carrier as the execution subject. The above-mentioned movable carrier can be any movable carrier such as an airplane, an aircraft, a ship, a vehicle, and a submarine. The specific type of the movable carrier is not specifically limited in this specification. When the carrier moves, it can move along a preset trajectory, and the preset trajectory is pre-set.
[0054] In this specification, when the carrier is a moving object in a two-dimensional space such as a vehicle, the trajectory of the carrier is a two-dimensional trajectory. When the carrier is a moving object in a three-dimensional space such as an airplane or a submarine, the trajectory of the carrier is a three-dimensional trajectory. However, geomagnetic navigation is generally based on geomagnetic data, by comparing with a geomagnetic reference map established in advance or generated in real time, and using a geomagnetic matching algorithm to obtain the position of the carrier in a two-dimensional space (i.e., a horizontal plane), which can be represented by longitude and latitude, and the height of the carrier can be determined by other instruments, which can be a barometric altimeter. Of course, the other instrument can also be any other existing equipment, which is not specifically limited in this specification. Based on this, the above trajectory can be a two-dimensional trajectory of the carrier in a horizontal plane at a certain height.
[0055] In this specification, during the movement of the carrier, the carrier can sample the geomagnetic data of the current position of the carrier according to a preset period. Among them, the carrier samples the geomagnetic data of the position passed by the carrier during the movement according to the preset period, that is, the carrier samples the geomagnetic data of the position passed within the period, and the current position of the carrier is the position that the carrier has passed within the current period. The preset period is pre-set, and the preset period can be a preset number of geomagnetic data, that is, the carrier samples a preset number of geomagnetic data as a period, and the preset number is pre-set, and the preset number can be N, which can be a preset natural number, and N can be 20. Of course, N can also be any other preset value, which is not specifically limited in this specification. By sampling a fixed N geomagnetic data as a period, the calculation cost is relatively low and easy to implement. At the same time, the carrier has a fast response speed, which can quickly reflect the changes in the geomagnetic intensity of the geomagnetic field, and facilitate timely adjustment of the sampling frequency.
[0056] The carrier samples N geomagnetic data per cycle, that is, the geomagnetic data corresponding to N position points are sampled per cycle, and the N position points are the positions passed by the carrier within the cycle. As for the time of sampling N geomagnetic data per cycle, it can be the same or different, that is, the time corresponding to each cycle can be the same or different. The time corresponding to each cycle can be determined by the sampling frequency. The higher the sampling frequency, the shorter the time for sampling N geomagnetic data, and the shorter the time corresponding to the corresponding cycle. Conversely, the lower the sampling frequency, the longer the time for sampling N geomagnetic data, and the longer the time corresponding to the corresponding cycle.
[0057] In addition, since the carrier samples the geomagnetic data of the location while moving, each geomagnetic data sampled by the carrier corresponds to a different location, that is, each geomagnetic data sampled by the carrier corresponds to a different location point on the trajectory. Therefore, the geomagnetic data sampled in each cycle can be geomagnetic data of different locations. The above geomagnetic data can be geomagnetic intensity, that is, the geomagnetic intensity of the location point on the trajectory.
[0058] Based on this, according to the preset period, the carrier samples the geomagnetic data of the current position of the carrier while moving, and when the carrier samples a preset number of geomagnetic data, that is, when the carrier samples the geomagnetic data of a preset number of position points, the sampled preset number of geomagnetic data is used as the geomagnetic data sampled in the current period. In addition, the geomagnetic data sampled in the current period is the geomagnetic data of the position points on the trajectory that the carrier has traveled. For example, Figure 2 As shown, Figure 2 A schematic diagram of carrier movement provided in this specification. In the process of moving the carrier from point A to point B, the carrier moves along track P, and track P is the track from point A to point B. Assume that the preset number is 5. In the process of moving the carrier from point A to point B, the geomagnetic data is sampled according to the preset period. Assuming that the carrier travels from point C to point G in the current period, the geomagnetic data sampled in the current period is the geomagnetic data corresponding to points C to G. The track corresponding to point C to point G (i.e., track O) is the track that the carrier has traveled in track S. At this time, the carrier is at point G.
[0059] S102: Determine the geomagnetic entropy of the current period according to the geomagnetic data sampled in the current period, where the geomagnetic entropy is used to characterize the degree of change of the geomagnetic intensity of the geomagnetic field.
[0060] In this specification, the carrier can determine the geomagnetic entropy of the current cycle according to the geomagnetic data sampled in the current cycle. The geomagnetic entropy is used to characterize the degree of change of the geomagnetic intensity of the geomagnetic field. In the geomagnetic field, the geomagnetic intensity at different positions can be the same or different, and the geomagnetic intensity changes with the position, and the geomagnetic intensity at some positions is high, while the geomagnetic intensity at some positions is low. In the process of movement, the difference between the geomagnetic intensity of each position point passed by the carrier may be very large, that is, as the carrier moves, the geomagnetic intensity of each position point changes more violently. However, the difference between the geomagnetic intensity of each position point passed by the carrier may not be large, that is, as the carrier moves, the geomagnetic intensity of each position point changes more slowly. Therefore, in order to effectively capture the detailed features of the geomagnetic field, the carrier can determine the geomagnetic entropy of the current cycle according to the geomagnetic data sampled in the current cycle (i.e., the geomagnetic data of the N position points sampled), and the geomagnetic entropy is used to characterize the degree of change of the geomagnetic intensity of the geomagnetic field with the displacement. The larger the geomagnetic entropy, the more violent the change of the geomagnetic intensity with the displacement. Conversely, the smaller the geomagnetic entropy, the more gradually the geomagnetic intensity changes with displacement.
[0061] Specifically, the carrier can divide the geomagnetic data sampled in the current period to obtain several data groups. For each data group, the number of geomagnetic data in the data group is determined, and based on the number, the frequency of the data group is determined. According to the frequencies corresponding to each data group, the geomagnetic entropy of the current period is determined. Among them, the length of the value range of the geomagnetic intensity of each data group is equal. The number of data groups divided by the carrier can be a preset value, that is, K, and K is a preset value. K can be 3. Of course, K can also be any other preset value, which is not specifically limited in this specification.
[0062] In this specification, when the geomagnetic data sampled in the current cycle are divided to obtain several data groups, the carrier can determine the maximum geomagnetic intensity and the minimum geomagnetic intensity according to the geomagnetic data sampled in the current cycle. According to the maximum geomagnetic intensity and the minimum geomagnetic intensity, the value range of the geomagnetic intensity of several data groups is determined. According to the value range corresponding to each data group, the geomagnetic data sampled in the current cycle is divided. Among them, when the value range of the geomagnetic intensity of several data groups is determined according to the maximum geomagnetic intensity and the minimum geomagnetic intensity, the carrier can determine the difference between the maximum geomagnetic intensity and the minimum geomagnetic intensity, and then determine the ratio of the difference to the preset value, and use it as the length of each data group. According to the length, the value range of the geomagnetic intensity of each data group is determined. For example, the maximum geomagnetic intensity is 40, the minimum geomagnetic intensity is 10, and the preset value is 3, then the difference between the maximum geomagnetic intensity and the minimum geomagnetic intensity is 30, and the ratio of the difference to the preset value is 10, that is, the length is 10. The carrier can determine the value range of the geomagnetic intensity of each data group according to the length, that is, the value range of data group 1 can be [10, 20], the value range of data group 2 can be (20, 30], and the value range of data group 3 can be (30, 40]
[0063] When the geomagnetic data sampled in the current period are divided according to the value range corresponding to each data group, the carrier can determine the value range corresponding to the data group for each data group, and determine the geomagnetic data within the value range corresponding to the data group based on the geomagnetic data sampled in the current period, and divide the determined geomagnetic data into the data group.
[0064] In this specification, when determining the frequency of the data set according to the quantity, the carrier may determine the quantity of all geomagnetic data in the data set and use it as the total quantity, that is, Then, the carrier can determine the ratio of the total number to the preset number and use it as the frequency of the data set, that is, , the frequency can be obtained by express.
[0065] In this specification, when determining the geomagnetic entropy of the current period according to the frequencies corresponding to each data group, the carrier can use the following formula for calculation:
[0066]
[0067] in, It is a logarithmic function, which can be preset. The logarithmic function can be a logarithm with a natural number as the base, or a logarithm with 10 as the base, which is not specifically limited in this specification. is the geomagnetic entropy, is the preset value.
[0068] S104: adjusting the sampling frequency of the current cycle according to the geomagnetic entropy.
[0069] In this specification, the carrier can adjust the sampling frequency of the current cycle according to the geomagnetic entropy. Among them, the sampling frequency of the current cycle is used to sample the geomagnetic data at the location of the carrier in the current cycle, and the sampling frequency determines the time corresponding to the current cycle. If the current cycle is the first cycle, that is, there is no previous cycle in the current cycle, then the sampling frequency of the current cycle is preset, that is, the initial frequency, and the carrier can sample the geomagnetic data at the current location of the carrier while moving according to the initial frequency and the preset cycle to obtain the geomagnetic data sampled in the current cycle. If the current cycle is not the first cycle, that is, there is a previous cycle in the current cycle, then the sampling frequency of the current cycle is obtained by adjusting the sampling frequency of the previous cycle according to the geomagnetic entropy of the previous cycle. Therefore, the carrier adjusts the sampling frequency of the current cycle according to the geomagnetic entropy of the current cycle to obtain the adjusted sampling frequency, and the adjusted sampling frequency is the sampling frequency of the next cycle of the current cycle.
[0070] Specifically, the carrier can obtain the geomagnetic entropy of the previous cycle of the current cycle and use it as the first geomagnetic entropy. Then determine the difference between the geomagnetic entropy and the first geomagnetic entropy, and determine the change factor according to the preset parameters and the difference. According to the change factor and the difference, adjust the sampling frequency of the current cycle.
[0071] Wherein, when determining the change factor according to the preset parameters and the difference, the carrier can be calculated using the following formula:
[0072]
[0073]
[0074] in, is the difference, is the geomagnetic entropy of the current period, is the first geomagnetic entropy. and is the preset parameter. and is a parameter that controls the growth rate and adjusts the sensitivity. is the variation factor, which can be When it is large, the adjustment range increases rapidly, and When smaller, keep the adjustment small.
[0075] When the sampling frequency of the current period is adjusted according to the change factor and the difference, the carrier can determine the sampling frequency of the current period, and when the difference is greater than the first threshold, the carrier can calculate the first frequency according to the change factor and the sampling frequency using a preset first formula, and use the first frequency as the adjusted sampling frequency. The first threshold is a preset value, which can be Specifically, the carrier can be calculated using the following first formula:
[0076]
[0077] in, is the first frequency. is the sampling frequency of the current cycle.
[0078] In addition, when the difference is less than the second threshold, the carrier can use a preset second formula to calculate the second frequency according to the change factor and the sampling frequency, and use it as the adjusted sampling frequency. Wherein the second threshold is a preset value, and the second threshold is the opposite of the first threshold, then the second threshold can be Specifically, the carrier can be calculated using the following second formula:
[0079]
[0080] in, is the second frequency. is the sampling frequency of the current cycle.
[0081] S106: According to the adjusted sampling frequency, continue to sample the geomagnetic data of the position of the carrier according to the preset period until the number of periods reaches a preset threshold, and determine the position of the carrier from a preset geomagnetic reference map based on the geomagnetic data sampled in all periods.
[0082] In this specification, the carrier can continue to sample the geomagnetic data of the location of the carrier according to the preset period according to the adjusted sampling frequency, until the number of periods reaches the preset threshold, and determine the position of the carrier from the preset geomagnetic reference map according to the geomagnetic data sampled in all periods. Among them, the preset threshold is a preset value, and the preset threshold can be 30. Of course, the preset threshold can also be any other preset value, which is not specifically limited in this specification. The geomagnetic reference map is pre-stored, and the geomagnetic reference map can be obtained in advance based on any existing method, or can be manually uploaded, which is not specifically limited in this specification. The geomagnetic reference map includes the correspondence between geomagnetic data and spatial position, that is, the carrier can determine the position of the carrier based on the geomagnetic reference map according to the geomagnetic data. The position of the above-mentioned carrier is the longitude and latitude of the carrier in two-dimensional space, so the position of the carrier is composed of several points in two-dimensional space, and each point has corresponding longitude and latitude.
[0083] In this specification, the carrier can continue to sample the geomagnetic data of the location of the carrier according to the preset period based on the adjusted sampling frequency. The specific process is similar to the process described in step S100 above, and will not be repeated here. When the number of cycles reaches the preset threshold, it means that the carrier has sampled enough geomagnetic data at this time. The carrier can determine the position of the carrier from the preset geomagnetic reference map based on the geomagnetic data sampled in all cycles. Among them, the number of cycles mentioned above is the number of cycles that the carrier has sampled, and all cycles are all cycles that the carrier has sampled.
[0084] In this specification, when the geomagnetic data at the location of the carrier is sampled according to the preset period according to the adjusted sampling frequency, the carrier can sample the geomagnetic data at the location of the carrier according to the adjusted sampling frequency to obtain a preset amount of geomagnetic data. The preset amount of geomagnetic data is used as the geomagnetic data sampled in the next cycle of the current cycle. Subsequently, the carrier can determine whether the number of cycles reaches a preset threshold. If so, the position of the carrier is determined from a preset geomagnetic reference map based on the geomagnetic data sampled in all cycles. If not, continue to execute according to the above steps S102~S106.
[0085] In this specification, when the position of the carrier is determined from a preset geomagnetic reference map according to the geomagnetic data sampled in all cycles, the carrier can determine the position of the carrier from a preset geomagnetic reference map according to the geomagnetic data sampled in all cycles, using a preset geomagnetic matching algorithm. Wherein, the geomagnetic matching algorithm is pre-set, and the geomagnetic matching algorithm can be an Iterative Closest Contour Point (ICCP) algorithm based on the magnetic field. Of course, the geomagnetic matching algorithm can also be any other existing algorithm, which is not specifically limited in this specification. Specifically, the carrier can determine the initial path determined by the inertial navigation system, and then based on the initial path and the geomagnetic data sampled in all cycles, use a preset geomagnetic matching algorithm to determine the position of the carrier from a preset geomagnetic reference map. Wherein, the inertial navigation system is any existing system, the initial path is a path generated by the inertial navigation system, and the initial path includes a number of points in two-dimensional space, each point has a corresponding longitude and latitude.
[0086] In addition, the carrier can also input the geomagnetic data and geomagnetic reference map sampled in all cycles into a pre-trained matching model to determine the position of the carrier. The matching model is pre-trained based on path samples and position annotations.
[0087] It can be seen from the above method that when the present application performs geomagnetic navigation, in the process of the movement of the carrier, the geomagnetic data of the current position of the carrier is sampled according to a preset period. Then, based on the geomagnetic data sampled in the current period, the geomagnetic entropy of the current period is determined. According to the geomagnetic entropy, the sampling frequency of the current period is adjusted. According to the adjusted sampling frequency, the geomagnetic data of the position of the carrier continues to be sampled according to the preset period until the number of periods reaches a preset threshold value, and the position of the carrier is determined from a preset geomagnetic reference map based on the geomagnetic data sampled in all periods. The sampling frequency is dynamically adjusted by the geomagnetic entropy used to characterize the degree of change of the geomagnetic intensity of the geomagnetic magnetic field, so that the sampled geomagnetic data can effectively capture the detailed characteristics of the geomagnetic field, thereby improving the accuracy of the obtained position of the carrier.
[0088] In this manual, when When , it means that the change of the geomagnetic intensity of the geomagnetic field of the track traveled by the carrier in the current cycle is relatively small. At this time, the carrier can save computing and storage resources by reducing the sampling frequency to reduce the sampling density, and it will not significantly affect the capture of geomagnetic information and the accuracy of subsequent geomagnetic navigation. On the contrary, when When , it means that the change of geomagnetic intensity of the regular geomagnetic field that the carrier has traveled through in the current cycle is more significant. At this time, the carrier can increase the sampling frequency to increase the sampling density, so that more information on the change of the geomagnetic field can be captured, so as to improve the accuracy and reliability of geomagnetic navigation. In addition, in order to avoid frequent and meaningless adjustments to the sampling frequency, the carrier can When the sampling frequency is adjusted, the is a specified threshold value, which is preset and is the same as the first threshold value.
[0089] Based on this, when the sampling frequency of the current cycle is adjusted according to the geomagnetic entropy, the carrier can obtain the geomagnetic entropy of the previous cycle of the current cycle and use it as the first geomagnetic entropy. Determine the difference between the geomagnetic entropy and the first geomagnetic entropy. Then, when the difference is greater than the specified threshold, the sampling frequency of the current cycle is adjusted according to the geomagnetic entropy. Among them, the difference is the absolute value of the difference between the geomagnetic entropy of the current cycle and the first geomagnetic entropy. In addition, when the difference is not greater than the specified threshold, the carrier can directly use the sampling frequency of the current cycle as the adjusted sampling frequency.
[0090] When the sampling frequency of the current cycle is adjusted according to the geomagnetic entropy, the carrier can determine the change factor according to the preset parameters and the difference, and adjust the sampling frequency of the current cycle according to the change factor and the difference.
[0091] When the sampling frequency of the current cycle is adjusted according to the change factor and the difference, the carrier can determine the sampling frequency of the current cycle. When the difference is greater than the first threshold, the first frequency is calculated according to the change factor and the sampling frequency using the preset first formula, and the first frequency is used as the adjusted sampling frequency. When the difference is less than the second threshold, the second frequency is calculated according to the change factor and the sampling frequency using the preset second formula, and the second frequency is used as the adjusted sampling frequency. Specifically, the carrier can use the following formula for calculation:
[0092]
[0093] in, is the adjusted sampling frequency, is the sampling frequency of the current cycle. " is the first formula, the above " " is the second formula.
[0094] In this specification, after obtaining the position of the carrier, the position of the carrier can be further determined according to the above steps S100 to S108 to ensure that the position of the carrier can be determined at any time during the movement of the carrier, thereby ensuring the safety of the carrier and facilitating the subsequent adjustment of the carrier's running trajectory.
[0095] In this manual, Follow The changing trend of Figure 3 As shown, Figure 3 A trend change diagram is provided in this manual. Figure 3 So =1.0, =0.5, =0.5 and =1 as an example. Figure 3 The X-axis in the figure shows , the Y axis represents ,Right now Figure 3 S_new in.
[0096] In this manual, The value range depends on the geomagnetic entropy When all geomagnetic data are concentrated in a range of values, that is, when all geomagnetic data are in one data group, the geomagnetic entropy The minimum geomagnetic entropy It can be 0. However, when the geomagnetic data are evenly distributed in all data sets, the geomagnetic entropy The maximum geomagnetic entropy The following formula can be used for calculation:
[0097]
[0098] Based on this, The value range is .
[0099] In this specification, the above-mentioned vector can be adjusted , , , , value, thereby adjusting However, the sampling frequency is limited by the physical upper and lower limits of the carrier, that is, the sampling frequency must be within the range that the carrier can achieve, so as to ensure that the carrier can perform sampling. The value range of is within the physical sampling frequency range of the carrier. Since the geomagnetic data is generally sampled by a sensor mounted on the carrier, the physical sampling frequency range can be a parameter of the sensor mounted on the carrier.
[0100] In this manual, the above (i.e. initial frequency), , , , The values of N can be adjusted, that is, after obtaining the position of the carrier, the position of the carrier can be determined according to the above steps S100 to S108, but at this time , , , , , N may be different from the value used to determine the position of the carrier last time. Specifically, the carrier may determine the computing power usage and the remaining resources in the process of obtaining the position of the carrier last time, and dynamically adjust the above (i.e. initial frequency), , , , The less computing power is used, the more resources are left. and N are increased, thereby increasing the computational cost. The vector can also Increase the sampling frequency of the carrier. Reduce, thereby increasing the number of times the sampling frequency can be adjusted. In addition, the carrier can also and Increase the sampling frequency to increase the growth rate and sensitivity.
[0101] However, when more computing power is used and less resources are left, the carrier can and N are reduced, thereby reducing the computational cost. The carrier can be adjusted to reduce the sampling frequency of the carrier. Increase, thereby reducing the number of times the sampling frequency is adjusted. In addition, the carrier can also and Reduce the sampling frequency to reduce the growth rate and sensitivity.
[0102] In addition, the carrier can also adjust the above-mentioned position according to the accuracy of the position in the above-mentioned step S108. (i.e. initial frequency), , , When the accuracy of the position determined in step S108 is low, it means that the error between the obtained position and the real position is large, and the carrier needs to increase the sampling frequency to obtain more geomagnetic data to improve the accuracy of the subsequent position. You can also increase You can also adjust and Increase.
[0103] In this specification, in order to effectively capture the detailed features of the geomagnetic field, when the change of the geomagnetic intensity of the geomagnetic field is small, the sampling frequency can be reduced, thereby reducing the sampling density. When the change of the geomagnetic intensity of the geomagnetic field is significant, the sampling frequency can be increased, thereby increasing the sampling density. Specifically, Figure 4 As shown, Figure 4 This is a schematic diagram of a process for adjusting the sampling density based on the change of geomagnetic intensity provided in this specification. Figure 4 The X-axis and Y-axis in represent the moving length in the horizontal direction and the moving length in the vertical direction, respectively, and track a is the moving track of the carrier. Figure 4 The "arcs" in the figure are contour lines of geomagnetic intensity. Figure 4 The "solid black circle" in the figure is the location point where the carrier samples the geomagnetic data in the geomagnetic field. Taking regions A and B as examples, since the contour lines in region A are dense, indicating that the geomagnetic intensity changes dramatically, the sampling frequency is high and the sampling density is large, so the sampling points in region A are dense and numerous. However, since the contour lines in region B are sparse, indicating that the geomagnetic intensity changes slowly, the sampling frequency is low and the sampling density is small, so the sampling points in region B are sparse and few.
[0104] In this specification, under the premise that the computing resources on the carrier are fixed, the amount of geomagnetic data that the carrier can process per unit time is a fixed value. By adjusting the sampling frequency in real time, it is intended to balance the contradiction between the limitation of computing resources and the demand for geomagnetic navigation accuracy. Specifically, when the change of the geomagnetic intensity of the geomagnetic field is small, the sampling frequency is reduced, thereby reducing the sampling density to save computing resources, and when the change of the geomagnetic intensity of the geomagnetic field is significant, the sampling frequency is increased, thereby increasing the sampling density to ensure that sufficient geomagnetic information is captured, thereby improving the accuracy of geomagnetic navigation, which not only optimizes the allocation of limited computing resources, but also enhances the adaptability and accuracy of geomagnetic navigation by refining the process of adjusting the sampling frequency.
[0105] The above are one or more implementation methods of this specification. Based on the same idea, this specification also provides a corresponding geomagnetic navigation device, such as Figure 5 shown.
[0106] Figure 5 A schematic diagram of a geomagnetic navigation device provided in this specification includes:
[0107] The sampling module 200 is used to sample the geomagnetic data of the current position of the carrier according to a preset period during the movement of the carrier;
[0108] A determination module 202, configured to determine the geomagnetic entropy of the current period according to the geomagnetic data sampled in the current period, wherein the geomagnetic entropy is used to characterize the degree of change of the geomagnetic intensity of the geomagnetic field;
[0109] An adjustment module 204, configured to adjust the sampling frequency of the current cycle according to the geomagnetic entropy;
[0110] The matching module 206 is used to continue sampling the geomagnetic data of the location of the carrier according to the preset period according to the adjusted sampling frequency until the number of periods reaches a preset threshold, and then determine the location of the carrier from a preset geomagnetic reference map based on the geomagnetic data sampled in all periods.
[0111] Optionally, the determination module 202 is specifically used to divide the geomagnetic data sampled in the current period to obtain several data groups; for each data group, determine the number of geomagnetic data in the data group, and determine the frequency of the data group based on the number; and determine the geomagnetic entropy of the current period based on the frequencies corresponding to each data group.
[0112] Optionally, the adjustment module 204 is specifically used to obtain the geomagnetic entropy of the previous cycle of the current cycle and use it as the first geomagnetic entropy; determine the difference between the geomagnetic entropy and the first geomagnetic entropy; when the difference is greater than a specified threshold, adjust the sampling frequency of the current cycle according to the geomagnetic entropy.
[0113] Optionally, the adjustment module 204 is specifically configured to determine a variation factor according to a preset parameter and the difference; and adjust the sampling frequency of the current period according to the variation factor and the difference.
[0114] Optionally, the adjustment module 204 is specifically used to determine the sampling frequency of the current cycle; when the difference is greater than a first threshold, a first frequency is calculated based on the change factor and the sampling frequency using a preset first formula, and the first frequency is used as the adjusted sampling frequency; when the difference is less than a second threshold, a second frequency is calculated based on the change factor and the sampling frequency using a preset second formula, and the second frequency is used as the adjusted sampling frequency.
[0115] Optionally, the matching module 206 is specifically used to sample the geomagnetic data at the location of the carrier according to the adjusted sampling frequency to obtain a preset amount of geomagnetic data; and use the preset amount of geomagnetic data as the geomagnetic data sampled in the next cycle of the current cycle.
[0116] Optionally, the matching module 206 is specifically configured to determine the position of the carrier from a preset geomagnetic reference map using a preset geomagnetic matching algorithm according to the geomagnetic data sampled in all cycles.
[0117] This specification also provides a computer-readable storage medium, which stores a computer program, which can be used to execute the above Figure 1 A geomagnetic navigation method is provided.
[0118] This manual also provides Figure 6 The one shown corresponds to Figure 1 A schematic diagram of the electronic device. Figure 6 As shown, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 The method of geomagnetic navigation.
[0119] Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the executor of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0120] In the 1990s, it was very clear whether the improvement of a technology was hardware improvement (for example, improvement of the circuit structure of diodes, transistors, switches, etc.) or software improvement (improvement of the method flow). However, with the development of technology, many improvements of the method flow today can be regarded as direct improvements of the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented with hardware entity modules. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask chip manufacturers to design and make dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one kind of HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0121] The controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, and the memory controller may also be implemented as part of the control logic of the memory. It is also known to those skilled in the art that, in addition to implementing the controller in a purely computer-readable program code manner, the controller may be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, such a controller may be considered as a hardware component, and the devices for implementing various functions included therein may also be considered as structures within the hardware component. Or even, the devices for implementing various functions may be considered as both software modules for implementing the method and structures within the hardware component.
[0122] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0123] For the convenience of description, the above device is described by dividing it into various units according to its functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0124] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may take 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.) containing computer-usable program code.
[0125] This specification 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 this specification. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks 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 produce 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.
[0126] 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 including 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.
[0127] 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.
[0128] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0129] The memory may include non-permanent storage 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.
[0130] 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 tape 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.
[0131] 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.
[0132] It should be understood by those skilled in the art that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take 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.) containing computer-usable program code.
[0133] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0134] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0135] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.
Claims
1. A geomagnetic navigation method, characterized in that: The method is applied to a movable carrier, and the method comprises: During the movement of the carrier, sampling the geomagnetic data of the current position of the carrier according to a preset period; Determine the geomagnetic entropy of the current period according to the geomagnetic data sampled in the current period, wherein the geomagnetic entropy is used to characterize the degree of change of the geomagnetic intensity of the geomagnetic field; According to the geomagnetic entropy, adjusting the sampling frequency of the current cycle; According to the adjusted sampling frequency, continue to sample the geomagnetic data at the location of the carrier according to the preset period until the number of periods reaches a preset threshold, and determine the location of the carrier from a preset geomagnetic reference map based on the geomagnetic data sampled in all periods; According to the geomagnetic entropy, the sampling frequency of the current cycle is adjusted, specifically including: Obtaining the geomagnetic entropy of a previous period of the current period and using it as the first geomagnetic entropy; determining a difference between the geomagnetic entropy and the first geomagnetic entropy; When the difference is greater than a specified threshold, determining a change factor according to preset parameters and the difference; Determining the sampling frequency of the current cycle; When the difference is greater than a first threshold, a first frequency is calculated according to the variation factor and the sampling frequency using a preset first formula, and the first frequency is used as the adjusted sampling frequency; When the difference is less than a second threshold, a second frequency is calculated according to the variation factor and the sampling frequency using a preset second formula, and the second frequency is used as the adjusted sampling frequency; The method further comprises: When the difference is not greater than the specified threshold, the sampling frequency of the current cycle is used as the adjusted sampling frequency.
2. The method according to claim 1, characterized in that Determining the geomagnetic entropy of the current period according to the geomagnetic data sampled in the current period specifically includes: Dividing the geomagnetic data sampled in the current cycle to obtain several data groups; For each data group, determine the number of geomagnetic data in the data group, and determine the frequency of the data group based on the number; The geomagnetic entropy of the current period is determined according to the frequencies corresponding to each data group.
3. The method according to claim 1, characterized in that According to the adjusted sampling frequency, the geomagnetic data at the location of the carrier is continuously sampled according to the preset period, specifically including: Sampling the geomagnetic data at the location of the carrier according to the adjusted sampling frequency to obtain a preset amount of geomagnetic data; The preset amount of geomagnetic data is used as geomagnetic data sampled in a cycle next to the current cycle.
4. The method according to claim 1, characterized in that According to the geomagnetic data sampled in all cycles, the position of the carrier is determined from a preset geomagnetic reference map, specifically including: According to the geomagnetic data sampled in all cycles, a preset geomagnetic matching algorithm is adopted to determine the position of the carrier from a preset geomagnetic reference map.
5. A geomagnetic navigation device, characterized in that: The device is applied to a movable carrier, and comprises: A sampling module, used for sampling the geomagnetic data of the current position of the carrier according to a preset period during the movement of the carrier; A determination module, used to determine the geomagnetic entropy of the current period according to the geomagnetic data sampled in the current period, wherein the geomagnetic entropy is used to characterize the degree of change of the geomagnetic intensity of the geomagnetic field; An adjustment module, used for adjusting the sampling frequency of the current cycle according to the geomagnetic entropy; A matching module, configured to continue sampling the geomagnetic data at the location of the carrier according to the preset period according to the adjusted sampling frequency until the number of periods reaches a preset threshold, and determine the location of the carrier from a preset geomagnetic reference map according to the geomagnetic data sampled in all periods; The adjustment module is specifically used to obtain the geomagnetic entropy of the previous cycle of the current cycle and use it as the first geomagnetic entropy; determine the difference between the geomagnetic entropy and the first geomagnetic entropy; when the difference is greater than a specified threshold, determine the change factor according to preset parameters and the difference; determine the sampling frequency of the current cycle; when the difference is greater than the first threshold, calculate the first frequency according to the change factor and the sampling frequency using a preset first formula, and use it as the adjusted sampling frequency; when the difference is less than a second threshold, calculate the second frequency according to the change factor and the sampling frequency using a preset second formula, and use it as the adjusted sampling frequency; The adjustment module is further configured to, when the difference is not greater than the specified threshold, use the sampling frequency of the current cycle as the adjusted sampling frequency.
6. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of claims 1 to 4 is implemented.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method described in any one of claims 1 to 4 is implemented.
