diff options
author | Piotr Krysik <ptrkrysik@gmail.com> | 2017-07-20 09:06:08 +0200 |
---|---|---|
committer | Piotr Krysik <ptrkrysik@gmail.com> | 2017-07-20 09:06:08 +0200 |
commit | 5eb5db2fc1f4ac2ddfcdb81fc2351b629517ca3a (patch) | |
tree | 6c4be09a81dbb7328cded6cb4db2657b59432fa4 | |
parent | b31689d227e768ef9b34ea4471861a13ae711c1b (diff) |
Added clock offset measurement in ppm as it is usable for debugging.
-rw-r--r-- | lib/receiver/clock_offset_control_impl.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |