The invention discloses a carrier 
smoothing code 
pseudorange technology-based dynamic attitude positioning 
algorithm method, which comprises the following steps of: (1) detecting whether 
cycle slip occurs in the current epoch by using a three-difference method, if so, using the code observation of the current epoch, otherwise, acquiring the smoothed code observation by using Hatch filtering and recording the 
smoothing window length k; (2) solving the floating solution of the 
integer ambiguity and the variance-
covariance matrix of the floating solution by utilizing the code observation and the code observation of the current epoch; (3) taking the floating solution of the 
integer ambiguity and the variance-
covariance matrix of the floating solution as initial parameters, substituting the initial parameters into an 
LAMBDA algorithm for solving the fixed solution of the 
ambiguity, and acquiring former N 
ambiguity candidate values; and (4) performing the 
ambiguity test on the former N ambiguity candidate values in turn, until the ambiguity candidate solution meeting the constraint condition is found, and solving the obtained attitude angle. The carrier 
smoothing code 
pseudorange technology-based dynamic attitude positioning 
algorithm method does not have the problem of initialization time, can be effectively used for real-time dynamic attitude measurement, and can self-adaptively regulate the smoothing window length and the ambiguity candidate solution space aiming at the occurrence of the 
cycle slip. Therefore, the success rate and the 
overall efficiency of the algorithm are improved.