# System configuration files
gr_prefsdir = $(GR_PREFSDIR)
+# Data directory for grc block wrappers
+grc_blocksdir = $(pkgdatadir)/grc/blocks
+
# Other common defines; use "+=" to add to these
STAMPS =
MOSTLYCLEANFILES = $(BUILT_SOURCES) $(STAMPS) *.pyc *.pyo *~ *.tmp *.loT
#
-# Copyright 2004,2005 Free Software Foundation, Inc.
+# Copyright 2004,2005,2009 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
def coswindow(coeffs):
def closure(fft_size):
window = [0] * fft_size
- print list(enumerate(coeffs))
+ #print list(enumerate(coeffs))
for w_index in range(fft_size):
for (c_index, coeff) in enumerate(coeffs):
window[w_index] += (-1)**c_index * coeff * math.cos(2.0*c_index*math.pi*(w_index+0.5)/(fft_size-1))
include $(top_srcdir)/Makefile.common
-grcblocksdir = $(prefix)/share/gnuradio/grc/blocks
+grcblocksdir = $(grc_blocksdir)
dist_grcblocks_DATA = \
noaa_hrpt_decoder.xml \
#
-# Copyright 2008 Free Software Foundation, Inc.
+# Copyright 2008,2009 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
#!/usr/bin/env python
#
-# Copyright 2003,2004,2005,2006,2007 Free Software Foundation, Inc.
+# Copyright 2003,2004,2005,2006,2007,2009 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
#
-# Copyright 2008 Free Software Foundation, Inc.
+# Copyright 2008,2009 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# Boston, MA 02110-1301, USA.
#
-include $(top_srcdir)/grc/Makefile.inc
+include $(top_srcdir)/Makefile.common
if PYTHON
SUBDIRS = \
SUBDIRS += freedesktop
endif
-ourpythondir = $(grc_src_prefix)
+ourpythondir = $(pkgpythondir)/grc
ourpython_PYTHON = __init__.py
etcdir = $(gr_prefsdir)
+++ /dev/null
-#
-# Copyright 2008, 2009 Free Software Foundation, Inc.
-#
-# This file is part of GNU Radio
-#
-# GNU Radio is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-#
-# GNU Radio is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU Radio; see the file COPYING. If not, write to
-# the Free Software Foundation, Inc., 51 Franklin Street,
-# Boston, MA 02110-1301, USA.
-#
-
-include $(top_srcdir)/Makefile.common
-grc_src_prefix = $(pkgpythondir)/grc
-grc_blocksdir = $(pkgdatadir)/grc/blocks
# Boston, MA 02110-1301, USA.
#
-include $(top_srcdir)/grc/Makefile.inc
+include $(top_srcdir)/Makefile.common
-ourpythondir = $(grc_src_prefix)/base
+ourpythondir = $(pkgpythondir)/grc/base
ourpython_PYTHON = \
odict.py \
ParseXML.py \
Port.py \
__init__.py
-ourdatadir = $(grc_src_prefix)/base
+ourdatadir = $(pkgpythondir)/grc/base
dist_ourdata_DATA = \
block_tree.dtd \
flow_graph.dtd
# Boston, MA 02110-1301, USA.
#
-include $(top_srcdir)/grc/Makefile.inc
+include $(top_srcdir)/Makefile.common
ourdatadir = $(grc_blocksdir)
dist_ourdata_DATA = \
<name>Message Sink</name>
<key>gr_message_sink</key>
<import>from gnuradio import gr</import>
- <make>gr.message_sink($type.size*$vlen, $(id)_msgq, $dont_block)</make>
+ <make>gr.message_sink($type.size*$vlen, $(id)_msgq_out, $dont_block)</make>
<param>
<name>Input Type</name>
<key>type</key>
<name>Message Source</name>
<key>gr_message_source</key>
<import>from gnuradio import gr</import>
- <make>gr.message_source($type.size*$vlen, $(id)_msgq)</make>
+ <make>gr.message_source($type.size*$vlen, $(id)_msgq_in)</make>
<param>
<name>Output Type</name>
<key>type</key>
# Boston, MA 02110-1301, USA.
#
-include $(top_srcdir)/grc/Makefile.inc
+include $(top_srcdir)/Makefile.common
ourdatadir = $(pkgdatadir)/grc/freedesktop
# Boston, MA 02110-1301, USA.
#
-include $(top_srcdir)/grc/Makefile.inc
+include $(top_srcdir)/Makefile.common
-ourpythondir = $(grc_src_prefix)/gui
+ourpythondir = $(pkgpythondir)/grc/gui
ourpython_PYTHON = \
Block.py \
Colors.py \
# Boston, MA 02110-1301, USA.
#
-include $(top_srcdir)/grc/Makefile.inc
+include $(top_srcdir)/Makefile.common
-ourpythondir = $(grc_src_prefix)/python
+ourpythondir = $(pkgpythondir)/grc/python
ourpython_PYTHON = \
convert_hier.py \
expr_utils.py \
Port.py \
__init__.py
-ourdatadir = $(grc_src_prefix)/python
+ourdatadir = $(pkgpythondir)/grc/python
dist_ourdata_DATA = \
block.dtd \
default_flow_graph.grc \
$DIVIDER
#end if
#for $msg in $messages
- $(msg.get_source().get_parent().get_id())_msgq = $(msg.get_sink().get_parent().get_id())_msgq = gr.msg_queue(2)
+ $(msg.get_source().get_parent().get_id())_msgq_out = $(msg.get_sink().get_parent().get_id())_msgq_in = gr.msg_queue(2)
#end for
########################################################
##Create Blocks
#
-# Copyright 2008 Free Software Foundation, Inc.
+# Copyright 2008, 2009 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# Boston, MA 02110-1301, USA.
#
-include $(top_srcdir)/grc/Makefile.inc
+include $(top_srcdir)/Makefile.common
dist_bin_SCRIPTS = grc usrp2_probe usrp_probe
* callbacks for set average on fft, waterfall, number sinks
* add units to params: Sps, Hz, dB...
* add bool type to command line option store_true or store_false
+* messages for packet blocks and probe blocks
##################################################
# Features
* concept of a project, or project flow graph
* collection of blocks, hier and top
* system-wide, default/work, and user created
+* use templates/macros to generate the repetative stuff in the xml
##################################################
# Problems
* threads dont die on exit in probe and variable sink
* align param titles in properties dialog
* weird grid params misbehaving
+* gr hier blocks have more diverse IO capabilities than we allow for
##################################################
# Future