Tuesday, May 2, 2017

[Discuss-gnuradio] Fwd: Fwd: What value is in in[noutput_items+1]?

Thanks Sylvain and Nathan.  As soon as you mentioned set_history(N) is N-1 and how the data was laid out, everything made sense.  Made a quick fix in my code and the anomaly's gone.

Thanks!

---------- Forwarded message ----------
From: Sylvain Munaut <246tnt@gmail.com>
Date: Mon, May 1, 2017 at 5:38 PM
Subject: Re: [Discuss-gnuradio] Fwd: What value is in in[noutput_items+1]?
To: GhostOp14 <ghostop14@gmail.com>
Cc: GNURadio Discussion List <discuss-gnuradio@gnu.org>


First, set_history(2) means there will be 1 old sample, not two. (yeah
go figure ... but the default value is '1' and means "no history").

So, if noutput_items = 8192

in[0] = history[0]
in[1] = new_sample[0]
...
in[8192] = new_sample[8191]


Cheers,

   Sylvain

No comments:

Post a Comment