Altitude data monitoring and display method, device, equipment and storage medium
By low-pass filtering and optimization processing of the altitude data collected by the vehicle GPS module, the problem of large accuracy and error in the vehicle GPS monitoring altitude data is solved, the accuracy and stability of the altitude data are improved, and the accuracy and accuracy of the altitude information are ensured. Real-time update.
Patent Information
- Application Number
- CN202010435901.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-21
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2040-05-21
AI Technical Summary
The prior art has problems of poor accuracy and large errors when monitoring altitude data by vehicle GPS, resulting in poor accuracy of the average value and inability to accurately reflect the real altitude information of the vehicle.
By obtaining the altitude data in the data packet collected by the on-board GPS module, low-pass filtering is performed, appropriate filtering factors are selected based on the accuracy information, and altitude correction values are optimized and judged, and the altitude value on the status bar is updated to reduce the data limitation. Stability and jump.
It effectively improves the accuracy and stability of the monitored altitude data, solves the problems of poor accuracy and large errors when monitoring altitude data by vehicle-mounted GPS, and ensures the accuracy and real-timeness of altitude information.
Smart Images

Figure CN113703007B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information technology, and in particular to an altitude data monitoring and display method, device, equipment and storage medium. Background Art
[0002] The vehicle-mounted GPS is mainly used for positioning, monitoring and navigation of the vehicle. In the prior art, after the vehicle-mounted GPS positioning is successful, multiple altitude values are obtained through continuous measurement, and the average value of the multiple altitude values is obtained as the altitude information output by the vehicle-mounted GPS module.
[0003] However, since the ground equipment is affected by many factors when receiving GPS signals, it is easy to have poor signal strength and large measurement errors. In some cases, the multiple altitude values measured continuously may fluctuate greatly. If the average of the multiple altitude values measured continuously is taken, the accuracy of the average value will still be poor; and the accuracy of the altitude value measured individually is not taken into account. If the accuracy of any altitude value measured is too low, the error of the average value will be greatly increased, and the vehicle's true altitude information cannot be reflected. Summary of the invention
[0004] The present invention provides an altitude data monitoring and display method, device, equipment and storage medium to solve the problems of poor accuracy and large error in the prior art when monitoring altitude data through a vehicle-mounted GPS.
[0005] An altitude data monitoring and display device, comprising:
[0006] Obtain data packets collected by the vehicle-mounted GPS module according to a preset sampling frequency;
[0007] Acquire altitude data from the data packet, and perform low-pass filtering on the altitude data to obtain an altitude correction value;
[0008] Optimizing the altitude correction value to obtain an altitude value to be updated;
[0009] The altitude value displayed on the status bar is updated according to the altitude value to be updated.
[0010] Optionally, acquiring the altitude data from the data packet and performing low-pass filtering on the altitude data to obtain the altitude correction value comprises:
[0011] Parsing the data packet to obtain the altitude value and its corresponding accuracy information;
[0012] comparing the accuracy information with a preset accuracy threshold;
[0013] When the accuracy information is less than the preset accuracy threshold, low-pass filtering is performed on the altitude value using a first filtering factor;
[0014] When the accuracy information is greater than the preset accuracy threshold, a second filter factor is used to perform low-pass filtering on the altitude value;
[0015] The first filter factor is greater than the second filter factor.
[0016] Optionally, the optimizing the altitude correction value to obtain the altitude value to be updated includes:
[0017] For each altitude correction value, calculating a first deviation of the altitude correction value compared to a previous altitude correction value, and comparing the first deviation with a first deviation threshold;
[0018] If the first deviations of a plurality of consecutive altitude correction values are all smaller than the first deviation threshold, the last altitude correction value among the plurality of altitude correction values is used as the altitude value to be updated.
[0019] Optionally, updating the altitude value displayed on the status bar according to the altitude value to be updated includes:
[0020] Get the current altitude value displayed on the status bar;
[0021] Calculating a second deviation between the altitude value to be updated and the current altitude value;
[0022] comparing the second deviation with a second deviation threshold;
[0023] If the second deviation is greater than the second deviation threshold, the current altitude value displayed on the status bar is updated to the altitude value to be updated.
[0024] Optionally, updating the altitude value displayed on the status bar according to the altitude value to be updated further includes:
[0025] When the second deviation is less than or equal to the second deviation threshold, the current altitude value displayed on the status bar is maintained.
[0026] An altitude data monitoring and display device, comprising:
[0027] An acquisition module is used to acquire data packets collected by the vehicle-mounted GPS module according to a preset sampling frequency;
[0028] A preprocessing module, used for acquiring altitude data from the data packet, and performing low-pass filtering on the altitude data to obtain an altitude correction value;
[0029] An optimization module, used for optimizing the altitude correction value to obtain an altitude value to be updated;
[0030] The updating display module is used to update the altitude value displayed on the status bar according to the altitude value to be updated.
[0031] Optionally, the preprocessing module includes:
[0032] A parsing unit, used for parsing the data packet to obtain the altitude value and its corresponding accuracy information;
[0033] An accuracy comparison unit, used to compare the accuracy information with a preset accuracy threshold;
[0034] A first filtering unit, configured to perform a low-pass filtering process on the altitude value by using a first filtering factor when the accuracy information is less than the preset accuracy threshold;
[0035] A second filtering unit, configured to perform low-pass filtering on the altitude value using a second filtering factor when the accuracy information is greater than the preset accuracy threshold;
[0036] The first filter factor is greater than the second filter factor.
[0037] Optionally, the optimization module includes:
[0038] a first calculation unit, configured to calculate, for each altitude correction value, a first deviation of the altitude correction value compared to a previous altitude correction value, and compare the first deviation with a first deviation threshold;
[0039] The first acquisition unit is configured to use a last altitude correction value among a plurality of consecutive altitude correction values as the altitude value to be updated if the first deviations of the plurality of consecutive altitude correction values are all less than the first deviation threshold.
[0040] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned altitude data monitoring and display method when executing the computer program.
[0041] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the altitude data monitoring and display method is implemented.
[0042] In an embodiment of the present invention, the vehicle-mounted GPS module collects data packets according to a preset sampling frequency, obtains altitude data from each data packet, and performs low-pass filtering on the altitude data to obtain an altitude correction value to filter out jump data; then, an optimization judgment is performed based on the altitude correction value to obtain an altitude value to be updated to reduce data instability; finally, the altitude value displayed on the status bar is updated according to the altitude value to be updated; thereby improving the method of calculating altitude values based on the vehicle-mounted GPS in the prior art, effectively improving the accuracy and stability of the monitored altitude data, and solving the problems of poor accuracy and large errors in the prior art when monitoring altitude data through the vehicle-mounted GPS. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0044] Figure 1 is a flow chart of an implementation method of an altitude data monitoring and display method provided by an embodiment of the present invention;
[0045] Figure 2 is a flowchart for implementing step S102 in the altitude data monitoring and display method provided by one embodiment of the present invention;
[0046] Figure 3 is a flowchart for implementing step S103 in the altitude data monitoring and display method provided by one embodiment of the present invention;
[0047] Figure 4 is a flowchart for implementing step S104 in the altitude data monitoring and display method provided by one embodiment of the present invention;
[0048] Figure 5 1 is a structural diagram of an altitude data monitoring and display device provided by an embodiment of the present invention.
[0049] Figure 6 is a schematic diagram of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0051] The following is a detailed description of the altitude data monitoring and display method provided by this embodiment. The prior art obtains multiple altitude values through continuous measurement, and calculates the average value of the multiple altitude values as the altitude information output by the vehicle-mounted GPS module. There are problems such as large fluctuations in altitude values, poor accuracy of the average value, and large errors. In view of this, the embodiment of the present invention performs low-pass filtering and optimization judgment on the collected altitude values to reduce the instability and jump of the data, effectively improves the accuracy and stability of the monitored altitude data, and solves the problems of poor accuracy and large errors in the prior art when monitoring altitude data through the vehicle-mounted GPS.
[0052] Figure 1 The altitude data monitoring and display method provided by the present invention is as follows: Figure 1 As shown, the method includes:
[0053] In step S101, data packets collected by the vehicle-mounted GPS module according to a preset sampling frequency are obtained.
[0054] Here, the vehicle-mounted GPS module collects data packets according to a preset sampling frequency to obtain standard format data specified by marine electronic equipment, namely NMEA data (National Marine Electronics Association). The preset sampling frequency is once per second.
[0055] In step S102, altitude data is obtained from the data packet, and low-pass filtering is performed on the altitude data to obtain an altitude correction value.
[0056] Optionally, the data packet includes the longitude information, latitude information, altitude data and accuracy information of the vehicle. Altitude data and accuracy information are obtained by parsing the data packet. Here, the altitude data refers to the altitude of the vehicle collected by the on-board GPS module. The accuracy information refers to the positioning accuracy of the data packet collected by the on-board GPS module, in meters. After the on-board GPS module successfully locates, if the signal-to-noise ratio of the altitude data collected by the GPS is relatively high, the more satellites are searched, the smaller the error of the altitude data collected this time, and the higher the positioning accuracy; otherwise, if the signal-to-noise ratio of the altitude data collected by the GPS is relatively low, the fewer satellites are searched, the larger the error of the altitude data collected this time, and the lower the positioning accuracy. In view of this, this embodiment performs low-pass filtering on the altitude data according to the positioning accuracy of the altitude data sampled each time to ensure the stability of the poster data. Optionally, such as Figure 2 As shown, the step S102 further includes:
[0057] In step S201, the data packet is parsed to obtain the altitude value and its corresponding accuracy information.
[0058] The GPS samples once per second to obtain a data packet, and by parsing the data packet, the altitude value sampled per second and its corresponding accuracy information are obtained.
[0059] In step S202, the accuracy information is compared with a preset accuracy threshold.
[0060] After long-term on-road testing of vehicles, this embodiment obtains an empirical threshold for accuracy, namely the preset accuracy threshold. The preset accuracy threshold is used to select a filter factor of a low-pass filter for different accuracy information to perform low-pass filtering on the altitude value.
[0061] In step S203, when the accuracy information is less than the preset accuracy threshold, a first filter factor is used to perform low-pass filtering on the altitude value.
[0062] In step S204, when the accuracy information is greater than the preset accuracy threshold, a second filter factor is used to perform low-pass filtering on the altitude value.
[0063] Among them, the first filter factor is greater than the second filter factor. The larger the filter factor, the greater the selection weight of the low-pass filter algorithm for the altitude value, and the smaller the filter factor, the smaller the selection weight of the low-pass filter algorithm for the altitude value. When the accuracy information is less than the preset accuracy threshold, that is, the accuracy information is high and the error of the altitude value is small, a larger first filter factor is selected to increase the selection weight of the low-pass filter algorithm for the altitude value; when the accuracy information is greater than the preset accuracy threshold, that is, the accuracy information is low and the error of the altitude value is large, a smaller second filter factor is selected to reduce the selection weight of the low-pass filter algorithm for the altitude value. Based on the selected first filter factor or second filter factor, the altitude value collected every second is filtered to obtain the altitude correction value, thereby effectively reducing the error of the altitude value collected every second, further improving the accuracy of the altitude value, and is conducive to improving the accuracy of the altitude value displayed on the status bar later.
[0064] Optionally, as a preferred example of the present invention, the preset accuracy threshold is preferably 10 meters. When the altitude value is less than 10 meters, the first filter factor is selected, preferably 0.4; when the altitude value is greater than 10 meters, the second filter factor is selected, preferably 0.1.
[0065] In step S103, the altitude correction value is optimized to obtain an altitude value to be updated.
[0066] After obtaining the altitude correction value, in order to further improve the stability of the altitude value, this embodiment also optimizes the altitude correction value. Figure 3As shown, the step S103 further includes:
[0067] In step S301 , for each altitude correction value, a first deviation of the altitude correction value compared to a previous altitude correction value is calculated, and the first deviation is compared with a first deviation threshold.
[0068] Among them, the first deviation threshold is a criterion for judging the change amplitude of the two altitude correction values. In this embodiment, the altitude value that jumps is filtered out by the first deviation threshold, so that the altitude value is more stable. Specifically, after the altitude value collected by the vehicle-mounted GPS module each time is low-pass filtered to obtain the altitude correction value, for each altitude correction value, the first deviation between the altitude correction value and the previous altitude correction value is calculated, and the first deviation is compared with the first deviation threshold. If the first deviation is less than the first deviation threshold, it means that the change of the two altitude correction values is relatively gentle; if the first deviation is greater than the first deviation threshold, it means that the change of the two altitude correction values is more prominent.
[0069] In step S302, if the first deviations of a plurality of consecutive altitude correction values are all smaller than the first deviation threshold, the last altitude correction value among the plurality of altitude correction values is used as the altitude value to be updated.
[0070] If several consecutive first deviations are all smaller than the first deviation threshold, it indicates that the change of the altitude correction value within a period of time corresponding to the several deviations is relatively stable. Then, the last altitude correction value within the period of time is used as the altitude value to be updated, thereby ensuring the stability of the altitude value to be updated.
[0071] If any first deviation is greater than or equal to the first deviation threshold, so that the condition that a plurality of consecutive first deviations are less than the first deviation threshold is not satisfied, the next altitude correction value is obtained to perform the next judgment.
[0072] Optionally, the first deviation threshold is preferably 5 meters, and the plurality is preferably 3. After the altitude value collected by the vehicle-mounted GPS module each time is subjected to low-pass filtering to obtain an altitude correction value, for each altitude correction value, a first deviation between the altitude correction value and a previous altitude correction value is calculated, and if three consecutive deviations are all less than 5 meters, it is considered that the change of the altitude correction value in the time period is relatively stable, and the third altitude correction value is used as the altitude value to be updated, and step S104 is executed.
[0073] In step S104, the altitude value displayed on the status bar is updated according to the altitude value to be updated.
[0074] Here, if the vehicle does not move at the same position or runs on a flat road, the above step S103 can also obtain the altitude value to be updated. In this case, the altitude value to be updated changes relatively slowly, so it is possible to consider reducing the update frequency of the altitude value on the status bar. Figure 4 As shown, the step S104 further includes:
[0075] In step S401, the current altitude value displayed on the status bar is obtained.
[0076] Here, each time the vehicle is turned off, the altitude value displayed on the status bar will be saved. When the vehicle is restarted, the saved altitude value will be retrieved and displayed on the status bar again. Before changing the altitude value each time, the altitude value to be updated needs to be compared with the current altitude value displayed on the status bar. Specifically, the change between the altitude value to be updated and the current altitude value displayed on the status bar can be calculated.
[0077] In step S402, a second deviation between the altitude value to be updated and the current altitude value is calculated.
[0078] In step S403, the second deviation is compared with a second deviation threshold.
[0079] The second deviation threshold is set based on experience and is a criterion for determining whether to update the status bar based on the change in the altitude value to be updated compared to the current altitude value displayed on the status bar, so as to control the update frequency of the altitude value on the status bar. When performing the update judgment, for each altitude value to be updated, the second deviation between the altitude value to be updated and the current altitude value is calculated, and the second deviation is compared with the second deviation threshold. If the second deviation is less than or equal to the second deviation threshold, it indicates that the altitude value to be updated has changed slightly; if the second deviation is greater than the second deviation threshold, it indicates that the altitude value to be updated has changed significantly.
[0080] In step S404, if the second deviation is greater than the second deviation threshold, the current altitude value displayed on the status bar is updated to the altitude value to be updated.
[0081] If the deviation is greater than the second deviation threshold, it means that the altitude value to be updated has changed greatly and the altitude value on the status bar needs to be updated, otherwise a meter reading error will occur. The altitude value to be updated will replace the current altitude value displayed on the status bar, so that the status bar reflects the vehicle's altitude changes in real time.
[0082] Optionally, the step S104 further includes
[0083] In step S405, when the second deviation is less than or equal to the second deviation threshold, the current altitude value displayed on the status bar is maintained.
[0084] If the deviation is less than or equal to the second deviation threshold, it means that the altitude value to be updated has changed slightly, and there is no need to update the altitude value on the status bar, so as to control the update frequency of the status bar.
[0085] Optionally, the second deviation threshold is preferably 5 meters. For each altitude value to be updated, a second deviation between the altitude value to be updated and the current altitude value is calculated, and if the second deviation is greater than 5 meters, the altitude value on the status bar is updated, otherwise, the altitude value on the status bar is kept unchanged.
[0086] In summary, the embodiment of the present invention obtains data packets collected by the vehicle-mounted GPS module according to a preset sampling frequency; for each data packet, altitude data is obtained from the data packet, and low-pass filtering is performed on the altitude data to obtain an altitude correction value, so as to filter out the jump data and improve the data accuracy of a single monitoring; then, an optimization judgment is performed according to the altitude correction value, and the altitude value to be updated is obtained according to the condition that several consecutive deviations are less than the first deviation threshold, thereby improving the stability of the data; finally, when the altitude value to be updated is greater than or equal to the current altitude value on the status bar, the altitude value displayed on the status bar is updated; thereby improving the method of monitoring altitude values based on vehicle-mounted GPS in the prior art, effectively improving the accuracy and stability of the monitored altitude data, and solving the problems of poor accuracy and large errors in the prior art when monitoring and displaying altitude data through vehicle-mounted GPS.
[0087] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0088] In one embodiment, a device for monitoring and displaying altitude values is provided, and the device for monitoring and displaying altitude values corresponds to the method for monitoring and displaying altitude values in the above-mentioned embodiment. Figure 5 As shown, the altitude value monitoring and display device includes an acquisition module 51, a preprocessing module 52, an optimization module 53, and an update display module 54. The detailed description of each functional module is as follows:
[0089] The acquisition module 51 is used to acquire the data packets collected by the vehicle-mounted GPS module according to the preset sampling frequency;
[0090] A pre-processing module 52, used to obtain altitude data from the data packet, and perform low-pass filtering on the altitude data to obtain an altitude correction value;
[0091] An optimization module 53, used to optimize the altitude correction value to obtain an altitude value to be updated;
[0092] The updating display module 54 is used to update the altitude value displayed on the status bar according to the altitude value to be updated.
[0093] Optionally, the preprocessing module 52 includes:
[0094] A parsing unit, used for parsing the data packet to obtain the altitude value and its corresponding accuracy information;
[0095] An accuracy comparison unit, used to compare the accuracy information with a preset accuracy threshold;
[0096] A first filtering unit, configured to perform a low-pass filtering process on the altitude value by using a first filtering factor when the accuracy information is less than the preset accuracy threshold;
[0097] A second filtering unit, configured to perform low-pass filtering on the altitude value using a second filtering factor when the accuracy information is greater than the preset accuracy threshold;
[0098] The first filter factor is greater than the second filter factor.
[0099] Optionally, the optimization module 53 includes:
[0100] a first calculation unit, configured to calculate, for each altitude correction value, a first deviation of the altitude correction value compared to a previous altitude correction value, and compare the first deviation with a first deviation threshold;
[0101] The first acquisition unit is configured to use a last altitude correction value among a plurality of consecutive altitude correction values as the altitude value to be updated if the first deviations of the plurality of consecutive altitude correction values are all less than the first deviation threshold.
[0102] Optionally, the update display module 54 includes:
[0103] A second acquisition unit is used to acquire the current altitude value displayed on the status bar;
[0104] a second calculation unit, configured to calculate a second deviation between the altitude value to be updated and the current altitude value;
[0105] a comparing unit, configured to compare the second deviation with a second deviation threshold;
[0106] The updating display unit is used to update the current altitude value displayed on the status bar to the altitude value to be updated if the second deviation is greater than the second deviation threshold.
[0107] Optionally, the update display module 54 is further used for:
[0108] When the second deviation is less than or equal to the second deviation threshold, the current altitude value displayed on the status bar is maintained.
[0109] For the specific definition of the altitude value monitoring and display device, please refer to the definition of the altitude value monitoring and display method above, which will not be repeated here. Each module in the above-mentioned altitude value monitoring and display device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0110] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for monitoring and displaying altitude values is implemented.
[0111] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0112] Obtain data packets collected by the vehicle-mounted GPS module according to a preset sampling frequency;
[0113] Acquire altitude data from the data packet, and perform low-pass filtering on the altitude data to obtain an altitude correction value;
[0114] Optimizing the altitude correction value to obtain an altitude value to be updated;
[0115] The altitude value displayed on the status bar is updated according to the altitude value to be updated.
[0116] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0117] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0118] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A method for monitoring and displaying altitude data, characterized in that: include: Obtain data packets collected by the vehicle-mounted GPS module according to a preset sampling frequency; Acquire altitude data from the data packet, and perform low-pass filtering on the altitude data to obtain an altitude correction value; Optimizing the altitude correction value to obtain an altitude value to be updated; Updating the altitude value displayed on the status bar according to the altitude value to be updated; The step of obtaining the altitude data from the data packet and performing low-pass filtering on the altitude data to obtain an altitude correction value includes: Parsing the data packet to obtain the altitude value and its corresponding accuracy information; The altitude value is subjected to low-pass filtering according to the accuracy information to obtain an altitude correction value.
2. The method for monitoring and displaying altitude data according to claim 1, wherein: The step of obtaining the altitude data from the data packet and performing low-pass filtering on the altitude data to obtain an altitude correction value includes: comparing the accuracy information with a preset accuracy threshold; When the accuracy information is less than the preset accuracy threshold, low-pass filtering is performed on the altitude value using a first filtering factor; When the accuracy information is greater than the preset accuracy threshold, a second filter factor is used to perform low-pass filtering on the altitude value; The first filter factor is greater than the second filter factor.
3. The method for monitoring and displaying altitude data according to claim 2, wherein: The step of optimizing the altitude correction value to obtain the altitude value to be updated includes: For each altitude correction value, calculating a first deviation of the altitude correction value compared to a previous altitude correction value, and comparing the first deviation with a first deviation threshold; If the first deviations of a plurality of consecutive altitude correction values are all smaller than the first deviation threshold, the last altitude correction value among the plurality of altitude correction values is used as the altitude value to be updated.
4. The method for monitoring and displaying altitude data according to claim 3, wherein: The updating of the altitude value displayed on the status bar according to the altitude value to be updated includes: Get the current altitude value displayed on the status bar; Calculating a second deviation between the altitude value to be updated and the current altitude value; comparing the second deviation with a second deviation threshold; If the second deviation is greater than the second deviation threshold, the current altitude value displayed on the status bar is updated to the altitude value to be updated.
5. The method for monitoring and displaying altitude data according to claim 4, wherein: The updating of the altitude value displayed on the status bar according to the altitude value to be updated further includes: When the second deviation is less than or equal to the second deviation threshold, the current altitude value displayed on the status bar is maintained.
6. An altitude data monitoring and display device, characterized in that: The device comprises: An acquisition module is used to acquire data packets collected by the vehicle-mounted GPS module according to a preset sampling frequency; A preprocessing module, used for acquiring altitude data from the data packet, and performing low-pass filtering on the altitude data to obtain an altitude correction value; An optimization module, used for optimizing the altitude correction value to obtain an altitude value to be updated; An updating display module, used for updating the altitude value displayed on the status bar according to the altitude value to be updated; The preprocessing module is further used to parse the data packet to obtain the altitude value and its corresponding accuracy information; and perform low-pass filtering on the altitude value according to the accuracy information to obtain the altitude correction value.
7. The altitude data monitoring and display device according to claim 6, characterized in that: The preprocessing module comprises: An accuracy comparison unit, used to compare the accuracy information with a preset accuracy threshold; A first filtering unit, configured to perform a low-pass filtering process on the altitude value by using a first filtering factor when the accuracy information is less than the preset accuracy threshold; A second filtering unit, configured to perform low-pass filtering on the altitude value using a second filtering factor when the accuracy information is greater than the preset accuracy threshold; The first filter factor is greater than the second filter factor.
8. The altitude data monitoring and display device according to claim 7, characterized in that: The optimization module includes: a first calculation unit, configured to calculate, for each altitude correction value, a first deviation of the altitude correction value compared to a previous altitude correction value, and compare the first deviation with a first deviation threshold; The first acquisition unit is configured to use a last altitude correction value among a plurality of consecutive altitude correction values as the altitude value to be updated if the first deviations of the plurality of consecutive altitude correction values are all less than the first deviation threshold.
9. A computer 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 computer program, the altitude data monitoring and display method according to any one of claims 1 to 5 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the altitude data monitoring and display method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Gnss positioning using pressure sensors
CN102124362A
Method and device for detecting data effectiveness
CN109323714A