aboutsummaryrefslogtreecommitdiffstats
path: root/dpd/main.py
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-08-21 11:43:36 +0200
committerandreas128 <Andreas>2017-08-21 11:43:36 +0200
commit83497fbdaf6486571ed70b41dae42f3c13432c1c (patch)
tree1b3993a2ed80ff309c5518f04ca086313287e656 /dpd/main.py
parentc05ff22af0c65d71a829add2e3cbdbe76e4169f7 (diff)
downloaddabmod-83497fbdaf6486571ed70b41dae42f3c13432c1c.tar.gz
dabmod-83497fbdaf6486571ed70b41dae42f3c13432c1c.tar.bz2
dabmod-83497fbdaf6486571ed70b41dae42f3c13432c1c.zip
Change dpd to real coefficients
Diffstat (limited to 'dpd/main.py')
-rwxr-xr-xdpd/main.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/dpd/main.py b/dpd/main.py
index e22743b..560d142 100755
--- a/dpd/main.py
+++ b/dpd/main.py
@@ -48,9 +48,21 @@ num_req = int(cli_args.samps)
samplerate = int(cli_args.samplerate)
meas = Measure.Measure(samplerate, port, num_req)
+
adapt = Adapt.Adapt(port_rc, coef_path)
coefs = adapt.get_coefs()
-model = Model.Model(coefs)
+#model = Model.Model(coefs)
+model = Model.Model([0.8, 0, 0, 0, 0])
+adapt.set_txgain(60)
+
+tx_gain = adapt.get_txgain()
+rx_gain = adapt.get_rxgain()
+dpd_coefs = adapt.get_coefs()
+logging.info(
+ "TX gain {}, RX gain {}, dpd_coefs {}".format(
+ tx_gain, rx_gain, dpd_coefs
+ )
+)
for i in range(10):
txframe_aligned, tx_ts, rxframe_aligned, rx_ts = meas.get_samples()