[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 05/08: channels: provide CSI via message po
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 05/08: channels: provide CSI via message ports optionally |
Date: |
Fri, 10 Jun 2016 20:45:12 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch next
in repository gnuradio.
commit bf470011ec6458836d6879d4d4a4bf9ebab3e269
Author: Tim O'Shea <address@hidden>
Date: Sat Jun 4 09:17:35 2016 -0400
channels: provide CSI via message ports optionally
---
gr-channels/grc/channels_selective_fading_model2.xml | 5 +++++
gr-channels/lib/selective_fading_model2_impl.cc | 9 +++++++++
2 files changed, 14 insertions(+)
diff --git a/gr-channels/grc/channels_selective_fading_model2.xml
b/gr-channels/grc/channels_selective_fading_model2.xml
index 7df09a7..1e1ea3a 100644
--- a/gr-channels/grc/channels_selective_fading_model2.xml
+++ b/gr-channels/grc/channels_selective_fading_model2.xml
@@ -89,6 +89,11 @@
<name>out</name>
<type>complex</type>
</source>
+ <source>
+ <name>taps</name>
+ <type>message</type>
+ <optional>1</optional>
+ </source>
<doc>
int d_N=8; // number of sinusoids used to simulate gain on each
ray
float d_fDTs=0.01 // normalized maximum doppler frequency (f_doppler /
f_samprate)
diff --git a/gr-channels/lib/selective_fading_model2_impl.cc
b/gr-channels/lib/selective_fading_model2_impl.cc
index 7ae5041..c9b9d62 100644
--- a/gr-channels/lib/selective_fading_model2_impl.cc
+++ b/gr-channels/lib/selective_fading_model2_impl.cc
@@ -77,6 +77,9 @@ namespace gr {
if(ntaps < 1){ throw std::runtime_error("ntaps must be >= 1"); }
set_history(1+ntaps);
d_taps.resize(ntaps, gr_complex(0,0));
+
+ // set up message port
+ message_port_register_out(pmt::mp("taps"));
}
selective_fading_model2_impl::~selective_fading_model2_impl()
@@ -134,6 +137,12 @@ namespace gr {
// assign output
out[i] = sum;
+
+ }
+
+ if(pmt::length(message_subscribers(pmt::mp("taps"))) > 0){
+ pmt::pmt_t pdu( pmt::cons( pmt::PMT_NIL,
pmt::init_c32vector(d_taps.size(), d_taps) ));
+ message_port_pub(pmt::mp("taps"), pdu);
}
// return all outputs
- [Commit-gnuradio] [gnuradio] branch next updated (06a7c93 -> 0dc8072), git, 2016/06/10
- [Commit-gnuradio] [gnuradio] 02/08: channels: update LOS model to reflect NLOS changes to long term models, git, 2016/06/10
- [Commit-gnuradio] [gnuradio] 08/08: Merge branch 'master' into next, git, 2016/06/10
- [Commit-gnuradio] [gnuradio] 07/08: Merge remote-tracking branch 'osh/flat_fader_testing_next' into next, git, 2016/06/10
- [Commit-gnuradio] [gnuradio] 05/08: channels: provide CSI via message ports optionally,
git <=
- [Commit-gnuradio] [gnuradio] 04/08: channels: adding selective fading model 2 (PDP slowly changes without bounds as well so fades move ...), git, 2016/06/10
- [Commit-gnuradio] [gnuradio] 03/08: channels: generate fading taps in blocks for minor speedup, git, 2016/06/10
- [Commit-gnuradio] [gnuradio] 01/08: channels: ensure flat fader behaves appropriately on long runs, git, 2016/06/10
- [Commit-gnuradio] [gnuradio] 06/08: channels: clean up some of the fader normalization values and storage sizes, git, 2016/06/10