diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-09-14 16:31:35 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-09-14 16:31:35 +0200 |
commit | 67ca2e1249eb4805ea064d5fa99b442afc560fc5 (patch) | |
tree | 6363c206521212c42b07db70a92b091ae50378a2 /dpd | |
parent | ef78d66f6b3afc47121f7352d961943fa29d1518 (diff) | |
parent | 00e858d92d83594bf85177fab5139fbc28741c3c (diff) | |
download | dabmod-67ca2e1249eb4805ea064d5fa99b442afc560fc5.tar.gz dabmod-67ca2e1249eb4805ea064d5fa99b442afc560fc5.tar.bz2 dabmod-67ca2e1249eb4805ea064d5fa99b442afc560fc5.zip |
Merge LUT into 'next_memless'
Diffstat (limited to 'dpd')
-rwxr-xr-x | dpd/main.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dpd/main.py b/dpd/main.py index 084ccd5..3069575 100755 --- a/dpd/main.py +++ b/dpd/main.py @@ -156,8 +156,12 @@ while i < num_iter: # Measure if state == "measure": txframe_aligned, tx_ts, rxframe_aligned, rx_ts, rx_median = meas.get_samples() + rxframe_aligned.tofile("/tmp/rxframe_aligned.np") + if tx_agc.adapt_if_necessary(txframe_aligned): + continue + tx, rx, phase_diff, n_per_bin = extStat.extract(txframe_aligned, rxframe_aligned) - n_use = int(len(n_per_bin) * 0.6) + n_use = int(len(n_per_bin) * 0.35) tx = tx[:n_use] rx = rx[:n_use] phase_diff = phase_diff[:n_use] |