The tuning of the SR tx and ty demodulation phase is quite hard since it is a very noisy and slow signal.
This time I tried a different approach.
I opened the SR TX loop, I made some steps in the alignment and then I found the demodulation phase that best reconstructed the I signal as:
I_tuned = A*(I_initial*(cos(phi))-Q_initial*(sin(phi))+offset
the outcome of the analysis is shown in figure 1 and the phase has been tuned to be 3.4 rad
lets see if this approach is reliable enough