From b28c244df5cea69f9f1d8236271d14d7001979d9 Mon Sep 17 00:00:00 2001 From: Antonio Ramos Date: Wed, 3 Jan 2018 11:40:17 +0100 Subject: [PATCH] Debug log lines --- .../acquisition/gnuradio_blocks/pcps_acquisition_cc.cc | 4 +++- .../acquisition/gnuradio_blocks/pcps_acquisition_cc.h | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition_cc.cc b/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition_cc.cc index a0461f9c5..fdcd895b4 100644 --- a/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition_cc.cc +++ b/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition_cc.cc @@ -329,6 +329,7 @@ int pcps_acquisition_cc::general_work(int noutput_items, d_input_power = 0.0; d_test_statistics = 0.0; d_state = 1; + LOG(INFO) << "ACQ. general_work changing to state 1 (active)"; } d_sample_counter += d_fft_size * ninput_items[0]; // sample counter @@ -368,8 +369,9 @@ int pcps_acquisition_cc::general_work(int noutput_items, if( d_blocking ) { + LOG(INFO) << "ACQ. general_work waiting for acquisition_core"; d_cond.wait( lk, [&]{ return !this->d_new_data_available; } ); - + LOG(INFO) << "ACQ. Exiting general_work"; } } diff --git a/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition_cc.h b/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition_cc.h index 486468379..1c6162492 100644 --- a/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition_cc.h +++ b/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition_cc.h @@ -60,6 +60,7 @@ #include #include #include "gnss_synchro.h" +#include class pcps_acquisition_cc; @@ -194,6 +195,7 @@ public: { gr::thread::scoped_lock lock(d_setlock); // require mutex with work function called by the scheduler d_active = active; + LOG(INFO) << "ACQ RESET"; } /*!