The invention belongs to the field of optical measurement, and is a method for measuring the rotation angle of a rotating shaft that can suppress the influence of the inclination angle 
rotation error of a shaft 
system.  The measurement principle 
system of the present invention is shown in FIG. 1 , the rotating shaft 2 with the optical wedge 5 is placed between the 
autocollimator 1 and the reflector 3 .  Due to the 
refraction effect of the optical wedge 5, the beam emitted by the 
autocollimator 1 is reflected by the reflector 3, forms a 
deflection angle β with the outgoing beam, returns to the 
autocollimator 1, and converges into a light point image; when the rotating shaft 2 and the light  When the wedge 5 rotates integrally, the reflected 
light beam rotates around the axis of the rotating shaft 2, and the 
light spot image in the autocollimator 1 moves along a circular trajectory; the computer 4 records the 
centroid coordinates of the 
light spot image on the circumference, and fits the trajectory circle  The coordinates of the center of the circle, and then specify the starting point A and the end point B on the circumference, and use the coordinate values of A and B to calculate the corresponding circle center opening angle, which is the rotation angle of the rotation axis 2 to be measured from A to B.  In the present invention, the 
rotation error of the inclination angle of the shaft 
system hardly affects the measurement accuracy of the rotation angle.