I have an optical system that looks as follows:
Sketch of optical system
There is a light beam shining on a mirror with a direction that is controlled using $\alpha$ and $\beta$ as shown in the sketch. The two green planes are parallel detector planes on which the incoming light beam can be registered (Points $R_1$ and $R_2$). The goal is to steer the beam such that it goes exactly through $P_{1,goal}$ and $P_{2,goal}$ . It can be done iteratively, however I want to calculate the optimal $\alpha$ and $\beta$ such that the beam fulfills this condition. The main issue is that I don't know much about the optical system:
- The distances between the two green detector planes are not known
- The absolute values of angles $\alpha$ and $\beta$ are not known (the relative angles are known however!)
- The location of the light source $S$ is not known
However, I know the position of $P_{1,goal}$ and $P_{2,goal}$ on their corresponding plane and I know $R_1$ and $R_2$ (as this is measured by the detector). Moreover, whenever $\alpha$ or $\beta$ is altered, I know by how much.
I tried to approach this problem by using linear algebra. I could come up with the following forumlas that hold for my sketch (where $i=(1,\dots,N)$ denote the different points for each beam I record):
$$\tag1\overrightarrow{P_i^*}= \overrightarrow{S}-\frac{(\overrightarrow{S}-\overrightarrow{P})\cdot\overrightarrow{n_d}}{\overrightarrow{n_d}\cdot\overrightarrow{n_{s,i}}}\cdot\overrightarrow{n_{s,i}} $$ $$\tag2 \overrightarrow{n_{r,i}}=\overrightarrow{n_{s,i}}-2\cdot \frac{\overrightarrow{n_{d}}\cdot\overrightarrow{n_{s,i}}}{\left \| \overrightarrow{n_{d}} \right \|^2}\cdot\overrightarrow{n_{d}} $$ $$ \tag3 \overrightarrow{n_{r,i}}=\overrightarrow{R_{1,i}}-\overrightarrow{P_{i}^*}=\overrightarrow{R_{2,i}}-\overrightarrow{P_{i}^*}$$ However, in my opinion there are too many unknowns in the formulas to calculate anything properly. Hence, I am looking for different approaches towards tackling this problem. I can record as many $R_1$ and $R_2$ and their corresponding angles as I want, so I think starting from this I should be able to find a unique solution.
Any help would be highly appreciated!
If the reference for angle $\beta$ is parallel to $Y$-axis, and ray $P_{1,goal}-P_{2,goal}$ is also perpendicular to $Y$-axis then the angle between $n_d$ (perpendicular to the mirror) and $n_r$ is $\beta$. By Reflection Law, then the angle between $n_d$ and $n_s$ is also $\beta$. Then $\alpha=\pi/2-2\beta$
This means than the ray $n_s$ may not pass through point $S$.
If we know, for sure, that it does pass through $S$ then we need to move the mirror horizontally/vertically until it succeed.
To solve this problem we need more data: