aboutsummaryrefslogtreecommitdiffstats
path: root/src/DabModulator.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-05-27 20:43:48 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-05-30 17:36:31 +0200
commit09312c200b78c6b441b577911743f75921fef5b3 (patch)
tree170b0a46b29b0e5efea500b9544d9b513b6f7668 /src/DabModulator.cpp
parent405de3ecd5624a350668406f5476905e5e8a1286 (diff)
downloaddabmod-09312c200b78c6b441b577911743f75921fef5b3.tar.gz
dabmod-09312c200b78c6b441b577911743f75921fef5b3.tar.bz2
dabmod-09312c200b78c6b441b577911743f75921fef5b3.zip
Add and enable TII insertion for testing
Diffstat (limited to 'src/DabModulator.cpp')
-rw-r--r--src/DabModulator.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/DabModulator.cpp b/src/DabModulator.cpp
index 667d885..94b6c87 100644
--- a/src/DabModulator.cpp
+++ b/src/DabModulator.cpp
@@ -46,6 +46,7 @@
#include "Resampler.h"
#include "ConvEncoder.h"
#include "FIRFilter.h"
+#include "TII.h"
#include "PuncturingEncoder.h"
#include "TimeInterleaver.h"
#include "TimestampDecoder.h"
@@ -197,6 +198,8 @@ int DabModulator::process(Buffer* const dataIn, Buffer* dataOut)
cic_ratio));
+ shared_ptr<TII> tii(new TII(myDabMode, 3, 16));
+
shared_ptr<OfdmGenerator> cifOfdm(
new OfdmGenerator((1 + myNbSymbols), myNbCarriers, mySpacing));
@@ -346,6 +349,7 @@ int DabModulator::process(Buffer* const dataIn, Buffer* dataOut)
myFlowgraph->connect(cifFreq, cifDiff);
myFlowgraph->connect(cifNull, cifSig);
myFlowgraph->connect(cifDiff, cifSig);
+ myFlowgraph->connect(tii, cifSig);
if (useCicEq) {
myFlowgraph->connect(cifSig, cifCicEq);
myFlowgraph->connect(cifCicEq, cifOfdm);