From 5671975649f47212eca8582bbed85669a295d3e8 Mon Sep 17 00:00:00 2001 From: andreas128 Date: Fri, 11 Aug 2017 18:41:16 +0200 Subject: Add loop for measure, model, adapt --- dpd/main.py | 7 ++++--- 1 file 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) # -- cgit v1.2.3