diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2023-05-04 13:27:10 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2023-05-04 13:58:50 +0200 |
commit | 8bb7afbdc7cab7010c5bfb5a0b750a62d953aedf (patch) | |
tree | c1896722bf78336b62a51ff43c0cd3c0a0e6e76f /src/TII.cpp | |
parent | f0bb1e24952c7e261ba13907c0a5d8c3e1d198ca (diff) | |
download | dabmod-8bb7afbdc7cab7010c5bfb5a0b750a62d953aedf.tar.gz dabmod-8bb7afbdc7cab7010c5bfb5a0b750a62d953aedf.tar.bz2 dabmod-8bb7afbdc7cab7010c5bfb5a0b750a62d953aedf.zip |
Revert "Normalise TII to 1/sqrt(48)" and fix TII level in GainControl
This reverts commit c7961c2e8688d6db2a87b5079c60a04b8fe37e74.
Diffstat (limited to 'src/TII.cpp')
-rw-r--r-- | src/TII.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/TII.cpp b/src/TII.cpp index 2d7429f..b329cdb 100644 --- a/src/TII.cpp +++ b/src/TII.cpp @@ -189,8 +189,6 @@ int TII::process(Buffer* dataIn, Buffer* dataOut) complexf* in = reinterpret_cast<complexf*>(dataIn->getData()); complexf* out = reinterpret_cast<complexf*>(dataOut->getData()); - constexpr float normalisation = 0.144337f; // 1/sqrt(48); - /* Normalise the TII carrier power according to ETSI TR 101 496-3 * Clause 5.4.2.2 Paragraph 7: * @@ -198,7 +196,8 @@ int TII::process(Buffer* dataIn, Buffer* dataOut) * > is 1:48 for all Modes, so that the signal power in a TII symbol is * > 16 dB below the signal power of the other symbols. * - * Divide by sqrt(48) because I and Q are separately normalised. + * This is because we only enable 32 out of 1536 carriers, not because + * every carrier is lower power. */ for (size_t i = 0; i < m_Acp.size(); i++) { /* See header file for an explanation of the old variant. @@ -219,8 +218,8 @@ int TII::process(Buffer* dataIn, Buffer* dataOut) * and fuse the two conditionals together: */ if (m_Acp[i]) { - out[i] = in[i] * normalisation; - out[i+1] = (m_conf.old_variant ? in[i+1] : in[i]) * normalisation; + out[i] = in[i]; + out[i+1] = (m_conf.old_variant ? in[i+1] : in[i]); } } } |