Control Algorithm in Optical Feedback Control¶
The optical feedback control (OFC) estimates the offset (\(\vec{u}\)) of degree of freedom (DOF) at time \(k+1\) based on the wavefront error (\(\vec{y}_{k}\)) at time \(k\). The feedback amplitude is based on the gain (\(g\)). The first step is to evaluate the optical state (\(\vec{x}_{k}\)) at time \(k\) in the basis of DOF. The second step is to evaluate \(\vec{u}\). The final step is to decide the feedback amplitude based on \(g\).
The optical state is defined as:
\(\textbf{A}\) is a subset of the sensitivity matrix \(\textbf{M}\) that is a three-dimension matrix. For each element \(\textbf{M}_{ijk}\), \(i\) is in the basis of optical field (\(\mathbb{O}\)), \(j\) is in the basis of Zernike polynomial(\(\mathbb{Z}\)), and \(k\) is in the basis of DOF(\(\mathbb{D}\)). \(\textbf{A}\) equals \([\textbf{M}_1, \textbf{M}_2, \cdots, \textbf{M}_n]^{T}\), where \(n\in\mathbb{O}\) is the interested optical field point and each element \(\textbf{M}_{n, jk}\) in \(\textbf{M}_{n}\) is \(\textbf{M}_{njk}\) actually. \(\vec{y}_{2}\) is the wavefront error correction between the central raft and corner wavefront sensor. \(\vec{y}_{\text{c}}(\ell)\) is the intrinsic wavefront error from telescope optical design as a function of filter band (\(\ell\in\{\text{u}, \text{g}, \text{r}, \text{i}, \text{z}, \text{y}\}\)). \(\vec{y}_{\text{c}}\) equals \([\vec{y}_{\text{c},1}, \vec{y}_{\text{c},2}, \cdots,\vec{y}_{\text{c},n}]^{T}\) where \(n\in\mathbb{O}\).
The pseudo-inverse method is a straight-forward way to solve this over-determined system. The solution is:
where \(\vec{x}_{k}\) is the least norm solution of optical state.
Optimal Integral Controller (OIC)¶
To evaluate \(\vec{u}\), the OIC approach uses a cost function (\(J(\vec{u})\)) at time \(k+1\) defined to be:
where \(\vec{x}_{k+1}=\vec{x}_{k} + \vec{u}\) is the predicted state optical state, \(\textbf{Q}\) is the image quality matrix, \(\textbf{H}\) is the control authority matrix, and \(\rho\) is the penalty. Based on the Gaussian quadrature rule, the cost function can be rewritten to be:
where \(w_{i}\) is the weighting ratio for the optical filed point \(i\).
Differentiate \(J(\vec{u})\) with respect to \(\vec{u}\) and set the value as 0(Cost Function Minimization), we have:
where the matrix \(\textbf{F}\) is:
For the control authority matrix \(\textbf{H}\), it is defined to be:
where \(\vec{h}\) is the authority of subsystem and \(\vec{\rho}_{h}\) is the penalty of \(\vec{h}\). The change of 1 um (e.g. hexapod position) is assumed to be the same as 1 N*RMS (e.g. mirror bending mode).
For the image quality matrix \(\textbf{Q}\), we choose:
where \(\vec{p}\) is the image quality vector. It relates to the wavefront error \(\vec{y}\) as the following:
And we have:
This means \(\textbf{Q} = \textbf{A}^{T}\textbf{C}^{T}\textbf{C}\textbf{A}\). The matrix \(\textbf{C}^{T}\textbf{C}\) is chosen to be:
where \(\vec{\alpha}\) is the alpha value of normalized point source sensitivity (PSSN) in the basis \(\mathbb{Z}\). The values are computed by fitting \(1 - PSSN = \alpha_k \delta_k^2\), where \(\delta_k\) is the Zernike coefficient perturbation in microns. The units of \(\alpha_k\) are in \(\mu m^{-2}\).
We can rewrite the matrix \(\textbf{F}\) as:
The offset \(\vec{u}\) is:
Consider the correction of wavefront error between center and corcer, we rewrite the above equation as:
Consider three different reference points “x0, “0”, and “x00”.
- x0
means the offset will only trace the previous one;
- 0
means the offset will trace the real value and target for 0;
- x00
means the offset will only trace the relative changes of offset without regarding the real value.
Assume the telescope’s state is \(\vec{s}_{0}\) in the time \(k=0\) and \(\vec{s}\) in time \(k\), and we can intentionally shift \(\vec{m}_{x}\) to be:
For the feedback control, instead of sending the full correction, it is usually to sent a ratio of offset. So the final correction will be \(g\vec{u}\) instead of \(\vec{u}\).
Proportional-Integral-Derivative Controller (PID)¶
The PID controller is a feedback control loop that calculates the offset of DOF based on the error between the desired setpoint and the estimated optical state. This is a standard controller that works well when using a reduced basis of DOF where the degenerate combinations of Degrees of Freedom have been removed.