diff options
author | andreas128 <Andreas> | 2017-08-11 18:41:16 +0200 |
---|---|---|
committer | andreas128 <Andreas> | 2017-08-11 18:41:16 +0200 |
commit | 5671975649f47212eca8582bbed85669a295d3e8 (patch) | |
tree | 329ae814388523347c4e3830ca8179cb915100a0 /dpd/main.py | |
parent | 0e593e6d15e815f32524c84d7165393007027952 (diff) | |
download | dabmod-5671975649f47212eca8582bbed85669a295d3e8.tar.gz dabmod-5671975649f47212eca8582bbed85669a295d3e8.tar.bz2 dabmod-5671975649f47212eca8582bbed85669a295d3e8.zip |
Add loop for measure, model, adapt
Diffstat (limited to 'dpd/main.py')
-rwxr-xr-x | dpd/main.py | 7 |
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) # |