Cycling computer device and automatic calibration method for initial posture of cycling computer

By combining the data of GPS and IMU, the yaw angular velocity vector is automatically solved, which solves the problem of difficulty in accurately calibrating the initial attitude in the existing technology, realizes low-cost and efficient automatic calibration of the initial attitude of the cycling computer, and improves positioning reliability and robustness.

CN113532477BActive Publication Date: 2024-10-15QINGDAO MAGENE INTELLIGENCE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110800564.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-15
Publication Date
2024-10-15
Estimated Expiration
2041-07-15

AI Technical Summary

Technical Problem

When the existing GPS computer is combined with an inertial navigation system, it is difficult to accurately calibrate the initial attitude in a short time, requiring external API interfaces or more sensing devices, resulting in high equipment configuration costs and low reliability of positioning results.

Method used

By obtaining the longitude and latitude values ​​measured by GPS and the acceleration and angular increment values ​​measured by IMU, the yaw angular velocity vector is automatically solved, and the GPS and IMU status are combined to realize automatic calibration of the initial attitude of the computer, reducing dependence on external equipment. .

Benefits of technology

The initial attitude can be accurately calculated in a short time without the need for external APIs or more sensing devices, reducing costs, improving the credibility and robustness of positioning results, and realizing an integrated navigation system based on GPS/IMU.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113532477B_ABST
    Figure CN113532477B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of portable devices for human-powered cycling code tables, and specifically discloses a cycling code table device and an automatic calibration method for the initial posture of the cycling code table, including obtaining the latitude and longitude values ​​measured by GPS and the acceleration and angular increment values ​​measured by IMU; comparing them with preset GPS and IMU state parameters respectively, and continuously solving the yaw angle, velocity vector, roll angle and pitch angle when the GPS state is available or the IMU state is static; when the GPS state is available and the IMU state is static, the solved yaw angle, velocity vector, roll angle and pitch angle are output as the initial posture of the code table to complete automatic alignment. The initial pitch angle and roll angle are solved in the static state of inertial navigation, and then the heading and speed are obtained by reverse calculation using GPS. From the time when the pitch angle and roll angle are solved to the time when the heading is reversely calculated by GPS, the pitch angle and roll angle are updated by the real-time collected IMU data, thereby ensuring the accuracy of the initial state solution value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of portable human-powered cycling computer equipment, and in particular relates to a cycling computer equipment and an automatic calibration method for an initial posture of the cycling computer. Background Art

[0002] The existing GPS positioning is subject to great limitations. The signal is easily blocked by trees, buildings and other objects, and multipath effects often occur. Therefore, when the code table uses GPS for positioning, there are problems with low reliability and robustness of the positioning results. After the GPS code table is combined with the inertial navigation system, although the inertial navigation system can form a multi-sensor positioning system with GPS, the inertial navigation system requires a more accurate initial attitude (longitude and latitude position, three-axis attitude angle, and three-dimensional speed in the navigation coordinate system). Since the code table is a freely detachable device (unlike the fixed-position vehicle navigation system), the different installation locations of the code table each time will result in different initial attitude data. Therefore, each time the code table starts navigation, it is difficult to accurately calibrate the initial attitude of the code table in a short time. It usually requires the use of an external API interface or more sensor devices, and the equipment configuration cost is high.

[0003] Therefore, the prior art needs to be further developed and improved. Summary of the invention

[0004] In view of the various deficiencies of the prior art and in order to solve the above problems, a cycling computer device and a cycling computer initial posture automatic calibration method are now proposed. The present invention provides the following technical solutions:

[0005] A method for automatically calibrating an initial posture of a cycling computer, comprising:

[0006] Get the latitude and longitude values ​​measured by GPS and the acceleration and angular increment values ​​measured by IMU;

[0007] Compare the latitude and longitude values, acceleration and angular increment values ​​with the preset GPS and IMU status parameters, and continuously calculate the yaw angle when the GPS status is available or the IMU status is static. Velocity Vector Roll angle θ and pitch angle γ;

[0008] When the GPS status is available and the IMU status is static, the calculated yaw angle Velocity Vector Roll angle θ i and the pitch angle γ i As the initial posture output of the code table, automatic alignment is completed.

