Method and device for acquiring altitude value of vehicle and storage medium
By calculating the change in the vehicle altitude value in segments based on the road slope and vehicle mileage when the GPS signal is weak, the problem of loss or jumping of the altitude value is solved, and the stable acquisition of the altitude value is achieved.
Patent Information
- Application Number
- CN202411789027.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-03-25
AI Technical Summary
In areas with low GPS signal strength, it is difficult to obtain the vehicle altitude value continuously and stably, and it is prone to loss or jump.
When the GPS signal intensity is low, the change in the vehicle altitude value is calculated in segments based on the road slope and vehicle mileage, thereby calculating the vehicle altitude value at the current moment.
It realizes that the vehicle altitude value is continuously and stably obtained when the GPS signal strength is low, avoiding the loss or jump of the altitude value.
Smart Images

Figure CN119687862A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle navigation technology, and in particular to a method, device and storage medium for obtaining a vehicle altitude value. Background Art
[0002] During the operation of the vehicle, due to the limitation of operating costs, users hope to obtain more information to guide driving and achieve better fuel saving effect. As an important indicator in the operation process, the altitude value can guide users to save operating costs to a certain extent.
[0003] In the related art, the altitude of a vehicle is generally measured by using a GPS (Global Positioning System).
[0004] However, in areas where GPS signals are weak, it is usually difficult for GPS to continuously and stably obtain the vehicle altitude value, and the vehicle altitude value may be lost or jump. Summary of the invention
[0005] The present application provides a method, device and storage medium for obtaining a vehicle altitude value, which can continuously and stably obtain the vehicle altitude value and avoid the loss or jump of the vehicle altitude value.
[0006] In a first aspect, an embodiment of the present application provides a method for obtaining a vehicle altitude value, the method comprising:
[0007] When the signal strength of the vehicle's GPS is lower than the preset signal strength threshold, the change in the vehicle's altitude from the previous moment to the current moment is calculated based on the road slope and the vehicle's mileage;
[0008] The vehicle altitude value at the current moment is calculated according to the change in the vehicle altitude value and the vehicle altitude value at the previous moment.
[0009] When the GPS signal strength is low, this method calculates the change in the vehicle altitude value in segments within each time period according to the road slope and the vehicle mileage, thereby continuously and stably obtaining the vehicle altitude value and avoiding the loss or jump of the vehicle altitude value.
[0010] In combination with the first aspect, in one implementation, the calculation of the change in the vehicle altitude value from the previous moment to the current moment according to the road slope and the vehicle mileage includes:
[0011] Divide the time period from the previous moment to the current moment into multiple sub-time periods;
[0012] In each sub-time period, the product of the vehicle mileage and the sine value of the road slope in the sub-time period is integrated to obtain the change in the vehicle altitude value in the sub-time period;
[0013] The changes in the vehicle altitude values in all sub-time periods are added together to obtain the change in the vehicle altitude value from the previous moment to the current moment.
[0014] This implementation method divides the time period from the last moment to the current moment into multiple sub-time periods, and integrates the product of the vehicle mileage and the sine value of the road slope in each sub-time period to obtain the change in the vehicle altitude value in each sub-time period, and then adds the change in the vehicle altitude value in all sub-time periods to obtain the change in the vehicle altitude value from the last moment to the current moment. Compared with simply calculating the change in the vehicle altitude value in each sub-time period based on a fixed vehicle mileage and road slope, or directly calculating the change in the vehicle altitude value from the last moment to the current moment as a whole, this implementation method can more accurately capture the vehicle's altitude changes in different sub-time periods.
[0015] In combination with the first aspect, in one implementation, when dividing the time period from the last moment to the current moment into a plurality of sub-time periods, the method further includes:
[0016] The duration of each sub-time period is determined according to the vehicle's driving speed and the rate of change of the road slope.
[0017] In combination with the first aspect, in one implementation, when the signal strength of the vehicle-mounted GPS is restored to a preset signal strength threshold, the method further includes:
[0018] The altitude value measured by the vehicle-mounted GPS is compared with the vehicle altitude value at the current moment. If the difference between the two is lower than a preset difference threshold, the vehicle altitude value at the current moment is updated to the altitude value measured by the vehicle-mounted GPS.
[0019] When the difference between the altitude value measured by the vehicle GPS and the vehicle altitude value at the current moment is higher than a preset difference threshold, the method further includes:
[0020] Maintain the current vehicle altitude value unchanged.
[0021] In combination with the first aspect, in one implementation, after calculating the vehicle altitude value at the current moment, the method further includes:
[0022] The vehicle altitude value at the current moment is stored in the vehicle terminal and displayed on the vehicle display.
[0023] In combination with the first aspect, in one implementation, when the vehicle is powered on, the method further includes:
[0024] Determine whether the signal strength of the vehicle-mounted GPS is higher than a preset signal strength threshold;
[0025] If yes, the altitude value measured by the vehicle GPS is used as the vehicle altitude value at the current moment;
[0026] If not, the vehicle altitude value stored last time by the vehicle terminal is used as the vehicle altitude value at the current moment.
[0027] In a second aspect, an embodiment of the present application provides a device for obtaining a vehicle altitude value based on any of the above methods, the device comprising:
[0028] A collection module is used to collect road slope and vehicle mileage;
[0029] A judgment module, used to judge whether the signal strength of the vehicle-mounted GPS is lower than a preset signal strength threshold;
[0030] The calculation module is used to calculate the change in the vehicle altitude value from the current moment to the next moment according to the road slope and the vehicle mileage; and is also used to calculate the vehicle altitude value at the current moment according to the change in the vehicle altitude value and the vehicle altitude value at the previous moment.
[0031] When the signal strength of the GPS is low, the device collects the road slope and the vehicle mileage through the collection module, determines whether the signal strength of the vehicle-mounted GPS is lower than the preset signal strength threshold through the judgment module, and calculates the change of the vehicle altitude value in each time period according to the road slope and the vehicle mileage through the calculation module, thereby continuously and stably obtaining the vehicle altitude value to avoid loss or jump of the vehicle altitude value.
[0032] In conjunction with the second aspect, in one implementation, the device further includes:
[0033] The storage module is used to store the vehicle altitude value calculated at each moment.
[0034] In a third aspect, an embodiment of the present application provides a storage medium on which a computer program is stored, and when the computer program is processed by a processor, the steps of any of the above methods are implemented.
[0035] The beneficial effects brought by the technical solution provided by the embodiments of the present application include:
[0036] When the GPS signal strength is low, the present application calculates the change in the vehicle altitude value in segments within each time period according to the road slope and the vehicle mileage, thereby continuously and stably obtaining the vehicle altitude value and avoiding the loss or jump of the vehicle altitude value. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 A flow chart of a method for obtaining a vehicle altitude value according to an embodiment of the present application;
[0038] Figure 2A schematic diagram of the structure of a device for obtaining a vehicle altitude value according to an embodiment of the present application. DETAILED DESCRIPTION
[0039] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0040] First, some technical terms in the present application are explained to facilitate those skilled in the art to understand the present application.
[0041] T-BOX (Telematics BOX) is a core controller for vehicle informationization. It communicates with the entire vehicle through CAN (Controller Area Network) and Ethernet. Through the CAN bus, the controller can access the complex electronic control system network inside the vehicle, read the data of multiple subsystems such as the engine management system, body control system, chassis control system, etc. in real time, and upload this data to the background system or mobile phone application.
[0042] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0043] First, please refer to Figure 1 , Figure 1 This is a flow chart of a method for obtaining a vehicle altitude value according to an embodiment of the present application. The method for obtaining a vehicle altitude value provided in this embodiment includes the following steps:
[0044] Step S1: When the signal strength of the vehicle-mounted GPS is lower than a preset signal strength threshold, the change in the vehicle altitude from the previous moment to the current moment is calculated based on the road slope and the vehicle mileage.
[0045] Step S2: Calculate the vehicle altitude value at the current moment according to the change in the vehicle altitude value and the vehicle altitude value at the previous moment.
[0046] When the GPS signal strength is low, this method calculates the change in the vehicle altitude value in segments within each time period according to the road slope and the vehicle mileage, thereby continuously and stably obtaining the vehicle altitude value and avoiding the loss or jump of the vehicle altitude value.
[0047] In some embodiments, in the above step S1, calculating the change in the vehicle altitude value from the previous moment to the current moment according to the road slope and the vehicle mileage includes the following steps:
[0048] S11: Divide the time period from the previous moment to the current moment into multiple sub-time periods.
[0049] S12: In each sub-time period, the product of the vehicle mileage and the sine value of the road slope in the sub-time period is integrated to obtain a change in the vehicle altitude value in the sub-time period.
[0050] S13: Add the changes in the vehicle altitude values in all sub-time periods to obtain the change in the vehicle altitude value from the previous moment to the current moment.
[0051] In the above steps S11-S13, the time period from the last moment to the current moment is divided into multiple sub-time periods, and the product of the vehicle mileage and the sine value of the road slope is integrated in each sub-time period to obtain the change in the vehicle altitude value in each sub-time period, and then the change in the vehicle altitude value in all sub-time periods is added to obtain the change in the vehicle altitude value from the last moment to the current moment. Compared with simply calculating the change in the vehicle altitude value in each sub-time period based on a fixed vehicle mileage and road slope, or directly calculating the change in the vehicle altitude value from the last moment to the current moment as a whole, this method can more accurately capture the vehicle's altitude changes in different sub-time periods, thereby providing the driver with more altitude information to guide driving.
[0052] In the above step S12, the specific formula for calculating the change in the vehicle altitude value is:
[0053]
[0054] In formula (1), s is the vehicle mileage, θ(s) is the function of the change of road slope with vehicle mileage, and H is the change of vehicle altitude.
[0055] It should be noted that in actual application, due to the complexity of the road slope, it is difficult to describe its change with a simple analytical function. If θ(s) is abstracted as a piecewise function or represented by a two-dimensional curve obtained by multi-point fitting, the numerical integration method can be used to approximately calculate the change in the vehicle altitude value.
[0056] Numerical integration is a method that approximates continuous integration by discretization. When calculating the change in the vehicle altitude value, the vehicle mileage can be divided into several segments, and the length of each segment can be set according to the actual driving conditions of the vehicle. In each segment, the road slope is approximately regarded as a constant, that is, it is assumed that the road slope of the vehicle remains unchanged in the segment. Although this approximate treatment will produce a certain error, in practical applications, since the length of each segment is usually small, the total error obtained is within an acceptable range. After the change in the vehicle altitude value corresponding to each segment is calculated, the change in the vehicle altitude value corresponding to each segment is accumulated to obtain the change in the vehicle altitude value corresponding to the vehicle mileage.
[0057] In some embodiments, in the above step S11, when the time period from the previous moment to the current moment is divided into a plurality of sub-time periods, the following steps are also included:
[0058] The duration of each sub-time period is determined according to the vehicle's driving speed and the rate of change of the road slope.
[0059] Specifically, when the vehicle is powered on, the initial duration of each sub-time period will be set according to the actual use of the vehicle. In this embodiment, the initial duration of each sub-time period is set to one second.
[0060] During the driving process of the vehicle, if the driving speed of the vehicle increases, it means that the mileage of the vehicle increases in the same time. If the rate of change of the road slope remains unchanged, the change of the vehicle altitude value will also increase. Therefore, shortening the duration of the sub-time period can more accurately calculate the change of the vehicle altitude value in a smaller time range. If the driving speed of the vehicle decreases, it means that the mileage of the vehicle decreases in the same time. If the rate of change of the road slope remains unchanged, the change of the vehicle altitude value will also decrease. Therefore, increasing the duration of the sub-time period can calculate the change of the vehicle altitude value in a larger time range, avoiding the waste of computing resources.
[0061] Similarly, if the rate of change of the road slope increases, the change in the vehicle altitude value will also increase when the vehicle's driving speed remains unchanged. Therefore, shortening the duration of the sub-time period can more accurately calculate the change in the vehicle altitude value within a smaller time range. If the rate of change of the road slope decreases, the change in the vehicle altitude value will also decrease when the vehicle's driving speed remains unchanged. Therefore, increasing the duration of the sub-time period can calculate the change in the vehicle altitude value within a larger time range to avoid wasting computing resources.
[0062] When both the vehicle's driving speed and the rate of change of the road slope change, the length of each sub-time period can be determined according to the vehicle's driving speed and the rate of change of the road slope based on the pre-trained mathematical model.
[0063] It should be noted that by determining the duration of each sub-time period based on the vehicle's driving speed and the rate of change of the road slope, the change in the vehicle's altitude value can be flexibly calculated based on the vehicle's driving status under different conditions, thereby improving the accuracy and efficiency of the vehicle's altitude value calculation and avoiding wasting computing resources.
[0064] In some embodiments, when the signal strength of the vehicle-mounted GPS is restored to a preset signal strength threshold, the following steps are also included:
[0065] The altitude value measured by the vehicle GPS is compared with the vehicle altitude value at the current moment. If the difference between the two is lower than a preset difference threshold, the vehicle altitude value at the current moment is updated to the altitude value measured by the vehicle GPS.
[0066] Specifically, the preset difference thresholds set for different vehicle models are different, and different vehicle models need to be tested separately to set the preset difference thresholds. The specific steps of the test are: the altitude value measured by the vehicle GPS and the vehicle altitude value calculated by this method are compared multiple times at different altitudes, and the maximum difference and the minimum difference between the two are used as the error range boundaries of the two at the altitude. For each altitude, the median of the error range corresponding to the altitude is selected as the preset difference threshold.
[0067] It should be noted that after the GPS signal is restored, by comparing the altitude value measured by GPS and the vehicle altitude value calculated by this method and updating the vehicle altitude value when the difference is small, the accuracy of the vehicle altitude value can be further improved, which helps to avoid altitude calculation errors caused by other factors during the period when the GPS signal is lost, such as failure of the T-BOX or other electronic systems.
[0068] In some embodiments, when the difference between the altitude value measured by the vehicle-mounted GPS and the vehicle altitude value at the current moment is higher than a preset difference threshold, the following steps are also included:
[0069] Maintain the current vehicle altitude value unchanged.
[0070] It should be noted that after the GPS signal is restored, due to the large difference between the altitude value measured by the vehicle-mounted GPS and the vehicle altitude value at the current moment, there is a high probability that the vehicle-mounted GPS has signal fluctuations, and the credibility of the measured altitude value is low. Therefore, the vehicle altitude value measured by this method continues to be used.
[0071] In some embodiments, in the above step S2, after calculating the vehicle altitude value at the current moment, the following steps are further included:
[0072] The vehicle altitude value at the current moment is stored in the vehicle terminal and displayed on the vehicle display.
[0073] Specifically, the vehicle terminal is usually a T-BOX, or a hard disk or other storage device. The vehicle altitude values stored in the vehicle terminal are sorted by time and generate an altitude change curve. The vehicle display can be a touch screen, liquid crystal display or other types of display devices. The vehicle altitude value can be displayed in digital form or through a graphical altitude curve, so that the driver can observe the altitude change of the vehicle more intuitively.
[0074] In some embodiments, when the vehicle is powered on, the following steps are also included:
[0075] Determine whether the signal strength of the vehicle GPS is higher than the preset signal strength threshold. If yes, use the altitude value measured by the vehicle GPS as the vehicle altitude value at the current moment. If no, use the vehicle altitude value last stored by the vehicle terminal as the vehicle altitude value at the current moment.
[0076] It should be noted that if the signal strength of the vehicle GPS is higher than the preset signal strength threshold, it means that the current vehicle GPS is operating normally. At this time, this method will immediately start the vehicle GPS to measure the vehicle altitude value at the current moment and store it in the vehicle terminal. If the signal strength of the vehicle GPS is not higher than the preset signal strength threshold, it means that the current vehicle GPS signal is weak or unstable. At this time, this method will read the vehicle altitude value stored in the vehicle terminal for the last time and use it as the vehicle altitude value at the current moment.
[0077] In some embodiments, in the above step S2, the vehicle altitude value at the current moment is calculated according to the change in the above vehicle altitude value and the vehicle altitude value at the previous moment, including the following steps:
[0078] The sum of the change in the above vehicle altitude value and the vehicle altitude value at the previous moment is taken as the vehicle altitude value at the current moment.
[0079] Second, please refer to Figure 2 , Figure 2 This is a schematic diagram of the structure of the device for obtaining the vehicle altitude value according to an embodiment of the present application. The device for obtaining the vehicle altitude value provided in this embodiment includes the following modules:
[0080] The acquisition module is used to collect road slope and vehicle mileage.
[0081] The judgment module is used to judge whether the signal strength of the vehicle-mounted GPS is lower than a preset signal strength threshold.
[0082] The calculation module is used to calculate the change in the vehicle altitude value from the current moment to the next moment based on the road slope and the vehicle mileage; and is also used to calculate the vehicle altitude value at the current moment based on the change in the above vehicle altitude value and the vehicle altitude value at the previous moment.
[0083] When the signal strength of the GPS is low, the device collects the road slope and the vehicle mileage through the collection module, determines whether the signal strength of the vehicle-mounted GPS is lower than the preset signal strength threshold through the judgment module, and calculates the change of the vehicle altitude value in each time period according to the road slope and the vehicle mileage through the calculation module, thereby continuously and stably obtaining the vehicle altitude value to avoid loss or jump of the vehicle altitude value.
[0084] In some embodiments, the acquisition module in the above-mentioned device uses an acceleration sensor to measure the vehicle acceleration, and estimates the road slope based on the measured change in vehicle acceleration, or uses the vehicle CAN bus to measure the vehicle engine driving information (such as engine torque or wheel-side driving force) and vehicle speed, and estimates the road slope based on the vehicle engine driving information and vehicle speed measured by the CAN bus.
[0085] In some embodiments, the acquisition module in the above device uses the vehicle CAN bus to measure the vehicle mileage.
[0086] In some embodiments, the above-mentioned device for obtaining the vehicle altitude value further includes the following modules:
[0087] The storage module is used to store the vehicle altitude value calculated at each moment.
[0088] In some embodiments, the calculation module calculates the change in the vehicle altitude from the previous moment to the current moment according to the road slope and the vehicle mileage, including the following steps:
[0089] First, the time period from the previous moment to the current moment is divided into multiple sub-time periods.
[0090] Afterwards, in each sub-time period, the product of the vehicle mileage and the sine value of the road slope in the sub-time period is integrated to obtain the change in the vehicle altitude value in the sub-time period.
[0091] Finally, the changes in the vehicle altitude values in all sub-time periods are added together to obtain the change in the vehicle altitude value from the previous moment to the current moment.
[0092] In some embodiments, when the calculation module divides the time period from the previous moment to the current moment into multiple sub-time periods, the following steps are also included:
[0093] The duration of each sub-time period is determined according to the vehicle's driving speed and the rate of change of the road slope.
[0094] In some embodiments, when the signal strength of the vehicle-mounted GPS recovers to a preset signal strength threshold, the above-mentioned judgment module is also used to compare the altitude value measured by the vehicle-mounted GPS with the vehicle altitude value at the current moment. If the difference between the two is lower than the preset difference threshold, the vehicle altitude value at the current moment is updated to the altitude value measured by the above-mentioned vehicle-mounted GPS.
[0095] In some embodiments, when the difference between the altitude value measured by the vehicle-mounted GPS and the vehicle altitude value at the current moment is higher than a preset difference threshold, the above-mentioned judgment module is further used to maintain the vehicle altitude value at the current moment unchanged.
[0096] In some embodiments, after the calculation module calculates the vehicle altitude value at the current moment, the storage module is further used to store the vehicle altitude value at the current moment in the vehicle terminal and display it through the vehicle display.
[0097] Specifically, the vehicle terminal is usually a T-BOX, but it can also be a hard disk or other storage device. The vehicle altitude values stored in the vehicle terminal will be sorted by time and generate an altitude change curve. The vehicle display can be a touch screen, LCD or other type of display device. The vehicle altitude value can be displayed in digital form or through a graphical altitude curve, so that the driver can observe the altitude change of the vehicle more intuitively.
[0098] In some embodiments, when the vehicle is powered on, the above-mentioned judgment module is also used to judge whether the signal strength of the vehicle GPS is higher than a preset signal strength threshold. If so, the altitude value measured by the vehicle GPS is used as the vehicle altitude value at the current moment; if not, the vehicle altitude value last stored by the vehicle terminal is used as the vehicle altitude value at the current moment.
[0099] In a third aspect, an embodiment of the present application also provides a computer-readable storage medium.
[0100] The computer-readable storage medium of the present application stores a program for obtaining the vehicle altitude value, wherein when the program for obtaining the vehicle altitude value is executed by a processor, the steps of the method for obtaining the vehicle altitude value as described above are implemented.
[0101] Among them, the method implemented when the program for obtaining the vehicle altitude value is executed can refer to the various embodiments of the method for obtaining the vehicle altitude value of the present application, and will not be repeated here.
[0102] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.
[0103] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit "first", "second" and "third" to different types.
[0104] In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.
[0105] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.
[0106] In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.
[0107] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present application.
[0108] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for obtaining a vehicle altitude value, characterized in that: The method comprises: When the signal strength of the vehicle's GPS is lower than the preset signal strength threshold, the change in the vehicle's altitude from the previous moment to the current moment is calculated based on the road slope and the vehicle's mileage; The vehicle altitude value at the current moment is calculated according to the change in the vehicle altitude value and the vehicle altitude value at the previous moment.
2. The method for obtaining the vehicle altitude value according to claim 1, characterized in that: The calculation of the change in the vehicle altitude value from the previous moment to the current moment according to the road slope and the vehicle mileage includes: Divide the time period from the previous moment to the current moment into multiple sub-time periods; In each sub-time period, the product of the vehicle mileage and the sine value of the road slope in the sub-time period is integrated to obtain the change in the vehicle altitude value in the sub-time period; The changes in the vehicle altitude values in all sub-time periods are added together to obtain the change in the vehicle altitude value from the previous moment to the current moment.
3. The method for obtaining the vehicle altitude value according to claim 2, characterized in that: When the time period from the previous moment to the current moment is divided into multiple sub-time periods, it also includes: The duration of each sub-time period is determined according to the vehicle's driving speed and the rate of change of the road slope.
4. The method for obtaining a vehicle altitude value according to claim 1, characterized in that: When the signal strength of the vehicle-mounted GPS returns to the preset signal strength threshold, it also includes: The altitude value measured by the vehicle-mounted GPS is compared with the vehicle altitude value at the current moment. If the difference between the two is lower than a preset difference threshold, the vehicle altitude value at the current moment is updated to the altitude value measured by the vehicle-mounted GPS.
5. The method for obtaining the vehicle altitude value according to claim 4, characterized in that: When the difference between the altitude value measured by the vehicle GPS and the vehicle altitude value at the current moment is higher than a preset difference threshold, the method further includes: Maintain the current vehicle altitude value unchanged.
6. The method for obtaining the vehicle altitude value according to claim 1, characterized in that: After calculating the vehicle altitude value at the current moment, it also includes: The vehicle altitude value at the current moment is stored in the vehicle terminal and displayed on the vehicle display.
7. The method for obtaining the vehicle altitude value according to claim 6, characterized in that: When the vehicle is powered on, it also includes: Determine whether the signal strength of the vehicle-mounted GPS is higher than a preset signal strength threshold; If yes, the altitude value measured by the vehicle GPS is used as the vehicle altitude value at the current moment; If not, the vehicle altitude value stored last time by the vehicle terminal is used as the vehicle altitude value at the current moment.
8. A device for obtaining a vehicle altitude value based on the method according to any one of claims 1 to 8, characterized in that: The device comprises: A collection module is used to collect road slope and vehicle mileage; A judgment module, used to judge whether the signal strength of the vehicle-mounted GPS is lower than a preset signal strength threshold; The calculation module is used to calculate the change in the vehicle altitude value from the current moment to the next moment according to the road slope and the vehicle mileage; and is also used to calculate the vehicle altitude value at the current moment according to the change in the vehicle altitude value and the vehicle altitude value at the previous moment.
9. The device for obtaining the vehicle altitude value according to claim 8, characterized in that: The device also includes: The storage module is used to store the vehicle altitude value calculated at each moment.
10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is processed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.