To study the law that governs the complex movements of the mechanism in the process of automatic weapon operation, the velocity tracking test technology of photon Doppler velocimetry is introduced to accurately measure velocity, displacement and acceleration, on the condition that there are long displacement and rapid velocity change. In the traditional way, out of interference signal time-frequency (TF) transformation draws TF distribution, and then by modulus maxima frequency extraction, comes to the law of velocity change. Due to the influence resulting from the change of fundamental signal as well as that of light intensity signal in the test, based on the TF distribution obtained by TF transformation, the traditional modulus maxima frequency extraction can extract frequency signals, but they show abnormal sudden changes at some moments, making the velocity discontinuous, unsmooth and unreal, which brings obvious errors to the subsequent calculation of acceleration and accurate displacement. Addressing the above-mentioned problems, this paper proposes a ridge extracting correction algorithm based on modulus maxima frequency extraction; this method, based on a large number of experiments where rodless cylinders are used to simulate the motion of a gun automatic mechanism, conducts a detailed calculation and analysis of the experimental results. A comparison of the two algorithms’ processing results, in terms of the speed, displacement and acceleration, suggests that the ridge extracting correction algorithm successfully corrects the frequency selection error, which draws a more continuous and, therefore, effective curve of the velocity change, and by so doing, the error of the displacement test (within 1.36 m displacement) is reduced from more than 3.6% to less than 0.58%, and the uncertainty dropped 97.07%. All these show that the accurate measurement of velocity, displacement and acceleration, with sudden and rapid velocity changes considered, is realized successfully.