aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-09-14 16:31:13 +0200
committerandreas128 <Andreas>2017-09-14 16:31:13 +0200
commit00e858d92d83594bf85177fab5139fbc28741c3c (patch)
treee98d460962e7f7f58bb5c7052e2e90e76f7ce066
parentbf32d4e1efb87eb7a51207281f2565ee54e1aee2 (diff)
downloaddabmod-00e858d92d83594bf85177fab5139fbc28741c3c.tar.gz
dabmod-00e858d92d83594bf85177fab5139fbc28741c3c.tar.bz2
dabmod-00e858d92d83594bf85177fab5139fbc28741c3c.zip
Add tx_agc
-rwxr-xr-xdpd/main.py6
1 files changed, 5 insertions, 1 deletions
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]