diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2015-03-29 20:56:29 +0200 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2015-04-04 13:54:30 +0200 |
commit | a2a370a46eedaf22b0b81cb473828fe47ff17d3c (patch) | |
tree | 3e23963abf8adf1cb50229d188eb705104fff93e /gr-gmr1/lib/rach_detect_fft_impl.cc | |
parent | 0803baa9eac94f1566394715a49569ebacd2164a (diff) |
gr-gmr1: Add a tag with the time of RACH and write it to file
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'gr-gmr1/lib/rach_detect_fft_impl.cc')
-rw-r--r-- | gr-gmr1/lib/rach_detect_fft_impl.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gr-gmr1/lib/rach_detect_fft_impl.cc b/gr-gmr1/lib/rach_detect_fft_impl.cc index ab28105..62b183f 100644 --- a/gr-gmr1/lib/rach_detect_fft_impl.cc +++ b/gr-gmr1/lib/rach_detect_fft_impl.cc @@ -38,6 +38,7 @@ namespace gr { 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"); +static const pmt::pmt_t TIME_KEY = pmt::string_to_symbol("time"); rach_detect_fft::sptr @@ -262,6 +263,14 @@ rach_detect_fft_impl::general_work( FREQ_KEY, pmt::from_double(phase_inc) ); + + /* Burst first sample index */ + add_item_tag( + 0, + this->nitems_written(0), + TIME_KEY, + pmt::from_uint64(nitems_read(0)) + ); } this->d_r.rotateN( |