aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2015-03-29 20:56:53 +0200
committerSylvain Munaut <tnt@246tNt.com>2016-09-14 10:14:32 -0600
commit8712e570ced07a88c4ebec68221ededa986244c4 (patch)
tree6df4b50226b6447ac61ec04807792d6a0f9700ca
parent507af210ef09f322d0f2e93587c971ab6fdf1c70 (diff)
gr-grm1/rach_detect_fft: Fix the direction of peak offset compensation
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
-rw-r--r--gr-gmr1/lib/rach_detect_fft_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-gmr1/lib/rach_detect_fft_impl.cc b/gr-gmr1/lib/rach_detect_fft_impl.cc
index 62b183f..b1552be 100644
--- a/gr-gmr1/lib/rach_detect_fft_impl.cc
+++ b/gr-gmr1/lib/rach_detect_fft_impl.cc
@@ -236,7 +236,7 @@ rach_detect_fft_impl::general_work(
) - (float)(this->d_fft_size / 2)
);
- phase_inc += this->d_freq_offset;
+ phase_inc -= this->d_freq_offset;
this->d_r.set_phase_incr( exp(gr_complex(0, phase_inc)) );