#
# 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
#
# 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
def test_constellation_decoder_cb (self):
symbol_positions = [1 + 0j, 0 + 1j , -1 + 0j, 0 - 1j]
def test_constellation_decoder_cb (self):
symbol_positions = [1 + 0j, 0 + 1j , -1 + 0j, 0 - 1j]
src = gr.vector_source_c (src_data)
op = gr.constellation_decoder_cb (symbol_positions, symbol_values_out)
dst = gr.vector_sink_b ()
src = gr.vector_source_c (src_data)
op = gr.constellation_decoder_cb (symbol_positions, symbol_values_out)
dst = gr.vector_sink_b ()
- self.fg.connect (src, op)
- self.fg.connect (op, dst)
- self.fg.run () # run the graph and wait for it to finish
+ self.tb.connect (src, op)
+ self.tb.connect (op, dst)
+ self.tb.run () # run the graph and wait for it to finish
actual_result = dst.data () # fetch the contents of the sink
#print "actual result", actual_result
#print "expected result", expected_result
actual_result = dst.data () # fetch the contents of the sink
#print "actual result", actual_result
#print "expected result", expected_result