From 5eb5db2fc1f4ac2ddfcdb81fc2351b629517ca3a Mon Sep 17 00:00:00 2001 From: Piotr Krysik Date: Thu, 20 Jul 2017 09:06:08 +0200 Subject: Added clock offset measurement in ppm as it is usable for debugging. --- lib/receiver/clock_offset_control_impl.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/receiver/clock_offset_control_impl.cc b/lib/receiver/clock_offset_control_impl.cc index 7fef8fa..4115707 100644 --- a/lib/receiver/clock_offset_control_impl.cc +++ b/lib/receiver/clock_offset_control_impl.cc @@ -175,6 +175,7 @@ void clock_offset_control_impl::send_ctrl_messages(float freq_offset) messages = dict_add(messages, pmt::string_to_symbol("set_phase_inc"), pmt::from_double(-2*M_PI*freq_offset/(d_osr * GSM_SYMBOL_RATE))); messages = dict_add(messages, pmt::string_to_symbol("set_resamp_ratio"), pmt::from_double((1-(freq_offset/d_fc))*samp_rate_ratio)); messages = dict_add(messages, pmt::string_to_symbol("setting_freq_offset"), pmt::from_double(-freq_offset)); + messages = dict_add(messages, pmt::string_to_symbol("clock_offset_in_ppm"), pmt::from_double(-freq_offset/d_fc*1.0e6)); message_port_pub(pmt::intern("ctrl"), messages); } -- cgit v1.2.3