With the development of modern radar technique, especially the introduction of phased array radar technique, high precision has become the inevitable trend of radar technique development. Ship rolling and heading have a certain impact on the accuracy of shipboard radar. A high-precision algorithm based on shipboard one-dimensional phased array secondary radar is proposed to realize the precise and stable tracking of shipboard secondary radar and improve the tracking accuracy.