From 072c2e1277690fa6bd5016fdb69455fd28ba785e Mon Sep 17 00:00:00 2001 From: andreas128 Date: Thu, 6 Apr 2017 22:01:15 +0100 Subject: Fix print to stdout --- src/DabModulator.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/DabModulator.cpp b/src/DabModulator.cpp index 81257f4..757dd9a 100644 --- a/src/DabModulator.cpp +++ b/src/DabModulator.cpp @@ -206,7 +206,8 @@ int DabModulator::process(Buffer* dataOut) (1 + myNbSymbols), myNbCarriers, mySpacing); auto cifGain = make_shared( - mySpacing, myGainMode, myDigGain, myNormalise, myGainmodeVariance); + mySpacing, myGainMode, myDigGain, myNormalise, + myGainmodeVariance); rcs.enrol(cifGain.get()); @@ -222,8 +223,12 @@ int DabModulator::process(Buffer* dataOut) shared_ptr cifPoly; if (not myPolyCoefFilename.empty()) { cifPoly = make_shared(myPolyCoefFilename); - std::cout << myPolyCoefFilename << "\n"; - std::cout << cifPoly->m_taps[0] << " " << cifPoly->m_taps[1] << " "<< cifPoly->m_taps[2] << " "<< cifPoly->m_taps[3] << " "<< cifPoly->m_taps[4] << " "<< cifPoly->m_taps[5] << " "<< cifPoly->m_taps[6] << " "<< cifPoly->m_taps[7] << "\n"; + etiLog.level(debug) << myPolyCoefFilename << "\n"; + etiLog.level(debug) << cifPoly->m_coefs[0] << " " << + cifPoly->m_coefs[1] << " "<< cifPoly->m_coefs[2] << " "<< + cifPoly->m_coefs[3] << " "<< cifPoly->m_coefs[4] << " "<< + cifPoly->m_coefs[5] << " "<< cifPoly->m_coefs[6] << " "<< + cifPoly->m_coefs[7] << "\n"; rcs.enrol(cifPoly.get()); } @@ -318,7 +323,8 @@ int DabModulator::process(Buffer* dataOut) auto subchConv = make_shared(subchSizeIn); // Configuring puncturing encoder - auto subchPunc = make_shared(subchannel->framesizeCu()); + auto subchPunc = + make_shared(subchannel->framesizeCu()); for (const auto& rule : subchannel->get_rules()) { PDEBUG(" Adding rule:\n"); -- cgit v1.2.3