diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-02-07 11:44:43 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-02-07 11:44:43 +0100 |
commit | 96b1cbaa255b04a20d0f7ca6bda14fa87eb3ed62 (patch) | |
tree | 60d968dd5edd26d727f6f7e8ad85db5e825f32d8 /src/OfdmGenerator.cpp | |
parent | 05d2210e4336dc98966683b6e725c65e729b7216 (diff) | |
download | dabmod-96b1cbaa255b04a20d0f7ca6bda14fa87eb3ed62.tar.gz dabmod-96b1cbaa255b04a20d0f7ca6bda14fa87eb3ed62.tar.bz2 dabmod-96b1cbaa255b04a20d0f7ca6bda14fa87eb3ed62.zip |
Fix offset in TII carriers
Diffstat (limited to 'src/OfdmGenerator.cpp')
-rw-r--r-- | src/OfdmGenerator.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/OfdmGenerator.cpp b/src/OfdmGenerator.cpp index 57e0e0e..26ad7a4 100644 --- a/src/OfdmGenerator.cpp +++ b/src/OfdmGenerator.cpp @@ -207,12 +207,18 @@ int OfdmGenerator::process(Buffer* const dataIn, Buffer* dataOut) myFftIn[0][0] = 0; myFftIn[0][1] = 0; + /* For TM I this is: + * ZeroDst=769 ZeroSize=511 + * PosSrc=0 PosDst=1 PosSize=768 + * NegSrc=768 NegDst=1280 NegSize=768 + */ memset(&myFftIn[myZeroDst], 0, myZeroSize * sizeof(FFT_TYPE)); memcpy(&myFftIn[myPosDst], &in[myPosSrc], myPosSize * sizeof(FFT_TYPE)); memcpy(&myFftIn[myNegDst], &in[myNegSrc], myNegSize * sizeof(FFT_TYPE)); + if (myCfr) { reference.resize(mySpacing); memcpy(reference.data(), myFftIn, mySpacing * sizeof(FFT_TYPE)); |