[0009] Furthermore, the calculation method of the yaw angle includes: when the GPS status is available, obtaining the longitude and latitude coordinates and converting them into spatial geodetic coordinates, continuously sliding the window in the spatial geodetic coordinates, and selecting the position sequence that meets the accuracy requirements to inversely calculate the yaw angle.

[0010] Furthermore, the method of continuously sliding the window in the spatial geodetic coordinates and selecting a position sequence that meets the accuracy requirements to inversely calculate the yaw angle includes: based on the converted spatial geodetic coordinates, obtaining the plane coordinate time series of continuous epochs within a preset window range, performing heading inverse calculation based on two adjacent coordinates in the plane coordinate time series to obtain a direction sequence and a corresponding mean square error, if the mean square error is less than a preset accuracy threshold, inversely calculating the yaw angle based on the direction sequence; if the mean square error is greater than the preset accuracy threshold, the preset window is advanced by one step unit, and a new plane coordinate time series is obtained again for inverse calculation.

[0011] Furthermore, the method of selecting a position sequence that meets the accuracy requirement to inversely calculate the yaw angle includes:

[0012] Get position sequence z i ={(x,y,z) m |m=i,i+1,...,i+n}, where i is the starting time epoch corresponding to the position sequence, and the coordinate system corresponding to (x, y, z) is the northeastern sky geographic coordinate system;

[0013] Project the position sequence coordinates onto the plane to obtain the plane coordinate set

[0014] POS i ={(x,y)m|m=i,i+1,...,i+n};

[0015] Arranging the plane coordinates gives the system of equations:

[0016]

[0017] Based on the least squares method, we can get [bias k] = y T ·x·(x T x) -1 , where k is the direction slope of the cycling path in the window in the northeast sky geographic coordinate system;

[0018] Solving the yaw angle based on the inverse tangent function

[0019] Furthermore, the velocity scalar is calculated based on the acquired plane coordinate set Where n is the window length, (xy)1 is the first plane coordinate in the window, (xy) n The last plane coordinate in the window.

[0020] Furthermore, the calculation method of the roll angle and the pitch angle includes: when the IMU state is static, the accelerometer measures the projection of gravity in the carrier coordinate system, that is, the specific force relationship between gravity and the accelerometer is:

[0021]

[0022] Among them, f ib b is the specific force output value, f ib b =[f ibx b ,f iby b ,f ibz b ] represents the output of the accelerometer's x, y, and z axes. is the gravitational acceleration, and then the formula for calculating the roll angle θ and pitch angle γ is derived as follows:

[0023]

[0024] Furthermore, the acceleration and angular increment values ​​measured by the IMU are obtained in real time, and the fourth-order Runge-Kutta method is used to dynamically update the solution formula of the attitude angle. The specific method is as follows:

[0025] Set the initial quaternion, in, is the initial yaw angle, θ0 is the initial roll angle, γ0 is the initial pitch angle, and q is the quaternion vector;

[0026] Then we get the fourth-order Runge-Kutta updated quaternion

[0027] Solve the related elements of the above formula through data sampling: Where h is the data sampling interval, q (t) ,q (t+h) are the quaternions at time t and t+h respectively, Respectively represent the real-time angular increments collected by the x, y, and z axes of the gyroscope;

[0028] Normalize the updated quaternion to get

[0029] Calculate the attitude angle

[0030] Furthermore, the three-axis velocity vector is calculated based on the acquired velocity scalar and attitude angle Specific methods include:

[0031] Solving attitude matrix based on attitude angle

[0032] Solving the velocity vector based on attitude matrix and velocity scalar

[0033] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements a method for automatically calibrating the initial posture of a cycling computer.

[0034] A cycling computer device, comprising: a sensor, a GPS, a processor and a memory, wherein the sensor is connected to the processor via a communication protocol signal, the GPS is connected to the processor via a serial port signal, and the memory is connected to the processor via an SPI signal;

[0035] The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the processor executes a method for automatically calibrating the initial posture of a cycling computer.

[0036] Beneficial effects:

[0037] 1. By calculating the initial pitch angle and roll angle in the static state of the inertial measurement unit, and then using GPS to reversely calculate the heading and speed, all the initial states of the initial position of the code table can be obtained. There is no need to use an external API interface or more sensor equipment. The cost is low, and the initial state of the user's riding can be automatically calculated in the case of magnetic signals;

