aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-08-11 18:41:16 +0200
committerandreas128 <Andreas>2017-08-11 18:41:16 +0200
commit5671975649f47212eca8582bbed85669a295d3e8 (patch)
tree329ae814388523347c4e3830ca8179cb915100a0
parent0e593e6d15e815f32524c84d7165393007027952 (diff)
downloaddabmod-5671975649f47212eca8582bbed85669a295d3e8.tar.gz
dabmod-5671975649f47212eca8582bbed85669a295d3e8.tar.bz2
dabmod-5671975649f47212eca8582bbed85669a295d3e8.zip
Add loop for measure, model, adapt
-rwxr-xr-xdpd/main.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/dpd/main.py b/dpd/main.py
index 1d525af..d7e2706 100755
--- a/dpd/main.py
+++ b/dpd/main.py
@@ -52,9 +52,10 @@ adapt = Adapt.Adapt(port_rc, coef_path)
coefs = adapt.get_coefs()
model = Model.Model(coefs)
-txframe_aligned, rxframe_aligned = meas.get_samples()
-coefs = model.get_next_coefs(txframe_aligned, rxframe_aligned)
-adapt.set_coefs(coefs)
+for i in range(10):
+ txframe_aligned, _, rxframe_aligned, _ = meas.get_samples()
+ coefs = model.get_next_coefs(txframe_aligned, rxframe_aligned)
+ adapt.set_coefs(coefs)
# The MIT License (MIT)
#