commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r4170 - gnuradio/branches/developers/n4hy/ofdm/gnuradi


From: trondeau
Subject: [Commit-gnuradio] r4170 - gnuradio/branches/developers/n4hy/ofdm/gnuradio-core/src/lib/general
Date: Wed, 20 Dec 2006 18:16:00 -0700 (MST)

Author: trondeau
Date: 2006-12-20 18:16:00 -0700 (Wed, 20 Dec 2006)
New Revision: 4170

Modified:
   
gnuradio/branches/developers/n4hy/ofdm/gnuradio-core/src/lib/general/gr_ofdm_sampler.cc
Log:
added debug statements, sampler is now samples are pre-known times

Modified: 
gnuradio/branches/developers/n4hy/ofdm/gnuradio-core/src/lib/general/gr_ofdm_sampler.cc
===================================================================
--- 
gnuradio/branches/developers/n4hy/ofdm/gnuradio-core/src/lib/general/gr_ofdm_sampler.cc
     2006-12-21 01:14:04 UTC (rev 4169)
+++ 
gnuradio/branches/developers/n4hy/ofdm/gnuradio-core/src/lib/general/gr_ofdm_sampler.cc
     2006-12-21 01:16:00 UTC (rev 4170)
@@ -80,12 +80,13 @@
 
   unsigned int i=d_fft_length;
 
+  #if DEBUG
   for(i = 0; i < d_fft_length; i++)
     fprintf(stderr,"%d %f -2000 -1000\n",i, theta[i].real());
+  #endif
 
-
   while(i<d_symbol_length+d_fft_length && (found==0)) {
-#if 1
+#if 0
     if( (theta[i].real() > d_avg*0.25) &&
        (theta[i].real() > theta[i+1].real()) ) {
       found = 1;
@@ -104,11 +105,13 @@
 
       if(found) {
        //fprintf(stderr,"%d %f\n",i,theta[i].real()); 
+       #if DEBUG
        if(i != d_symbol_length-1) {    
          fprintf(stderr,"%d %f 0 0\n",i, theta[i].real());
        }
        else
          fprintf(stderr,"%d %f 0 -1000\n",i, theta[i].real());
+       #endif
 
        d_freq = epsilon[i].real() / d_fft_length;
        for(unsigned int j=0;j<d_fft_length;j++) {
@@ -122,7 +125,9 @@
     else {
       d_phase += d_freq;
       i++;
+      #if DEBUG
       fprintf(stderr,"%d %f -2000 -1000\n",i, theta[i].real());
+      #endif
     }
   }
   consume_each(d_symbol_length);





reply via email to

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