EttusResearch / gr-doa

Direction-of-Arrival (DoA) Demo for GNU Radio (OOT) with the USRP™ X-Series and TwinRX™
GNU General Public License v3.0
102 stars 52 forks source link

Change method of subtracting phases in phase_offset_est #5

Closed ptrkrysik closed 5 years ago

ptrkrysik commented 5 years ago

Current method of computing phase differences gives erroneous results during phase wraps. This can be seen here (ignore "Amplitude" as y-axis label):

Zrzut ekranu z 2019-03-25 12-21-28

This commit fixes that by using complex conjugate multiplication block to compute signal whose phase is difference of the the phase of two input signals. As this operation is immune to phase wraps it always gives correct result. The result after this change is following: Zrzut ekranu z 2019-03-25 13-56-28

The tests were done with use of this flowgraph: Zrzut ekranu z 2019-03-25 12-10-22

test_phases.grc.zip