~ubuntu-branches/ubuntu/trusty/gnuradio/trusty-updates

« back to all changes in this revision

Viewing changes to grc/grc_gnuradio/blks2/packet.py

  • Committer: Package Import Robot
  • Author(s): A. Maitland Bottoms
  • Date: 2012-02-26 21:26:16 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20120226212616-vsfkbi1158xshdql
Tags: 3.5.1-1
* new upstream version, re-packaged from scratch with modern tools
    closes: #642716, #645332, #394849, #616832, #590048, #642580,
    #647018, #557050, #559640, #631863
* CMake build

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
# Boston, MA 02110-1301, USA.
19
19
#
20
20
 
21
 
from gnuradio import gr, packet_utils
 
21
from gnuradio import gr, digital
 
22
from gnuradio.digital import packet_utils
22
23
import gnuradio.gr.gr_threading as _threading
23
24
 
24
25
##payload length in bytes
156
157
                self._threshold = threshold
157
158
                #blocks
158
159
                msgq = gr.msg_queue(DEFAULT_MSGQ_LIMIT) #holds packets from the PHY
159
 
                correlator = gr.correlate_access_code_bb(self._access_code, self._threshold)
 
160
                correlator = digital.correlate_access_code_bb(self._access_code, self._threshold)
160
161
                framer_sink = gr.framer_sink_1(msgq)
161
162
                #initialize hier2
162
163
                gr.hier_block2.__init__(