コード例 #1
0
ファイル: qa_ofdm_txrx.py プロジェクト: 232675/gnuradio
 def __init__(self, samples, len_tag_key, channel=None, prepend_zeros=100, scramble_bits=False):
     gr.top_block.__init__(self, "ofdm_rx")
     if prepend_zeros:
         samples = (0,) * prepend_zeros + tuple(samples)
     src = blocks.vector_source_c(tuple(samples) + (0,) * 1000)
     self.rx = ofdm_rx(frame_length_tag_key=len_tag_key, debug_log=LOG_DEBUG_INFO, scramble_bits=scramble_bits)
     if channel is not None:
         self.connect(src, channel, self.rx)
     else:
         self.connect(src, self.rx)
     self.sink = blocks.vector_sink_b()
     self.connect(self.rx, self.sink)
コード例 #2
0
 def __init__(self, samples, len_tag_key, channel=None, prepend_zeros=100, scramble_bits=False):
     gr.top_block.__init__(self, "ofdm_rx")
     if prepend_zeros:
         samples = (0,) * prepend_zeros + tuple(samples)
     src = blocks.vector_source_c(tuple(samples) + (0,) * 1000)
     self.rx = ofdm_rx(frame_length_tag_key=len_tag_key, debug_log=LOG_DEBUG_INFO, scramble_bits=scramble_bits)
     if channel is not None:
         self.connect(src, channel, self.rx)
     else:
         self.connect(src, self.rx)
     self.sink = blocks.vector_sink_b()
     self.connect(self.rx, self.sink)