[0038] 2. Taking advantage of the fact that GPS has a small average error and low cost, single-point positioning in the plane can reach the meter level. The longitude and latitude information is converted into plane coordinates to reversely calculate the yaw angle;

[0039] 3. By extracting data features from a window with a time-varying step length, dynamically monitor whether the solution process is being executed. This feature detection is a short-time domain special function detection. The data used is a time series within a window length of 5 seconds. Compared with traditional solution methods, it takes less time;

[0040] 4. GPS can be used to obtain the absolute position, while the inertial navigation system can calculate the relative displacement. The combined navigation system based on GPS / IMU can be realized by using the loose combination method;

[0041] 5. Determine the availability of the received data in real time and automatically calculate whether the data is within the threshold of the system solution. If the solution threshold is not reached, close the thread of the IMU solution of relative displacement and only use GPS for navigation application until the data meets the solution requirements, then perform initial attitude solution, and then use the data of GPS and inertial devices for fusion navigation and positioning. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1It is a structural schematic diagram of a method for automatically calibrating the initial posture of a cycling computer in a specific embodiment of the present invention;

[0043] Figure 2 It is a schematic diagram of a flow chart of a method for automatically calibrating the initial posture of a cycling computer in a specific embodiment of the present invention;

[0044] Figure 3 It is a schematic diagram of the flow chart of the GPS reverse heading method in a specific embodiment of the present invention;

[0045] Figure 4 is a schematic diagram of a planar coordinate conversion method in a specific embodiment of the present invention;

[0046] Figure 5 is a flow chart of a method for selecting a position sequence that meets the accuracy requirement in a specific embodiment of the present invention;

[0047] Figure 6 It is a schematic diagram of the module structure of a cycling computer device in a specific embodiment of the present invention. DETAILED DESCRIPTION

[0048] In order to enable those skilled in the art to better understand the technical solution of the present invention, the technical solution of the present invention is clearly and completely described below in conjunction with the accompanying drawings of the present invention. Based on the embodiments in this application, other similar embodiments obtained by ordinary technicians in this field without making creative work should all fall within the scope of protection of this application. In addition, the directional words mentioned in the following embodiments, such as "up", "down", "left", "right", etc., are only reference to the directions of the accompanying drawings. Therefore, the directional words used are used to illustrate rather than limit the invention.

[0049] like Figure 1-2 As shown, a method for automatically calibrating the initial posture of a cycling computer includes:

[0050] S100, obtaining the latitude and longitude values ​​measured by GPS and the acceleration and angular increment values ​​measured by IMU;

[0051] S200, comparing the latitude and longitude values ​​and the acceleration and angular increment values ​​with the preset GPS and IMU state parameters, and continuously calculating the yaw angle when the GPS state is available or the IMU state is static Velocity Vector Roll angle θ and pitch angle γ;

[0052] S300, when the GPS status is available and the IMU status is static, the calculated yaw angle Velocity Vector Roll angle θ i and the pitch angle γ i As the initial posture output of the code table, automatic alignment is completed.

[0053] Inertial sensors can only obtain relative changes in the carrier. If you want to obtain the absolute position of the carrier, you need to give the carrier's initial longitude and latitude information, azimuth information, and speed information, and then solve the position through iteration. By solving the initial pitch and roll angles in the static state of the inertial measurement unit, and then using GPS to reversely calculate the heading and speed, all the initial states can be obtained. From the time the pitch and roll angles are solved to the time the GPS reverses the heading, the pitch and roll angles are updated through the real-time collected IMU data, thereby ensuring the accuracy of the initial state solution value.

[0054] Further, such as Figure 3 As shown, the calculation method of the yaw angle includes: when the GPS status is available, obtaining the longitude and latitude coordinates and converting them into spatial geodetic coordinates, continuously sliding the window in the spatial geodetic coordinates, and selecting the position sequence that meets the accuracy requirements to inversely calculate the yaw angle.

[0055] This part is the main processing method of the feature data detection module in the cycling computer device. The data received by this module is the spatial geodetic coordinates (x, y, z) after coordinate conversion. The main function is to detect whether the data in the coordinate sequence meets the solution requirements. If it meets the requirements, the heading back calculation is performed. If it does not meet the requirements, it will continue to iterate until a data sequence that meets the requirements is selected.

