aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2015-03-29 20:55:44 +0200
committerSylvain Munaut <tnt@246tNt.com>2016-09-14 10:14:32 -0600
commit6d3f5922d8e75167e75079d1df5a7a5f24cd8f59 (patch)
tree554cc030ea0546ad7461d3178218abdf25ab383b
parent790b43f0888b566e9fa932a0f0b2b82cc26b354d (diff)
gr-gmr1/rach_detect_fft: Use a global constant for freq key
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
-rw-r--r--gr-gmr1/lib/rach_detect_fft_impl.cc8
-rw-r--r--gr-gmr1/lib/rach_detect_fft_impl.h1
2 files changed, 4 insertions, 5 deletions
diff --git a/gr-gmr1/lib/rach_detect_fft_impl.cc b/gr-gmr1/lib/rach_detect_fft_impl.cc
index 48838a7..ab28105 100644
--- a/gr-gmr1/lib/rach_detect_fft_impl.cc
+++ b/gr-gmr1/lib/rach_detect_fft_impl.cc
@@ -35,8 +35,9 @@ namespace gr {
namespace gmr1 {
/* FIXME: Those should be in a common include */
-static const pmt::pmt_t SOB_KEY = pmt::string_to_symbol("sob");
-static const pmt::pmt_t EOB_KEY = pmt::string_to_symbol("eob");
+static const pmt::pmt_t SOB_KEY = pmt::string_to_symbol("sob");
+static const pmt::pmt_t EOB_KEY = pmt::string_to_symbol("eob");
+static const pmt::pmt_t FREQ_KEY = pmt::string_to_symbol("freq");
rach_detect_fft::sptr
@@ -65,7 +66,6 @@ rach_detect_fft_impl::rach_detect_fft_impl(
d_threshold(threshold),
d_burst_length(burst_length), d_burst_offset(burst_offset),
d_freq_offset(freq_offset),
- d_freq_tag_key(pmt::string_to_symbol("freq")),
d_len_tag_key(pmt::string_to_symbol(len_tag_key)),
d_burst_length_pmt(pmt::from_long(burst_length))
{
@@ -259,7 +259,7 @@ rach_detect_fft_impl::general_work(
add_item_tag(
0,
this->nitems_written(0),
- this->d_freq_tag_key,
+ FREQ_KEY,
pmt::from_double(phase_inc)
);
}
diff --git a/gr-gmr1/lib/rach_detect_fft_impl.h b/gr-gmr1/lib/rach_detect_fft_impl.h
index 415c6df..0efcf0c 100644
--- a/gr-gmr1/lib/rach_detect_fft_impl.h
+++ b/gr-gmr1/lib/rach_detect_fft_impl.h
@@ -59,7 +59,6 @@ namespace gr {
int d_burst_offset;
float d_freq_offset;
- pmt::pmt_t d_freq_tag_key;
pmt::pmt_t d_len_tag_key;
pmt::pmt_t d_burst_length_pmt;