[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] max amplitude detector
From: |
Jason Uher |
Subject: |
Re: [Discuss-gnuradio] max amplitude detector |
Date: |
Tue, 9 Jun 2009 13:14:54 -0500 |
> Is there a function that simply looks at a steam of data and returns the
> maximum value for amplitude within a certain number of samples? I
> looked at gr_peak_detector, but it expects the peak parameters and
> returns true or false, not exactly what i need.
This should be fairly easy to implement using the 'history' array in
the write-a-block framework.
Check out http://www.gnu.org/software/gnuradio/doc/howto-write-a-block.html
I'm not sure it's fully update for gr3.2, but you can easily just
modify the source of gr_peak_detector or one of the correlator blocks
to find the max within the last N samples.
Jason