commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 05/09: channels: fixing a minor bug in the


From: git
Subject: [Commit-gnuradio] [gnuradio] 05/09: channels: fixing a minor bug in the flag_fader model.
Date: Fri, 25 Apr 2014 16:44:34 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

trondeau pushed a commit to branch maint
in repository gnuradio.

commit 53ac8e81710ababafba629ac6b6c2b65622af0cd
Author: Tom Rondeau <address@hidden>
Date:   Thu Apr 24 10:00:38 2014 -0400

    channels: fixing a minor bug in the flag_fader model.
    
    Bug fix from 'qin 1921' submitted to GR mailing list.
---
 gr-channels/lib/flat_fader_impl.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gr-channels/lib/flat_fader_impl.cc 
b/gr-channels/lib/flat_fader_impl.cc
index af35e29..33cf37d 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]));



reply via email to

[Prev in Thread] Current Thread [Next in Thread]