From 5cfd2ac643e37605761685dbeafc99ec1fffd059 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 30 May 2015 17:40:58 +0200 Subject: TII: Move carrier duplication into enable_carrier --- src/TII.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/TII.cpp b/src/TII.cpp index 9ccc6e0..bafa343 100644 --- a/src/TII.cpp +++ b/src/TII.cpp @@ -205,7 +205,9 @@ void TII::enable_carrier(int k) { "TII::enable_carrier invalid k!"); } - m_dataIn[ix] = 1.0; // TODO power of the carrier ? + // TODO power of the carrier ? + m_dataIn.at(ix) = 1.0; + m_dataIn.at(ix+1) = 1.0; // TODO verify if +1 is really correct } void TII::prepare_pattern() { @@ -221,7 +223,6 @@ void TII::prepare_pattern() { if ( k == -768 + 2 * comb + 48 * b and pattern_tm1_2_4[m_pattern][b]) { enable_carrier(k); - enable_carrier(k+1); } } } @@ -231,7 +232,6 @@ void TII::prepare_pattern() { if ( k == -384 + 2 * comb + 48 * b and pattern_tm1_2_4[m_pattern][b]) { enable_carrier(k); - enable_carrier(k+1); } } } @@ -241,7 +241,6 @@ void TII::prepare_pattern() { if ( k == 1 + 2 * comb + 48 * b and pattern_tm1_2_4[m_pattern][b]) { enable_carrier(k); - enable_carrier(k+1); } } } @@ -251,7 +250,6 @@ void TII::prepare_pattern() { if ( k == 385 + 2 * comb + 48 * b and pattern_tm1_2_4[m_pattern][b]) { enable_carrier(k); - enable_carrier(k+1); } } } @@ -262,7 +260,6 @@ void TII::prepare_pattern() { if ( k == -192 + 2 * comb + 48 * b and pattern_tm1_2_4[m_pattern][b]) { enable_carrier(k); - enable_carrier(k+1); } } @@ -270,7 +267,6 @@ void TII::prepare_pattern() { if ( k == -191 + 2 * comb + 48 * b and pattern_tm1_2_4[m_pattern][b]) { enable_carrier(k); - enable_carrier(k+1); } } } -- cgit v1.2.3