The basis of the Spiral Scan Align Algorithm is counter-clockwise spiral movement of the laser. The idea is to scan outward from a starting position, while keeping track of local maxima on each unit.
In the next iteration of the algorithm, the center of the spiral is set to the position of the previously found maxima. This step is repeated until the signal strength is satisfactory or convergence is reached.
Initialization
1.
Move Primary Unit to position (0,0)
2.
Move Secondary Unit to position (0,0)
3.
Move Primary Unit to Primary Maximum in case it was found during movement
4.
Move Secondary Unit to Secondary Maximum in case it was found during movement