discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] [PATCH] Tagged sink and UHD source tags


From: Jeff Long
Subject: [Discuss-gnuradio] [PATCH] Tagged sink and UHD source tags
Date: Tue, 26 Jun 2012 11:55:21 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0

Tagged file sink is not compatible with UHD source. Tag name and type disagree.

diff --git a/gnuradio-core/src/lib/io/gr_tagged_file_sink.cc b/gnuradio-core/src
index d698927..b8e9fb7 100644
--- a/gnuradio-core/src/lib/io/gr_tagged_file_sink.cc
+++ b/gnuradio-core/src/lib/io/gr_tagged_file_sink.cc
@@ -109,7 +109,7 @@ gr_tagged_file_sink::work (int noutput_items,
          std::vector<gr_tag_t> time_tags;
//get_tags_in_range(time_tags, 0, d_last_N, N, gr_tags::key_time);
          get_tags_in_range(time_tags, 0, d_last_N, N,
-                           pmt::pmt_string_to_symbol("time"));
+                           pmt::pmt_string_to_symbol("rx_time"));
          if(time_tags.size() > 0) {
            const gr_tag_t tag = time_tags[time_tags.size()-1];

@@ -117,7 +117,7 @@ gr_tagged_file_sink::work (int noutput_items,

            // Get time based on last time tag from USRP
            pmt::pmt_t time = tag.value;
-           int tsecs = pmt::pmt_to_long(pmt::pmt_tuple_ref(time, 0));
+ uint64_t tsecs = pmt::pmt_to_uint64(pmt::pmt_tuple_ref(time, 0));
            double tfrac = pmt::pmt_to_double(pmt::pmt_tuple_ref(time, 1));

            // Get new time from last time tag + difference in time to when



reply via email to

[Prev in Thread] Current Thread [Next in Thread]