From a11b8c5b13654d69286c6661b4e5eee2d7b0cc59 Mon Sep 17 00:00:00 2001 From: andreas128 Date: Sat, 19 Aug 2017 17:38:33 +0200 Subject: Fix normalization to median of tx --- dpd/src/Measure.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dpd') diff --git a/dpd/src/Measure.py b/dpd/src/Measure.py index 5872bda..e9493fa 100644 --- a/dpd/src/Measure.py +++ b/dpd/src/Measure.py @@ -80,8 +80,8 @@ class Measure: else: rxframe = np.array([], dtype=np.complex64) - txframe = txframe / np.median(np.abs(txframe)) - rxframe = rxframe / np.median(np.abs(rxframe)) + # Normalize received signal with sent signal + rxframe = rxframe / np.median(np.abs(rxframe)) * np.median(np.abs(txframe)) if logging.getLogger().getEffectiveLevel() == logging.DEBUG: txframe_path = ('/tmp/txframe_fft_' + -- cgit v1.2.3