1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-15 20:50:33 +00:00

Debug log lines

This commit is contained in:
Antonio Ramos 2018-01-03 11:40:17 +01:00
parent 3eafe2047a
commit b28c244df5
2 changed files with 5 additions and 1 deletions

View File

@ -329,6 +329,7 @@ int pcps_acquisition_cc::general_work(int noutput_items,
d_input_power = 0.0; d_input_power = 0.0;
d_test_statistics = 0.0; d_test_statistics = 0.0;
d_state = 1; d_state = 1;
LOG(INFO) << "ACQ. general_work changing to state 1 (active)";
} }
d_sample_counter += d_fft_size * ninput_items[0]; // sample counter 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 ) if( d_blocking )
{ {
LOG(INFO) << "ACQ. general_work waiting for acquisition_core";
d_cond.wait( lk, [&]{ return !this->d_new_data_available; } ); d_cond.wait( lk, [&]{ return !this->d_new_data_available; } );
LOG(INFO) << "ACQ. Exiting general_work";
} }
} }

View File

@ -60,6 +60,7 @@
#include <gnuradio/gr_complex.h> #include <gnuradio/gr_complex.h>
#include <gnuradio/fft/fft.h> #include <gnuradio/fft/fft.h>
#include "gnss_synchro.h" #include "gnss_synchro.h"
#include <glog/logging.h>
class pcps_acquisition_cc; 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 gr::thread::scoped_lock lock(d_setlock); // require mutex with work function called by the scheduler
d_active = active; d_active = active;
LOG(INFO) << "ACQ RESET";
} }
/*! /*!