discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Help using simple_framer and simple_correlator


From: address@hidden
Subject: Re: [Discuss-gnuradio] Help using simple_framer and simple_correlator
Date: Thu, 1 Dec 2005 13:59:23 -0500

On Wed, 30 Nov 2005 15:15:17 -0800, Eric Blossom wrote:
> You might want to consider looking at the .h file too...

Yep, looking at .h helped but raised a question.  In the
gr_simple_correlator.h

inline int slice (float x)
  {
    return x >= d_avg ? 1 : 0;
  }

which makes more sense to compare to the average, but in .cc you also have

inline static int slice (float x)
{
  return x >= 0 ? 1 : 0;
}

Which one is used in the call

decision = slice (in[n]);

in the general_work?

Thanks on the explanation of the bit counter.  From the call to it, I get
that it counts how many bits in the stream match the GRSF_SYNC code.

I still don't get how the oversampled data gets used.  I would think that
d_shift_reg would get the average value of the input over the oversampled
period.  I don't see how the code does that.

PS: See my reply to 
http://lists.gnu.org/archive/html/discuss-gnuradio/2005-11/msg00204.html
(subject gmsk error)
for why I am still looking at using this type of sync.

Mike

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .






reply via email to

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