[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 06/08: channels: clean up some of the fader
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 06/08: channels: clean up some of the fader normalization values and storage sizes |
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 c57119d087e6694b80ecbc73c70e0ff08ca35b9c
Author: Tim O'Shea <address@hidden>
Date: Mon Jun 6 13:35:44 2016 -0400
channels: clean up some of the fader normalization values and storage sizes
---
gr-channels/lib/flat_fader_impl.cc | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/gr-channels/lib/flat_fader_impl.cc
b/gr-channels/lib/flat_fader_impl.cc
index b53e1da..4783417 100644
--- a/gr-channels/lib/flat_fader_impl.cc
+++ b/gr-channels/lib/flat_fader_impl.cc
@@ -48,7 +48,7 @@ namespace gr {
d_table(8*1024),
- scale_sin(sqrtf(2.0/d_N)),
+ scale_sin(sqrtf(1.0/d_N)),
scale_los(sqrtf(d_K)/sqrtf(d_K+1)),
scale_nlos(1/sqrtf(d_K+1))
{
@@ -74,12 +74,12 @@ namespace gr {
Hvec.resize(n_samples);
for(int i = 0; i < n_samples; i++){
gr_complex H(0,0);
- for(int n=1; n<d_N; n++){
+ for(int n=1; n<d_N+1; n++){
float alpha_n = (2*M_PI*n - M_PI + d_theta)/(4*d_N);
- d_psi[n+1] = fmod(d_psi[n+1] +
2*M_PI*d_fDTs*_GRFASTCOS(alpha_n), 2*M_PI);
- d_phi[n+1] = fmod(d_phi[n+1] +
2*M_PI*d_fDTs*_GRFASTCOS(alpha_n), 2*M_PI);
- float s_i = scale_sin*_GRFASTCOS(d_psi[n+1]);
- float s_q = scale_sin*_GRFASTSIN(d_phi[n+1]);
+ d_psi[n] = fmod(d_psi[n] + 2*M_PI*d_fDTs*_GRFASTCOS(alpha_n),
2*M_PI);
+ d_phi[n] = fmod(d_phi[n] + 2*M_PI*d_fDTs*_GRFASTCOS(alpha_n),
2*M_PI);
+ float s_i = scale_sin*_GRFASTCOS(d_psi[n]);
+ float s_q = scale_sin*_GRFASTSIN(d_phi[n]);
H += gr_complex(s_i, s_q);
}
- [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, 2016/06/10
- [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 <=