aboutsummaryrefslogtreecommitdiffstats
path: root/dpd/main.py
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-09-29 18:50:41 +0200
committerandreas128 <Andreas>2017-09-29 18:50:41 +0200
commit5e3ca125bfc56d31b9c9ef819eab9171b73b7333 (patch)
tree297d400f754742faf6bfc4fc7eff9858163c845c /dpd/main.py
parent64e0193824262e93e7cd67bb8c3af68d278f990c (diff)
downloaddabmod-5e3ca125bfc56d31b9c9ef819eab9171b73b7333.tar.gz
dabmod-5e3ca125bfc56d31b9c9ef819eab9171b73b7333.tar.bz2
dabmod-5e3ca125bfc56d31b9c9ef819eab9171b73b7333.zip
Cleanup
Diffstat (limited to 'dpd/main.py')
-rwxr-xr-xdpd/main.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/dpd/main.py b/dpd/main.py
index 4e9647a..b2f930a 100755
--- a/dpd/main.py
+++ b/dpd/main.py
@@ -176,8 +176,10 @@ tx_agc = TX_Agc(adapt, c)
agc = Agc(meas, adapt, c)
agc.run()
-state = "measure"
+state = 'report'
i = 0
+lr = None
+n_meas = None
while i < num_iter:
try:
# Measure
@@ -218,6 +220,8 @@ while i < num_iter:
# Report
elif state == 'report':
try:
+ txframe_aligned, tx_ts, rxframe_aligned, rx_ts, rx_median = meas.get_samples()
+
# Store all settings for pre-distortion, tx and rx
adapt.dump()