summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dpd/src/Measure.py4
1 files changed, 2 insertions, 2 deletions
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_' +