summaryrefslogtreecommitdiffstats
path: root/dpd/src
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-08-19 17:38:33 +0200
committerandreas128 <Andreas>2017-08-19 17:38:33 +0200
commita11b8c5b13654d69286c6661b4e5eee2d7b0cc59 (patch)
tree1c6a3fad617e60ca6bc4783df6a537f35e01f6fa /dpd/src
parentc129deaf0947ce955b69fe40544a5408e1e2fdc7 (diff)
downloaddabmod-a11b8c5b13654d69286c6661b4e5eee2d7b0cc59.tar.gz
dabmod-a11b8c5b13654d69286c6661b4e5eee2d7b0cc59.tar.bz2
dabmod-a11b8c5b13654d69286c6661b4e5eee2d7b0cc59.zip
Fix normalization to median of tx
Diffstat (limited to 'dpd/src')
-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_' +