summaryrefslogtreecommitdiffstats
path: root/src/DabModulator.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-03-17 14:01:05 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-03-17 14:01:05 +0100
commit987a31954ea574e04c2e79fe3765448c1b607e49 (patch)
treea8ad6e6dc7fe5a210fb73be989e3b4c6bdf8192d /src/DabModulator.cpp
parent8cde8201e657c024163e64a3df62ff91f2b2513f (diff)
downloaddabmod-987a31954ea574e04c2e79fe3765448c1b607e49.tar.gz
dabmod-987a31954ea574e04c2e79fe3765448c1b607e49.tar.bz2
dabmod-987a31954ea574e04c2e79fe3765448c1b607e49.zip
Add gainmode var variance to config file
Diffstat (limited to 'src/DabModulator.cpp')
-rw-r--r--src/DabModulator.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/DabModulator.cpp b/src/DabModulator.cpp
index 678d175..c41b8fc 100644
--- a/src/DabModulator.cpp
+++ b/src/DabModulator.cpp
@@ -3,7 +3,7 @@
Her Majesty the Queen in Right of Canada (Communications Research
Center Canada)
- Copyright (C) 2016
+ Copyright (C) 2017
Matthias P. Braendli, matthias.braendli@mpb.li
http://opendigitalradio.org
@@ -60,6 +60,7 @@ DabModulator::DabModulator(
unsigned outputRate, unsigned clockRate,
unsigned dabMode, GainMode gainMode,
float& digGain, float normalise,
+ float gainmodeVariance,
const std::string& filterTapsFilename
) :
ModInput(),
@@ -69,6 +70,7 @@ DabModulator::DabModulator(
myGainMode(gainMode),
myDigGain(digGain),
myNormalise(normalise),
+ myGainmodeVariance(gainmodeVariance),
myEtiSource(etiSource),
myFlowgraph(NULL),
myFilterTapsFilename(filterTapsFilename),
@@ -201,7 +203,7 @@ int DabModulator::process(Buffer* dataOut)
(1 + myNbSymbols), myNbCarriers, mySpacing);
auto cifGain = make_shared<GainControl>(
- mySpacing, myGainMode, myDigGain, myNormalise);
+ mySpacing, myGainMode, myDigGain, myNormalise, myGainmodeVariance);
rcs.enrol(cifGain.get());