When I calculate from FFT the phase shift like that:
atan2(fft.imag(),fft.real()) * 180 / M_Pi
It always gives me the value between -180° and +180°. And when phase is shifted further, for example +181°, it suddenly becomes -179°. Which is untrue - phase was not shifted back.
Of course that results are understand for me, I just use pure
atan2() so I can’t expect anything else. I need to update it. I think it should be something like that:
(atan2(fft.imag(),fft.real()) * 180 / M_Pi) + (n * 180)
But the question is, how can I find
n from my FFT calculations?