[0056] Convert the longitude and latitude coordinates into spatial geodetic coordinates, that is, convert the coordinate representation of (longitude, latitude, altitude) into the form of (x, y, z), such as Figure 4 As shown in the figure, since the direction slope solution of feature detection needs to be performed in Euclidean space, the coordinates of the spherical space must be flattened first, and the coordinate transformation is achieved through the Gauss Krüger projection method. The main steps include:

[0057] Input: longitude lon, latitude lat

[0058] iPI=1 / π

[0059] Zonewide=3 or 6 (not much difference when applied to cycling)

[0060] a=6378137(earth's semi-major axis)

[0061] f=1 / 298.257223563(flattening rate)

[0062] Zoning solution

[0063] projNo = floor(lon / Zonewide), floor(·) is rounded down

[0064] Central Meridian:

[0065]

[0066] longitude0=longitude0*iPI

[0067] latitude0=0

[0068] Degree to radians

[0069] longitude1=lon*iPI

[0070] latitude1=lat*iPI

[0071] Intermediate variable solution

[0072] e2=2*ff 2

[0073] ee=e2*(1-e2)

[0074]

[0075] T = tan(latitudel1) 2

[0076] C=ee*cos(latitudel1) 2

[0077] A=(longitudel1-longitudel0)*cos(latitudel1)

[0078]

[0079] Coordinate transformation

[0080]

[0081]

[0082] This part is the main processing method of the coordinate system conversion module in the cycling computer device. The coordinates of the spherical space are flattened by conversion, which facilitates the calculation and use of data.

[0083] Further, such as Figure 5As shown, the method of continuously sliding a window in spatial geodetic coordinates and selecting a position sequence that meets the accuracy requirement to inversely calculate the yaw angle includes: based on the converted spatial geodetic coordinates, obtaining a plane coordinate time series of continuous epochs within a preset window range, performing a heading inverse calculation based on two adjacent coordinates in the plane coordinate time series to obtain a direction sequence and a corresponding mean square error, and if the mean square error is less than a preset accuracy threshold, inversely calculating the yaw angle based on the direction sequence; if the mean square error is greater than the preset accuracy threshold, the preset window is advanced by one step unit, and a new plane coordinate time series is obtained again for inverse calculation.

[0084] Specifically, through coordinate conversion, we can get the time series of longitude and latitude data within five seconds converted into geodetic coordinates:

[0085] (LB)→(xy)

[0086] The plane coordinate time series is as follows:

[0087] p={(xy) i |i=1,2,3,4,5}

[0088] By back-calculating the heading of two adjacent coordinates in vector p, we can get the direction sequence and solve the mean square error, because this value reflects the convergence of the data. The convergence value set here is 2°, that is, when the mean square error is less than this value, the yaw angle can be back-calculated:

[0089] θ={θ i |i=1,2,3,4}

[0090]

[0091] If std<2 (the setting of this value needs to be combined with the longitude setting of the specific product. If the accuracy is different, it needs to be adjusted according to the specific situation), the yaw angle is back-calculated. In order to meet the needs of fast solution, the window length here is set to 5, that is, the data within 5s is batched (it can be understood that this delay will only affect the first five seconds and will not affect the subsequent solution); the step size is the speed of window movement, which is related to the data update speed. Since the data update frequency of this system is 50Hz, the step size is step / 0.02s; because this system does not perform data reverse solution, the window movement direction is the time series of data update.

[0092] Furthermore, the method of selecting a position sequence that meets the accuracy requirement to inversely calculate the yaw angle includes:

[0093] Get position sequence z i ={(x,y,z) m|m=i,i+1,...,i+n}, where i is the starting time epoch corresponding to the position sequence, and the coordinate system corresponding to (x, y, z) is the northeastern sky geographic coordinate system;

[0094] Project the position sequence coordinates onto the plane to obtain the plane coordinate set

[0095] POS i ={(x,y)m|m=i,i+1,...,i+n};

[0096] Arranging the plane coordinates gives the system of equations:

[0097]

[0098] Based on the least squares method, we can get [bias k] = y T ·x·(x T x) -1 , where k is the direction slope of the cycling path in the window in the northeast sky geographic coordinate system;

[0099] Solving the yaw angle based on the inverse tangent function

[0100] This part is the main processing method of the module for solving the heading angle by direction slope in the cycling computer device. After completing the feature data detection, the feature data detection module will obtain a coordinate sequence that meets the solution requirements. This coordinate sequence is used as the input of the module for solving the heading angle by direction slope, and the spatial direction slope of the sequence is inversely calculated using the least squares method, and then the trigonometric function is inversely calculated to obtain the initial heading angle.

[0101] Furthermore, the velocity scalar is calculated based on the acquired plane coordinate set Where n is the window length, (xy)1 is the first plane coordinate in the window, (xy) n is the last plane coordinate in the window. Because the GPS update frequency of this system is 1Hz, the window length is exactly the same as the sampling interval time in value, so there is no need to multiply it by the scaling factor.

[0102] Furthermore, the calculation method of the roll angle and the pitch angle includes: when the IMU state is static, the accelerometer measures the projection of gravity in the carrier coordinate system, that is, the specific force relationship between gravity and the accelerometer is:

[0103] Since the device error of MEMS sensors is large, the projection of gravity in the north and east directions can be ignored, that is, the vertical deviation of gravity is ignored. ib b is the specific force output value, f ib b =[fibx b ,f iby b ,f ibz b ] represents the output of the accelerometer's x, y, and z axes. is the gravitational acceleration, and then the formula for calculating the roll angle θ and pitch angle γ is derived as follows:

[0104] Since bicycle navigation is carried out on the surface, that is, the altitude has not reached the level of aerospace, the influence of altitude on the inclination of gravity is not significant, so the influence of the vertical deviation of gravity on the initial attitude angle can be ignored.

[0105] Furthermore, the acceleration and angular increment values ​​measured by the IMU are obtained in real time, and the fourth-order Runge-Kutta method is used to dynamically update the solution formula of the attitude angle. The specific method is as follows:

[0106] Set the initial quaternion, in, is the initial yaw angle, θ0 is the initial roll angle, γ0 is the initial pitch angle, and q is the quaternion vector;

[0107] Then we get the fourth-order Runge-Kutta updated quaternion

[0108] Solve the related elements of the above formula through data sampling: Where h is the data sampling interval, q (t) ,q (t+h) are the quaternions at time t and t+h respectively, Respectively represent the real-time angular increments collected by the x, y, and z axes of the gyroscope;

[0109] Normalize the updated quaternion to get

[0110] Calculate the attitude angle

[0111] Furthermore, the three-axis velocity vector is calculated based on the acquired velocity scalar and attitude angle Specific methods include:

[0112] Based on attitude angle Solving the attitude matrix

[0113]

[0114] Solving the velocity vector based on attitude matrix and velocity scalar

[0115] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements a method for automatically calibrating the initial posture of a cycling computer.

[0116] like Figure 6 As shown, a cycling computer device includes: a sensor, a GPS, a processor and a memory, wherein the sensor is connected to the processor via a communication protocol signal, the GPS is connected to the processor via a serial port signal, and the memory is connected to the processor via an SPI signal;

[0117] The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the processor executes a method for automatically calibrating the initial posture of a cycling computer.

[0118] Furthermore, a cycling computer device includes a GPS reverse heading module and an inertial sensor initial attitude angle calculation module, and the GPS reverse heading module and the inertial sensor initial attitude angle calculation module are used in a loose combination to perform fusion navigation and positioning. GPS can obtain absolute position, and the inertial navigation system can calculate relative displacement. The loose combination method can realize a combined navigation system based on GPS / IMU. GPS has low instantaneous stability, large error, and large discreteness, but small average error and low cost. This process takes advantage of the small average positioning error of GPS positioning and uses continuous positioning data in a short time domain window for position fitting.

[0119] Furthermore, the GPS reverse heading module includes a coordinate system conversion module, a feature data detection module and a direction slope calculation module for the heading angle.

[0120] Related professional vocabulary explanation:

[0121] IMU: Inertial Measurement Unit, a sensor mainly used to detect and measure acceleration and rotational motion.

[0122] Loose combination: Loose combination navigation system is a relatively simple combination method. In this method, GPS and SINS (strapdown inertial navigation system) work independently, and finally the data of the two are integrated to correct the relevant parameters of the SINS system, and finally give a better navigation estimation result.

[0123] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, the embodiments should be considered exemplary and non-restrictive in all respects, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims be included in the present invention.

[0124] The present invention has been described in detail above. The above description is only a preferred embodiment of the present invention and should not limit the scope of implementation of the present invention. That is, all equivalent changes and modifications made within the scope of this application should still fall within the scope of the present invention.

Claims

1. A method for automatically calibrating the initial posture of a cycling computer, characterized in that: include: Get the latitude and longitude values ​​measured by GPS and the acceleration and angular increment values ​​measured by IMU; Compare the latitude and longitude values, acceleration and angular increment values ​​with the preset GPS and IMU status parameters, and continuously calculate the yaw angle when the GPS status is available or the IMU status is static. Velocity Vector The rolling angle θ and the pitch angle γ, wherein the calculation method of the yaw angle includes: when the GPS status is available, obtaining the longitude and latitude coordinates and converting them into spatial geodetic coordinates; based on the converted spatial geodetic coordinates, obtaining the plane coordinate time series of continuous epochs within a preset window range, performing heading backcalculation based on two adjacent coordinates in the plane coordinate time series to obtain a direction sequence and a corresponding mean square error, and if the mean square error is less than a preset accuracy threshold, performing yaw angle backcalculation based on the direction sequence; if the mean square error is greater than the preset accuracy threshold, the preset window is advanced by one step unit, and a new plane coordinate time series is re-acquired for backcalculation; When the GPS status is available and the IMU status is static, the calculated yaw angle Velocity Vector Roll angle θ i and the pitch angle γ i As the initial posture output of the code table, automatic alignment is completed.

2. The method for automatically calibrating the initial posture of a cycling computer according to claim 1, characterized in that: The methods for selecting a position sequence that meets the accuracy requirements to backcalculate the yaw angle include: Get position sequence z i ={(x,y,z) m |m=i,i+1,...,i+n}, where i is the starting time epoch corresponding to the position sequence, and the coordinate system corresponding to (x, y, z) is the northeastern sky geographic coordinate system; Project the position sequence coordinates onto the plane to obtain the plane coordinate set pos i ={(x,y)m|m=i,i+1,...,i+n}; Arranging the plane coordinates gives the system of equations: Based on the least squares method, we can get [biask] ​​= y T ·x·(x T x) -1 , where k is the direction slope of the cycling path in the window in the northeast sky geographic coordinate system; Solving the yaw angle based on the inverse tangent function 3. The method for automatically calibrating the initial posture of a cycling computer according to claim 2, characterized in that: Calculate the velocity scalar based on the acquired plane coordinate set Where n is the window length, (xy)1 is the first plane coordinate in the window, (xy) n The last plane coordinate in the window.

4. The method for automatically calibrating the initial posture of a cycling computer according to claim 3, characterized in that: The calculation method of the roll angle and pitch angle includes: when the IMU state is static, the accelerometer measures the projection of gravity in the carrier coordinate system, that is, the specific force relationship between gravity and the accelerometer is: Among them, f ib b is the specific force output value, Represents the output of the accelerometer's x, y, and z axes. is the gravitational acceleration, and then the formula for calculating the roll angle θ and pitch angle γ is derived as follows:

5. The method for automatically calibrating the initial posture of a cycling computer according to claim 4, characterized in that: The acceleration and angular increment values ​​measured by the IMU are obtained in real time, and the fourth-order Runge-Kutta method is used to dynamically update the solution formula for the attitude angle. The specific method is as follows: Set the initial quaternion, in, is the initial yaw angle, θ0 is the initial roll angle, γ0 is the initial pitch angle, and q is the quaternion vector; Then we get the fourth-order Runge-Kutta updated quaternion Solve the related elements of the above formula through data sampling: Where h is the data sampling interval, q (t) ,q (t+h) are the quaternions at time t and t+h respectively, Respectively represent the real-time angular increments collected by the x, y, and z axes of the gyroscope; Normalize the updated quaternion to get Calculate the attitude angle 6. The method for automatically calibrating the initial posture of a cycling computer according to claim 5, characterized in that: Calculate the three-axis velocity vector based on the acquired velocity scalar and attitude angle Specific methods include: Solving attitude matrix based on attitude angle Solving the velocity vector based on attitude matrix and velocity scalar 7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

8. A cycling computer device, characterized in that: include: Sensor, GPS, processor and memory, the sensor and processor are connected via communication protocol signals, the GPS and processor are connected via serial port signals, and the memory and processor are connected via SPI signals; The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the processor executes the method according to any one of claims 1 to 6.