Merged eb/binstats -r3848:3906 into trunk. These changes
authoreb <eb@221aa14e-8319-0410-a670-987f0aec2ac5>
Tue, 31 Oct 2006 16:07:47 +0000 (16:07 +0000)
committereb <eb@221aa14e-8319-0410-a670-987f0aec2ac5>
Tue, 31 Oct 2006 16:07:47 +0000 (16:07 +0000)
commit2c1032480d2874f38af9b5b9d18e753e968619e5
tree6f910bda577337475ffc4a53ad94c026f480f026
parent3695548d8598f524dd203f7dfc4f73f301b7282a
Merged eb/binstats -r3848:3906 into trunk.  These changes
(1) fix a problem with gr_feval* where when called from a live
flowgraph, they resulted in the call back into Python occuring without
holding the Global Interpreter Lock causing a SIGSEGV.

(2) add gr_bin_statistics_f which combines statistics gathering
with a control state machine that allows spectrum sensing or related
applications that need to step through the spectrum to be built.

(3) usrp_spectrum_sense.py which ties all this together in an
application which steps through the spectrum a chunk at a time and
gathers statistics.  In the current version, the stats are gathered by
nothing is done with them.  Think of this as the framework for a real
application.  This code may require tuning of the --tune-delay and
--dwell-delay timeouts to ensure that the samples being processed are
associated with the given center frequency.

git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@3907 221aa14e-8319-0410-a670-987f0aec2ac5
12 files changed:
gnuradio-core/src/lib/general/Makefile.am
gnuradio-core/src/lib/general/general.i
gnuradio-core/src/lib/general/gr_bin_statistics_f.cc [new file with mode: 0644]
gnuradio-core/src/lib/general/gr_bin_statistics_f.h [new file with mode: 0644]
gnuradio-core/src/lib/general/gr_bin_statistics_f.i [new file with mode: 0644]
gnuradio-core/src/lib/general/gr_feval.cc
gnuradio-core/src/lib/general/gr_feval.h
gnuradio-core/src/lib/general/gr_feval.i
gnuradio-core/src/python/gnuradio/gr/Makefile.am
gnuradio-core/src/python/gnuradio/gr/qa_bin_statistics.py [new file with mode: 0755]
gnuradio-examples/python/usrp/usrp_spectrum_sense.py [new file with mode: 0755]
gr-error-correcting-codes/src/lib/ecc_syms_to_metrics.cc