diff options
author | Tim O'Shea <tim.oshea753@gmail.com> | 2013-06-06 17:41:28 -0400 |
---|---|---|
committer | Tim O'Shea <tim.oshea753@gmail.com> | 2013-06-06 17:41:28 -0400 |
commit | 9d90ffb56631f9a85f60d13b6e32b4a1c354ffe9 (patch) | |
tree | 278b603aad13407006e7fe0e32c7b11cc2faa120 /gr-channels/lib/selective_fading_model_impl.cc | |
parent | 9896a6727bc1446e0597ad51cc4305acfb46ff1b (diff) |
channels: selective fading model cleanup
Diffstat (limited to 'gr-channels/lib/selective_fading_model_impl.cc')
-rw-r--r-- | gr-channels/lib/selective_fading_model_impl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-channels/lib/selective_fading_model_impl.cc b/gr-channels/lib/selective_fading_model_impl.cc index 7beebf2e65..53d5b3349b 100644 --- a/gr-channels/lib/selective_fading_model_impl.cc +++ b/gr-channels/lib/selective_fading_model_impl.cc @@ -58,11 +58,11 @@ namespace gr { throw std::runtime_error("magnitude and delay vectors must be the same length!"); for(size_t i=0; i<mags.size(); i++){ - d_faders.push_back(new gr::channels::flat_fader_impl(N,fDTs, LOS, K, seed+i)); + d_faders.push_back(new gr::channels::flat_fader_impl(N, fDTs, (i==0)&&(LOS), K, seed+i)); } // set up tap history -// int ntaps = 10; + if(ntaps < 1){ throw std::runtime_error("ntaps must be >= 1"); } set_history(1+ntaps); d_taps.resize(ntaps, gr_complex(0,0)); } |