The invention discloses an all-attitude calculation method for an inertial navigation variable-length rotating shaft and a rotating angle. The all-attitude calculation method comprises the following steps: calculating to obtain theta0, rhox0, rhoy0 and rhoz0; determining the
angular velocity # imgabs0 # of the body of the strapdown inertial
system relative to the navigation coordinate
system at the tk moment, and resolving to obtain theta k, rho xk, rho yk and rho zk based on a
differential equation; according to the theta < k >, the rho < x > < k >, the rho < y > < k >, the rho < z > < k > and the # imgabs < 1 > < 1 >, updating and resolving to obtain theta < k + 1 >, rho < x > < k + 1 >, rho < y > < k + 1 > and rho And according to theta < k + 1 >, rho < x > < k + 1 >, rho < y > < k + 1 > and rho < z > < k + 1 >, updating the coordinate
transformation matrix to obtain # imgabs < 2 >, and performing speed updating and position updating based on the updated coordinate
transformation matrix # imgabs < 3 >. According to the method, output information of the
accelerometer and the
gyroscope serves as input information of a
kinematics equation of the variable-length rotating shaft and the rotating angle, real-time updating of a coordinate
transformation matrix of a carrier relative to a navigation coordinate
system is achieved through integral resolving, no
singular value occurs in the resolving process, the resolving result is unique, and the method is suitable for large-scale popularization and application. And the requirements of all postures and high precision of the body coordinate system relative to the navigation coordinate system are ensured.