summaryrefslogtreecommitdiff
path: root/gr-channels/lib/selective_fading_model_impl.cc
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2014-07-07 12:18:00 -0400
committerTom Rondeau <tom@trondeau.com>2014-07-07 12:18:00 -0400
commit597b93798a804cde1783d6d2ab53b348d57c44cd (patch)
treeb65e73bb0de634ff5d209b15971ebdabf369a45c /gr-channels/lib/selective_fading_model_impl.cc
parent1151e5502ccd440ebd89599cf7e4be4fb5ed8334 (diff)
Removing trailing/extra whitespaces before release.
We should be more careful about letting these into the code in the future. In emacs, we can use (add-hook 'before-save-hook 'delete-trailing-whitespace).
Diffstat (limited to 'gr-channels/lib/selective_fading_model_impl.cc')
-rw-r--r--gr-channels/lib/selective_fading_model_impl.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/gr-channels/lib/selective_fading_model_impl.cc b/gr-channels/lib/selective_fading_model_impl.cc
index 53d5b3349b..dfd7b74ca9 100644
--- a/gr-channels/lib/selective_fading_model_impl.cc
+++ b/gr-channels/lib/selective_fading_model_impl.cc
@@ -37,7 +37,7 @@
namespace gr {
namespace channels {
-
+
selective_fading_model::sptr
selective_fading_model::make( unsigned int N, float fDTs, bool LOS, float K, int seed, std::vector<float> delays, std::vector<float> mags, int ntaps)
{
@@ -60,7 +60,7 @@ namespace gr {
for(size_t i=0; i<mags.size(); i++){
d_faders.push_back(new gr::channels::flat_fader_impl(N, fDTs, (i==0)&&(LOS), K, seed+i));
}
-
+
// set up tap history
if(ntaps < 1){ throw std::runtime_error("ntaps must be >= 1"); }
set_history(1+ntaps);
@@ -74,7 +74,7 @@ namespace gr {
}
}
- int
+ int
selective_fading_model_impl::work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
@@ -89,13 +89,13 @@ namespace gr {
for(size_t j=0; j<d_taps.size(); j++){
d_taps[j] = gr_complex(0,0);
}
-
+
// add each flat fading component to the taps
for(size_t j=0; j<d_faders.size(); j++){
gr_complex ff_H(d_faders[j]->next_sample());
for(size_t k=0; k<d_taps.size(); k++){
float dist = k-d_delays[j];
- float interpmag = d_sintable.sinc(2*M_PI*dist);
+ float interpmag = d_sintable.sinc(2*M_PI*dist);
d_taps[k] += ff_H * interpmag * d_mags[j];
}
}
@@ -106,7 +106,7 @@ namespace gr {
sum += in[i+j] * d_taps[d_taps.size()-j-1];
}
- // assign output
+ // assign output
out[i] = sum;
}