From 00e858d92d83594bf85177fab5139fbc28741c3c Mon Sep 17 00:00:00 2001 From: andreas128 Date: Thu, 14 Sep 2017 16:31:13 +0200 Subject: Add tx_agc --- dpd/main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dpd/main.py b/dpd/main.py index 208a4ff..5f35f50 100755 --- a/dpd/main.py +++ b/dpd/main.py @@ -142,8 +142,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] -- cgit v1.2.3