diff options
author | Piotr Krysik <ptrkrysik@gmail.com> | 2017-09-27 22:00:00 +0200 |
---|---|---|
committer | Piotr Krysik <ptrkrysik@gmail.com> | 2017-09-27 22:00:00 +0200 |
commit | 7980eb9e92e9ea0a81154dd218c5f8dfa285d043 (patch) | |
tree | 35668b087ba1dfed0166dee0f1007284db542448 /python/transmitter | |
parent | eb62dc173536a392b2279d572486956c90d75c99 (diff) |
Correction in txtime_bursts_tagger
Diffstat (limited to 'python/transmitter')
-rw-r--r-- | python/transmitter/txtime_bursts_tagger.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/transmitter/txtime_bursts_tagger.py b/python/transmitter/txtime_bursts_tagger.py index 41cb53b..c990fed 100644 --- a/python/transmitter/txtime_bursts_tagger.py +++ b/python/transmitter/txtime_bursts_tagger.py @@ -61,7 +61,9 @@ class txtime_bursts_tagger(gr.basic_block): fn = burst_with_header[11]+burst_with_header[10]*2**8+burst_with_header[9]*2**16+burst_with_header[8]*2**24 ts_num = burst_with_header[3] fn_delta, txtime = fn_time_delta(self.fn_ref, self.time_ref, fn, self.time_hint, ts_num) - tags_dict = pmt.dict_add(pmt.make_dict(), pmt.intern("txtime"), pmt.from_double(txtime)) + txtime_secs = int(txtime) + txtime_fracs = txtime-int(txtime) + tags_dict = pmt.dict_add(pmt.make_dict(), pmt.intern("tx_time"), pmt.make_tuple(pmt.from_uint64(txtime_secs),pmt.from_double(txtime_fracs))) new_msg = pmt.cons(tags_dict, pmt.cdr(msg)) self.message_port_pub(pmt.intern("bursts"), new_msg) |