aboutsummaryrefslogtreecommitdiffstats
path: root/src/DabMod.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-06-26 14:58:48 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-06-26 14:58:48 +0200
commit177eb8d875a5513731e8c9b3019ca44d311e55c3 (patch)
treec88c58f952c4ccb8bc5f2d4eafafc18eb12eb5f3 /src/DabMod.cpp
parent79274de1247590c7f350d8e6aa1b67f9cc72ab08 (diff)
downloaddabmod-177eb8d875a5513731e8c9b3019ca44d311e55c3.tar.gz
dabmod-177eb8d875a5513731e8c9b3019ca44d311e55c3.tar.bz2
dabmod-177eb8d875a5513731e8c9b3019ca44d311e55c3.zip
Add TII configuration to ini file
Diffstat (limited to 'src/DabMod.cpp')
-rw-r--r--src/DabMod.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/DabMod.cpp b/src/DabMod.cpp
index 1fc7e3c..618e0fe 100644
--- a/src/DabMod.cpp
+++ b/src/DabMod.cpp
@@ -132,6 +132,8 @@ int launch_modulator(int argc, char* argv[])
float normalise = 1.0f;
GainMode gainMode = GAIN_VAR;
+ int tiiPattern = 0;
+ int tiiComb = 0;
/* UHD requires the input I and Q samples to be in the interval
* [-1.0,1.0], otherwise they get truncated, which creates very
@@ -578,6 +580,10 @@ int launch_modulator(int argc, char* argv[])
outputuhd_conf.muteNoTimestamps = (pt.get("delaymanagement.mutenotimestamps", 0) == 1);
#endif
+
+ /* Read TII parameters from config file */
+ tiiComb = pt.get("tii.comb", 0);
+ tiiPattern = pt.get("tii.pattern", 0);
}
if (rcs.get_no_controllers() == 0) {
@@ -750,7 +756,7 @@ int launch_modulator(int argc, char* argv[])
shared_ptr<DabModulator> modulator(
new DabModulator(tist_offset_s, tist_delay_stages, &rcs,
outputRate, clockRate, dabMode, gainMode, digitalgain,
- normalise, filterTapsFilename));
+ normalise, filterTapsFilename, tiiComb, tiiPattern));
flowgraph.connect(input, modulator);
if (format_converter) {