diff options
author | Bram (morningbird) <bram@morningbird> | 2012-08-01 15:06:22 +0200 |
---|---|---|
committer | Bram (morningbird) <bram@morningbird> | 2012-08-01 15:06:22 +0200 |
commit | 06268c30c784051dfa5d651cb9195298094113b1 (patch) | |
tree | 97460917e388bb4592605f29005af4666474ed53 /src/DabMod.cpp | |
parent | b593e1cab3a31dff928eafd22f25f16e9daab61d (diff) | |
download | dabmod-06268c30c784051dfa5d651cb9195298094113b1.tar.gz dabmod-06268c30c784051dfa5d651cb9195298094113b1.tar.bz2 dabmod-06268c30c784051dfa5d651cb9195298094113b1.zip |
dabmod: offset calculation includes pipeline delay due to FIRFilter
Diffstat (limited to 'src/DabMod.cpp')
-rw-r--r-- | src/DabMod.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/DabMod.cpp b/src/DabMod.cpp index 24dfe4f..6627ed1 100644 --- a/src/DabMod.cpp +++ b/src/DabMod.cpp @@ -35,6 +35,7 @@ #include "OutputUHD.h" #include "PcDebug.h" #include "TimestampDecoder.h" +#include "FIRFilter.h" #include <complex> #include <stdlib.h> @@ -170,6 +171,7 @@ int main(int argc, char* argv[]) struct modulator_offset_config modconf; modconf.use_offset_file = false; modconf.use_offset_fixed = false; + modconf.delay_calculation_pipeline_stages = 0; Flowgraph* flowgraph = NULL; DabModulator* modulator = NULL; @@ -276,6 +278,11 @@ int main(int argc, char* argv[]) modconf.offset_fixed = 0; } + // When using the FIRFilter, increase the modulator offset pipelining delay + // by the correct amount + modconf.delay_calculation_pipeline_stages += FIRFILTER_PIPELINE_DELAY; + + // Setting ETI input filename if (optind < argc) { inputName = argv[optind++]; |