The invention relates to a
fully automatic magnetic compensation method for a SERF atomic spin
gyroscope based on a PID
algorithm. This method performs three-axis magnetic compensation in a
fully automatic sequence. First, a
square wave scanning
signal is loaded on the scanning axis coil, and the steady-state values of the two
gyroscope output signals caused by the high and low levels of the scanning axis coil
square wave are collected and filtered. Finally, the difference between the two steady-state values is made, and the PID
algorithm is applied to the difference, and the PID parameters are automatically assigned according to the difference, and the difference at this moment and the difference at the previous moment are substituted into the PID
algorithm to calculate a step
voltage. And load the step amount to the compensation axis, repeat the above steps until the steady-state difference of the gyro output approaches zero and enters the error zone, then the
magnetic field of the compensation axis coil reaches the
compensation point, the single-axis compensation ends, and the next axis compensation starts. This method is automatically executed by the algorithm for three-axis
magnetic field compensation, and each axis can be compensated to the zero magnetic
compensation point. Compared with manual magnetic compensation, the speed is faster, the accuracy is better than 0.1nT, the operation is simple, and the volume is smaller.