From 0bd2e30f55e39728c7390fd13972c12be6accb9c Mon Sep 17 00:00:00 2001 From: Bastian Bloessl Date: Mon, 5 Sep 2016 15:41:27 +0200 Subject: [PATCH] fix frequency offset calculation --- lib/frame_equalizer_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/frame_equalizer_impl.cc b/lib/frame_equalizer_impl.cc index fbb36be..97a1a53 100644 --- a/lib/frame_equalizer_impl.cc +++ b/lib/frame_equalizer_impl.cc @@ -132,7 +132,7 @@ frame_equalizer_impl::general_work (int noutput_items, d_frame_symbols = 0; d_frame_mod = d_bpsk; - d_freq_offset_from_synclong = pmt::to_double(tags.front().value) * d_bw; + d_freq_offset_from_synclong = pmt::to_double(tags.front().value) * d_bw / (2 * M_PI); d_epsilon0 = pmt::to_double(tags.front().value) * d_bw / (2 * M_PI * d_freq); d_er = 0;