diff options
author | Tom Rondeau <tom@trondeau.com> | 2014-04-24 10:00:38 -0400 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2014-04-24 14:53:42 -0400 |
commit | 53ac8e81710ababafba629ac6b6c2b65622af0cd (patch) | |
tree | ac79fecd2ac8b925b3b69be33e47823a4d56bbd2 | |
parent | e4ce0b18808c65ea52602a28207fe9d5c0292ffe (diff) |
channels: fixing a minor bug in the flag_fader model.
Bug fix from 'qin 1921' submitted to GR mailing list.
-rw-r--r-- | gr-channels/lib/flat_fader_impl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-channels/lib/flat_fader_impl.cc b/gr-channels/lib/flat_fader_impl.cc index af35e29ef4..33cf37d23b 100644 --- a/gr-channels/lib/flat_fader_impl.cc +++ b/gr-channels/lib/flat_fader_impl.cc @@ -64,7 +64,7 @@ namespace gr { gr_complex H(0,0); for(int n=1; n<d_N; n++){ - float alpha_n = (2*M_PI*n - M_PI + d_theta)/4*d_N; + float alpha_n = (2*M_PI*n - M_PI + d_theta)/(4*d_N); #if FASTSINCOS == 1 float s_i = scale_sin*gr::fxpt::cos(gr::fxpt::float_to_fixed(2*M_PI*d_fDTs*d_m*gr::fxpt::cos(gr::fxpt::float_to_fixed(alpha_n))+d_psi[n+1])); float s_q = scale_sin*gr::fxpt::cos(gr::fxpt::float_to_fixed(2*M_PI*d_fDTs*d_m*gr::fxpt::sin(gr::fxpt::float_to_fixed(alpha_n))+d_phi[n+1])); |