diff options
author | Jacob Gilbert <jacob.gilbert@protonmail.com> | 2021-09-22 08:40:13 -0600 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-09-22 15:58:02 -0400 |
commit | f8149c16c2d08c2debfcb913ebfec511c2fcb6da (patch) | |
tree | c9862661aac9540c1faadfbb350623b995613e86 /gr-pdu | |
parent | Github CI: enable -Werror on fedora, but don't error on deprecations (diff) | |
download | gnuradio-f8149c16c2d08c2debfcb913ebfec511c2fcb6da.tar.xz gnuradio-f8149c16c2d08c2debfcb913ebfec511c2fcb6da.zip |
pdu: add samp_rate key
This was omitted accidentally, but is necessary in general for
correct processing of PDU data
Signed-off-by: Jacob Gilbert <jacob.gilbert@protonmail.com>
Diffstat (limited to 'gr-pdu')
-rw-r--r-- | gr-pdu/lib/tags_to_pdu_impl.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gr-pdu/lib/tags_to_pdu_impl.cc b/gr-pdu/lib/tags_to_pdu_impl.cc index a98a1771f..ff02d6945 100644 --- a/gr-pdu/lib/tags_to_pdu_impl.cc +++ b/gr-pdu/lib/tags_to_pdu_impl.cc @@ -157,6 +157,8 @@ void tags_to_pdu_impl<T>::publish_message() pmt::make_tuple(pmt::from_uint64(int_seconds), pmt::from_double(frac_seconds)); d_meta_dict = pmt::dict_add(d_meta_dict, metadata_keys::rx_time(), time_tuple); d_meta_dict = pmt::dict_add( + d_meta_dict, metadata_keys::sample_rate(), pmt::from_double(d_samp_rate)); + d_meta_dict = pmt::dict_add( d_meta_dict, metadata_keys::pdu_num(), pmt::from_uint64(d_burst_counter)); if (d_wall_clock_time) { double t_now((boost::get_system_time() - d_epoch).total_microseconds() / |