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"; } /*!