commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 02/08: channels: update LOS model to reflec


From: git
Subject: [Commit-gnuradio] [gnuradio] 02/08: channels: update LOS model to reflect NLOS changes to long term models
Date: Fri, 10 Jun 2016 20:45:11 +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 096c45c89b139c3496fff3261014cd657063580f
Author: Tim O'Shea <address@hidden>
Date:   Sun Mar 27 02:09:04 2016 -0400

    channels: update LOS model to reflect NLOS changes to long term models
---
 gr-channels/lib/flat_fader_impl.cc | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/gr-channels/lib/flat_fader_impl.cc 
b/gr-channels/lib/flat_fader_impl.cc
index b749eb3..f33ca22 100644
--- a/gr-channels/lib/flat_fader_impl.cc
+++ b/gr-channels/lib/flat_fader_impl.cc
@@ -1,6 +1,6 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2013 Free Software Foundation, Inc.
+ * Copyright 2016 Free Software Foundation, Inc.
  *
  * This file is part of GNU Radio
  *
@@ -79,16 +79,15 @@ namespace gr {
             float s_i = scale_sin*_GRFASTCOS(d_psi[n+1]);
             float s_q = scale_sin*_GRFASTSIN(d_phi[n+1]);
             H += gr_complex(s_i, s_q);
-        }
+            }
 
         if(d_LOS){
-            float los_i = _GRFASTCOS(2*M_PI*d_fDTs*d_m*_GRFASTCOS(d_theta_los) 
+ d_psi[0]);
-            float los_q = _GRFASTSIN(2*M_PI*d_fDTs*d_m*_GRFASTCOS(d_theta_los) 
+ d_psi[0]);
-            H = H*scale_nlos + gr_complex(los_i,los_q)*scale_los;
+            d_psi[0] = fmod(d_psi[0] + 2*M_PI*d_fDTs*_GRFASTCOS(d_theta_los), 
2*M_PI);
+            float los_i = scale_los*_GRFASTCOS(d_psi[0]);
+            float los_q = scale_los*_GRFASTSIN(d_psi[0]);
+            H = H*scale_nlos + gr_complex(los_i,los_q);
             }
 
-        //out[i] = in[i]*H;
-        d_m++;
         update_theta();
         return H;
     }



reply via email to

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