Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Shifting the offset of where the timestamp is placed in the stream
  • Loading branch information
gnychis committed Feb 12, 2012
1 parent ade8b55 commit 2ca8b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gr-digital/lib/digital_ofdm_sampler.cc
Expand Up @@ -153,7 +153,7 @@ digital_ofdm_sampler::general_work (int noutput_items,
// Pack up our time of synchronization, pass it along using the stream tags
gr_tag_t tag; // create a new tag
tag.srcid = pmt::pmt_string_to_symbol(this->name()); // to know the source block that created tag
tag.offset=index; // the offset in the sample stream that we found this tag
tag.offset=this->nitems_written(1) + index; // the offset in the sample stream that we found this tag
tag.key=SYNC_TIME; // the "key" of the tag, which I've defined to be "SYNC_TIME"
tag.value = pmt::pmt_make_tuple(
pmt::pmt_from_uint64((int)elapsed), // FPGA clock in seconds that we found the sync
Expand Down

0 comments on commit 2ca8b1a

Please sign in to comment.