The invention discloses a two-stage
hysteresis and
coupling compensation method and device for a fast reflecting mirror, and solves the technical problem that the existing
hysteresis compensation method for the fast reflecting mirror cannot counteract irregular nonlinear errors during compensation, so that the compensation precision is poor. The method comprises the following steps: when
hysteresis compensation needs to be carried out on the fast reflecting mirror, constructing a fast reflecting mirror full-
stroke hysteresis loop
data set and segmenting the fast reflecting mirror full-
stroke hysteresis loop
data set to obtain a plurality of ascending and descending hysteresis segmentation intervals; constructing a corresponding
linear coefficient lookup table based on the intervals; determining parameters such as a current
pointing error and a target trajectory angle, and extracting a target
local linear coefficient according to a
voltage working state; calculating a first-stage compensation
voltage and measuring a compensation angle, and constructing LSTM training data; and training the LSTM based on a
Bayesian optimization algorithm, testing the fast steering mirror through the trained model in combination with the first-stage compensation
voltage, and outputting a final compensation angle.