Removed boost timer from clock_offset_control to avoid race conditions.
The time is now tracked by the receiver based on samples count and send through the 'measurements' interface to the clock_offset_control.
clock_offset_control takes time into account during fcch_search.
diff --git a/lib/receiver/clock_offset_control_impl.h b/lib/receiver/clock_offset_control_impl.h
index 823bfdf..3c11a6f 100644
--- a/lib/receiver/clock_offset_control_impl.h
+++ b/lib/receiver/clock_offset_control_impl.h
@@ -25,8 +25,6 @@
#include <grgsm/receiver/clock_offset_control.h>
#include <string>
-#include <boost/asio.hpp>
-#include <boost/date_time/posix_time/posix_time.hpp>
namespace gr {
namespace gsm {
@@ -40,8 +38,9 @@
bool d_first_measurement;
int d_counter;
std::string d_last_state;
- boost::asio::io_service d_io_service;
- boost::asio::deadline_timer d_timer;
+ float d_current_time;
+ float d_last_fcch_time;
+ bool d_first_time;
void process_measurement(pmt::pmt_t msg);
void timed_reset();