aboutsummaryrefslogtreecommitdiffstats
path: root/dpd
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-29 09:10:09 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-29 09:10:09 +0100
commit9e553773d3e24a9b3e1044fa1ef6b09532992451 (patch)
treef1f0563ec9ee44437731267d29c40776ee8e7a3a /dpd
parenta2df42ad09b27685d51d974ab86a306276f43a72 (diff)
downloaddabmod-9e553773d3e24a9b3e1044fa1ef6b09532992451.tar.gz
dabmod-9e553773d3e24a9b3e1044fa1ef6b09532992451.tar.bz2
dabmod-9e553773d3e24a9b3e1044fa1ef6b09532992451.zip
DPDCE improve status
Diffstat (limited to 'dpd')
-rwxr-xr-xdpd/main.py19
1 files changed, 9 insertions, 10 deletions
diff --git a/dpd/main.py b/dpd/main.py
index 1a2d696..093f227 100755
--- a/dpd/main.py
+++ b/dpd/main.py
@@ -123,7 +123,7 @@ from src.Model import Lut, Poly
import src.Heuristics as Heuristics
from src.Measure import Measure
from src.ExtractStatistic import ExtractStatistic
-from src.Adapt import Adapt
+from src.Adapt import Adapt, dpddata_to_str
from src.RX_Agc import Agc
from src.TX_Agc import TX_Agc
from src.Symbol_align import Symbol_align
@@ -140,14 +140,13 @@ extStat = ExtractStatistic(c)
adapt = Adapt(c, port_rc, coef_path)
if cli_args.status:
- status = {
- "txgain": adapt.get_txgain(),
- "rxgain": adapt.get_rxgain(),
- "digital_gain": adapt.get_digital_gain(),
- "predistorter": adapt.get_predistorter()
- }
-
- logging.info("ODR-DabMod currently running with {}".format(status))
+ txgain = adapt.get_txgain()
+ rxgain = adapt.get_rxgain()
+ digital_gain = adapt.get_digital_gain()
+ dpddata = dpddata_to_str(adapt.get_predistorter())
+
+ logging.info("ODR-DabMod currently running with TXGain {}, RXGain {}, digital gain {} and {}".format(
+ rxgain, rxgain, digital_gain, dpddata))
sys.exit(0)
if cli_args.lut:
@@ -178,7 +177,7 @@ digital_gain = adapt.get_digital_gain()
dpddata = adapt.get_predistorter()
logging.info("TX gain {}, RX gain {}, digital_gain {}, {!s}".format(
- tx_gain, rx_gain, digital_gain, Adapt.dpddata_to_str(dpddata)))
+ tx_gain, rx_gain, digital_gain, dpddata_to_str(dpddata)))
if cli_args.reset:
logging.info("DPD Settings were reset to default values.")