aboutsummaryrefslogtreecommitdiffstats
path: root/dpd/main.py
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-09-02 19:18:01 +0200
committerandreas128 <Andreas>2017-09-02 19:18:01 +0200
commit719238f0adc19fb3de3b4fd2695b6bb30d4c9dd5 (patch)
tree05fb049f22a526dd3b2c46b99f7546a84f4938a3 /dpd/main.py
parent6907d576b69ae065f25584fd4c6635c0c26beab2 (diff)
downloaddabmod-719238f0adc19fb3de3b4fd2695b6bb30d4c9dd5.tar.gz
dabmod-719238f0adc19fb3de3b4fd2695b6bb30d4c9dd5.tar.bz2
dabmod-719238f0adc19fb3de3b4fd2695b6bb30d4c9dd5.zip
Cleanup logging and plots
Diffstat (limited to 'dpd/main.py')
-rwxr-xr-xdpd/main.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/dpd/main.py b/dpd/main.py
index a466344..57bfed6 100755
--- a/dpd/main.py
+++ b/dpd/main.py
@@ -66,7 +66,7 @@ parser.add_argument('--rxgain', default=30,
help='TX Gain',
required=False,
type=int)
-parser.add_argument('--samps', default='20480',
+parser.add_argument('--samps', default='81920',
help='Number of samples to request from ODR-DabMod',
required=False)
parser.add_argument('-i', '--iterations', default='1',
@@ -96,9 +96,9 @@ meas = Measure.Measure(samplerate, port, num_req)
adapt = Adapt.Adapt(port_rc, coef_path)
coefs_am, coefs_pm = adapt.get_coefs()
if cli_args.load_poly:
- model = Model.Model(coefs_am, coefs_pm)
+ model = Model.Model(coefs_am, coefs_pm, plot=True)
else:
- model = Model.Model([1, 0, 0, 0, 0], [0, 0, 0, 0, 0])
+ model = Model.Model([1, 0, 0, 0, 0], [0, 0, 0, 0, 0], plot=True)
adapt.set_txgain(txgain)
adapt.set_rxgain(rxgain)
adapt.set_coefs(model.coefs_am, model.coefs_pm)
@@ -125,7 +125,7 @@ for i in range(num_iter):
off = SA.calc_offset(txframe_aligned)
tx_mer = MER.calc_mer(txframe_aligned[off:off + c.T_U])
- rx_mer = MER.calc_mer(rxframe_aligned[off:off + c.T_U])
+ rx_mer = MER.calc_mer(rxframe_aligned[off:off + c.T_U], debug=True)
logging.info("MER with lag in it. {}: TX {}, RX {}".
format(i, tx_mer, rx_mer))
except Exception as e: