コード例 #1
0
    def __init__(self):
        gr.top_block.__init__(self, "Turbo Verification V0")
        Qt.QWidget.__init__(self)
        self.setWindowTitle("Turbo Verification V0")
        qtgui.util.check_set_qss()
        try:
            self.setWindowIcon(Qt.QIcon.fromTheme('gnuradio-grc'))
        except:
            pass
        self.top_scroll_layout = Qt.QVBoxLayout()
        self.setLayout(self.top_scroll_layout)
        self.top_scroll = Qt.QScrollArea()
        self.top_scroll.setFrameStyle(Qt.QFrame.NoFrame)
        self.top_scroll_layout.addWidget(self.top_scroll)
        self.top_scroll.setWidgetResizable(True)
        self.top_widget = Qt.QWidget()
        self.top_scroll.setWidget(self.top_widget)
        self.top_layout = Qt.QVBoxLayout(self.top_widget)
        self.top_grid_layout = Qt.QGridLayout()
        self.top_layout.addLayout(self.top_grid_layout)

        self.settings = Qt.QSettings("GNU Radio", "turbo_verification_v0")
        self.restoreGeometry(self.settings.value("geometry").toByteArray())

        ##################################################
        # Variables
        ##################################################
        self.symbol_rate = symbol_rate = 500e3
        self.sps = sps = 4
        self.vcdu_size = vcdu_size = 223 - 10
        self.samp_rate = samp_rate = symbol_rate * sps
        self.ntaps = ntaps = 40 * sps
        self.nfilts = nfilts = 32
        self.value = value = [0, 1]
        self.to = to = 0.0

        self.taps = taps = firdes.root_raised_cosine(sps, samp_rate,
                                                     symbol_rate, 0.35, ntaps)

        self.symbol = symbol = [-1, 1]
        self.scramble = scramble = 0
        self.rs = rs = 1
        self.reset = reset = vcdu_size
        self.polyphase_taps = polyphase_taps = firdes.root_raised_cosine(
            sps * nfilts, nfilts, 1.0 / float(sps), 0.35, 20 * sps * nfilts)
        self.parity = parity = 32
        self.linecode = linecode = 1
        self.intDepth = intDepth = 1
        self.frame_size = frame_size = vcdu_size + 10
        self.cfo = cfo = 0.25
        self.SNR = SNR = 10
        self.Rc = Rc = 0.5

        ##################################################
        # Blocks
        ##################################################
        self.tdd_ferMsgGen_0 = tdd.ferMsgGen(vcdu_size, 'cadu_len', 'vcdu_len')
        self.tdd_ferMsgCount_0 = tdd.ferMsgCount(0)
        self.mapper_prbs_source_b_0 = mapper.prbs_source_b("PRBS31", reset * 8)
        self.mapper_prbs_sink_b_0 = mapper.prbs_sink_b("PRBS31", reset * 8)
        self.dslwp_frame_spliter_f_0 = dslwp.frame_spliter_f(
            'payload_start', 3576)
        self.dslwp_ccsds_turbo_decode_0 = dslwp.ccsds_turbo_decode(
            223, 1, 2, 2, 0.707, 1)
        self.digital_map_bb_0 = digital.map_bb((-1, 1))
        self.ccsds_synchronizeCADU_0 = ccsds.synchronizeCADU(
            '1ACFFC1D', 0, "sync")
        self.ccsds_recoverCADU_1 = ccsds.recoverCADU(
            int(frame_size / Rc) + 1, scramble, 'sync')
        self.ccsds_encodeTurbo_0 = ccsds.encodeTurbo(frame_size, 2, 'cadu_len')
        self.ccsds_createCADU_0 = ccsds.createCADU(
            int(frame_size / Rc) + 1, '1ACFFC1D', scramble, 'xx_len')
        self.blocks_unpack_k_bits_bb_1 = blocks.unpack_k_bits_bb(8)
        self.blocks_unpack_k_bits_bb_0_0 = blocks.unpack_k_bits_bb(8)
        self.blocks_unpack_k_bits_bb_0 = blocks.unpack_k_bits_bb(8)
        self.blocks_throttle_0 = blocks.throttle(gr.sizeof_char * 1, samp_rate,
                                                 True)
        self.blocks_stream_to_tagged_stream_2 = blocks.stream_to_tagged_stream(
            gr.sizeof_float, 1, 3576, "payload_start")
        self.blocks_stream_to_tagged_stream_0_0 = blocks.stream_to_tagged_stream(
            gr.sizeof_char, 1,
            int(frame_size / Rc) + 1, "xx_len")
        self.blocks_stream_to_tagged_stream_0 = blocks.stream_to_tagged_stream(
            gr.sizeof_char, 1, vcdu_size, "vcdu_len")
        self.blocks_pdu_to_tagged_stream_0_1 = blocks.pdu_to_tagged_stream(
            blocks.byte_t, 'packet_len')
        self.blocks_pdu_to_tagged_stream_0_0 = blocks.pdu_to_tagged_stream(
            blocks.byte_t, 'packet_len')
        self.blocks_pack_k_bits_bb_0 = blocks.pack_k_bits_bb(8)
        self.blocks_message_debug_0 = blocks.message_debug()
        self.blocks_char_to_float_0 = blocks.char_to_float(1, 0.5)

        ##################################################
        # Connections
        ##################################################
        self.msg_connect((self.ccsds_recoverCADU_1, 'cadu'),
                         (self.blocks_pdu_to_tagged_stream_0_0, 'pdus'))
        self.msg_connect((self.dslwp_ccsds_turbo_decode_0, 'out'),
                         (self.blocks_message_debug_0, 'store'))
        self.msg_connect((self.dslwp_ccsds_turbo_decode_0, 'out'),
                         (self.tdd_ferMsgCount_0, 'in'))
        self.msg_connect((self.dslwp_frame_spliter_f_0, 'out'),
                         (self.dslwp_ccsds_turbo_decode_0, 'in'))
        self.msg_connect((self.tdd_ferMsgCount_0, 'out'),
                         (self.blocks_pdu_to_tagged_stream_0_1, 'pdus'))
        self.connect((self.blocks_char_to_float_0, 0),
                     (self.blocks_stream_to_tagged_stream_2, 0))
        self.connect((self.blocks_pack_k_bits_bb_0, 0),
                     (self.blocks_stream_to_tagged_stream_0, 0))
        self.connect((self.blocks_pdu_to_tagged_stream_0_0, 0),
                     (self.blocks_unpack_k_bits_bb_0_0, 0))
        self.connect((self.blocks_pdu_to_tagged_stream_0_1, 0),
                     (self.blocks_unpack_k_bits_bb_1, 0))
        self.connect((self.blocks_stream_to_tagged_stream_0, 0),
                     (self.tdd_ferMsgGen_0, 0))
        self.connect((self.blocks_stream_to_tagged_stream_0_0, 0),
                     (self.ccsds_createCADU_0, 0))
        self.connect((self.blocks_stream_to_tagged_stream_2, 0),
                     (self.dslwp_frame_spliter_f_0, 0))
        self.connect((self.blocks_throttle_0, 0),
                     (self.blocks_pack_k_bits_bb_0, 0))
        self.connect((self.blocks_unpack_k_bits_bb_0, 0),
                     (self.ccsds_synchronizeCADU_0, 0))
        self.connect((self.blocks_unpack_k_bits_bb_0_0, 0),
                     (self.digital_map_bb_0, 0))
        self.connect((self.blocks_unpack_k_bits_bb_1, 0),
                     (self.mapper_prbs_sink_b_0, 0))
        self.connect((self.ccsds_createCADU_0, 0),
                     (self.blocks_unpack_k_bits_bb_0, 0))
        self.connect((self.ccsds_encodeTurbo_0, 0),
                     (self.blocks_stream_to_tagged_stream_0_0, 0))
        self.connect((self.ccsds_synchronizeCADU_0, 0),
                     (self.ccsds_recoverCADU_1, 0))
        self.connect((self.digital_map_bb_0, 0),
                     (self.blocks_char_to_float_0, 0))
        self.connect((self.mapper_prbs_source_b_0, 0),
                     (self.blocks_throttle_0, 0))
        self.connect((self.tdd_ferMsgGen_0, 0), (self.ccsds_encodeTurbo_0, 0))
コード例 #2
0
    def __init__(self):
        gr.top_block.__init__(self, "demod_dslwp_gmsk_b1")
        Qt.QWidget.__init__(self)
        self.setWindowTitle("demod_dslwp_gmsk_b1")
        qtgui.util.check_set_qss()
        try:
            self.setWindowIcon(Qt.QIcon.fromTheme('gnuradio-grc'))
        except:
            pass
        self.top_scroll_layout = Qt.QVBoxLayout()
        self.setLayout(self.top_scroll_layout)
        self.top_scroll = Qt.QScrollArea()
        self.top_scroll.setFrameStyle(Qt.QFrame.NoFrame)
        self.top_scroll_layout.addWidget(self.top_scroll)
        self.top_scroll.setWidgetResizable(True)
        self.top_widget = Qt.QWidget()
        self.top_scroll.setWidget(self.top_widget)
        self.top_layout = Qt.QVBoxLayout(self.top_widget)
        self.top_grid_layout = Qt.QGridLayout()
        self.top_layout.addLayout(self.top_grid_layout)

        self.settings = Qt.QSettings("GNU Radio", "demod_dslwp_gmsk_b1")
        self.restoreGeometry(self.settings.value("geometry").toByteArray())

        ##################################################
        # Variables
        ##################################################
        self.sps = sps = 8
        self.ebn0_threshold = ebn0_threshold = -2
        self.snr_threshold = snr_threshold = 10.0**(ebn0_threshold /
                                                    10.0) / sps
        self.samp_rate = samp_rate = 4000
        self.pll_loop_bw = pll_loop_bw = 8
        self.if_rate = if_rate = 40000
        self.f_offset = f_offset = 0
        self.af_gain = af_gain = 10

        ##################################################
        # Blocks
        ##################################################
        self._f_offset_tool_bar = Qt.QToolBar(self)
        self._f_offset_tool_bar.addWidget(Qt.QLabel("f_offset" + ": "))
        self._f_offset_line_edit = Qt.QLineEdit(str(self.f_offset))
        self._f_offset_tool_bar.addWidget(self._f_offset_line_edit)
        self._f_offset_line_edit.returnPressed.connect(
            lambda: self.set_f_offset(
                eng_notation.str_to_num(
                    str(self._f_offset_line_edit.text().toAscii()))))
        self.top_grid_layout.addWidget(self._f_offset_tool_bar, 1, 0, 1, 1)
        for r in range(1, 2):
            self.top_grid_layout.setRowStretch(r, 1)
        for c in range(0, 1):
            self.top_grid_layout.setColumnStretch(c, 1)
        self._af_gain_tool_bar = Qt.QToolBar(self)
        self._af_gain_tool_bar.addWidget(Qt.QLabel("af_gain" + ": "))
        self._af_gain_line_edit = Qt.QLineEdit(str(self.af_gain))
        self._af_gain_tool_bar.addWidget(self._af_gain_line_edit)
        self._af_gain_line_edit.returnPressed.connect(lambda: self.set_af_gain(
            eng_notation.str_to_num(
                str(self._af_gain_line_edit.text().toAscii()))))
        self.top_grid_layout.addWidget(self._af_gain_tool_bar, 2, 0, 1, 1)
        for r in range(2, 3):
            self.top_grid_layout.setRowStretch(r, 1)
        for c in range(0, 1):
            self.top_grid_layout.setColumnStretch(c, 1)
        self.qtgui_waterfall_sink_x_0 = qtgui.waterfall_sink_c(
            1024,  #size
            firdes.WIN_BLACKMAN_hARRIS,  #wintype
            0,  #fc
            samp_rate,  #bw
            "",  #name
            1  #number of inputs
        )
        self.qtgui_waterfall_sink_x_0.set_update_time(1024.0 / 2000.0)
        self.qtgui_waterfall_sink_x_0.enable_grid(False)
        self.qtgui_waterfall_sink_x_0.enable_axis_labels(True)

        if not True:
            self.qtgui_waterfall_sink_x_0.disable_legend()

        if "complex" == "float" or "complex" == "msg_float":
            self.qtgui_waterfall_sink_x_0.set_plot_pos_half(not True)

        labels = ['', '', '', '', '', '', '', '', '', '']
        colors = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
        alphas = [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]
        for i in xrange(1):
            if len(labels[i]) == 0:
                self.qtgui_waterfall_sink_x_0.set_line_label(
                    i, "Data {0}".format(i))
            else:
                self.qtgui_waterfall_sink_x_0.set_line_label(i, labels[i])
            self.qtgui_waterfall_sink_x_0.set_color_map(i, colors[i])
            self.qtgui_waterfall_sink_x_0.set_line_alpha(i, alphas[i])

        self.qtgui_waterfall_sink_x_0.set_intensity_range(-130, -80)

        self._qtgui_waterfall_sink_x_0_win = sip.wrapinstance(
            self.qtgui_waterfall_sink_x_0.pyqwidget(), Qt.QWidget)
        self.top_grid_layout.addWidget(self._qtgui_waterfall_sink_x_0_win, 3,
                                       0, 1, 1)
        for r in range(3, 4):
            self.top_grid_layout.setRowStretch(r, 1)
        for c in range(0, 1):
            self.top_grid_layout.setColumnStretch(c, 1)
        self.qtgui_freq_sink_x_0_0 = qtgui.freq_sink_c(
            1024,  #size
            firdes.WIN_BLACKMAN_hARRIS,  #wintype
            0,  #fc
            samp_rate,  #bw
            "",  #name
            1  #number of inputs
        )
        self.qtgui_freq_sink_x_0_0.set_update_time(0.10)
        self.qtgui_freq_sink_x_0_0.set_y_axis(-140, -20)
        self.qtgui_freq_sink_x_0_0.set_y_label('Relative Gain', 'dB')
        self.qtgui_freq_sink_x_0_0.set_trigger_mode(qtgui.TRIG_MODE_FREE, 0.0,
                                                    0, "")
        self.qtgui_freq_sink_x_0_0.enable_autoscale(False)
        self.qtgui_freq_sink_x_0_0.enable_grid(True)
        self.qtgui_freq_sink_x_0_0.set_fft_average(1.0)
        self.qtgui_freq_sink_x_0_0.enable_axis_labels(True)
        self.qtgui_freq_sink_x_0_0.enable_control_panel(False)

        if not True:
            self.qtgui_freq_sink_x_0_0.disable_legend()

        if "complex" == "float" or "complex" == "msg_float":
            self.qtgui_freq_sink_x_0_0.set_plot_pos_half(not True)

        labels = ['', '', '', '', '', '', '', '', '', '']
        widths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        colors = [
            "blue", "red", "green", "black", "cyan", "magenta", "yellow",
            "dark red", "dark green", "dark blue"
        ]
        alphas = [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]
        for i in xrange(1):
            if len(labels[i]) == 0:
                self.qtgui_freq_sink_x_0_0.set_line_label(
                    i, "Data {0}".format(i))
            else:
                self.qtgui_freq_sink_x_0_0.set_line_label(i, labels[i])
            self.qtgui_freq_sink_x_0_0.set_line_width(i, widths[i])
            self.qtgui_freq_sink_x_0_0.set_line_color(i, colors[i])
            self.qtgui_freq_sink_x_0_0.set_line_alpha(i, alphas[i])

        self._qtgui_freq_sink_x_0_0_win = sip.wrapinstance(
            self.qtgui_freq_sink_x_0_0.pyqwidget(), Qt.QWidget)
        self.top_grid_layout.addWidget(self._qtgui_freq_sink_x_0_0_win, 5, 0,
                                       1, 1)
        for r in range(5, 6):
            self.top_grid_layout.setRowStretch(r, 1)
        for c in range(0, 1):
            self.top_grid_layout.setColumnStretch(c, 1)
        self.qtgui_const_sink_x_0 = qtgui.const_sink_c(
            512,  #size
            "",  #name
            1  #number of inputs
        )
        self.qtgui_const_sink_x_0.set_update_time(512.0 / 125.0)
        self.qtgui_const_sink_x_0.set_y_axis(-4, 4)
        self.qtgui_const_sink_x_0.set_x_axis(-4, 4)
        self.qtgui_const_sink_x_0.set_trigger_mode(qtgui.TRIG_MODE_FREE,
                                                   qtgui.TRIG_SLOPE_POS, 0.0,
                                                   0, "")
        self.qtgui_const_sink_x_0.enable_autoscale(False)
        self.qtgui_const_sink_x_0.enable_grid(False)
        self.qtgui_const_sink_x_0.enable_axis_labels(True)

        if not True:
            self.qtgui_const_sink_x_0.disable_legend()

        labels = ['', '', '', '', '', '', '', '', '', '']
        widths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        colors = [
            "blue", "red", "red", "red", "red", "red", "red", "red", "red",
            "red"
        ]
        styles = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
        markers = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
        alphas = [0.3, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]
        for i in xrange(1):
            if len(labels[i]) == 0:
                self.qtgui_const_sink_x_0.set_line_label(
                    i, "Data {0}".format(i))
            else:
                self.qtgui_const_sink_x_0.set_line_label(i, labels[i])
            self.qtgui_const_sink_x_0.set_line_width(i, widths[i])
            self.qtgui_const_sink_x_0.set_line_color(i, colors[i])
            self.qtgui_const_sink_x_0.set_line_style(i, styles[i])
            self.qtgui_const_sink_x_0.set_line_marker(i, markers[i])
            self.qtgui_const_sink_x_0.set_line_alpha(i, alphas[i])

        self._qtgui_const_sink_x_0_win = sip.wrapinstance(
            self.qtgui_const_sink_x_0.pyqwidget(), Qt.QWidget)
        self.top_grid_layout.addWidget(self._qtgui_const_sink_x_0_win, 4, 0, 1,
                                       1)
        for r in range(4, 5):
            self.top_grid_layout.setRowStretch(r, 1)
        for c in range(0, 1):
            self.top_grid_layout.setColumnStretch(c, 1)
        self.low_pass_filter_3_0_0 = filter.fir_filter_ccf(
            10,
            firdes.low_pass(1, if_rate, 1.6e3, 0.3e3, firdes.WIN_HAMMING,
                            6.76))
        self.fft_correlator_hier_0 = fft_correlator_hier(
            fft_size=1024,
            nthreads=1,
            tap_len=1024,
            taps=[
                0.986752 + 0.162236j, 0.961165 + 0.275976j, 0.909253 +
                0.416245j, 0.823810 + 0.566866j, 0.704089 + 0.710112j,
                0.554654 + 0.832081j, 0.382467 + 0.923969j,
                0.195052 + 0.980793j, 0.000006 + 1.000000j,
                -0.195011 + 0.980801j, -0.382250 + 0.924059j,
                -0.553737 + 0.832692j, -0.701059 + 0.713104j,
                -0.815998 + 0.578055j, -0.893407 + 0.449249j,
                -0.934886 + 0.354949j, -0.947363 + 0.320163j,
                -0.934914 + 0.354874j, -0.893617 + 0.448830j,
                -0.817269 + 0.576256j, -0.707107 + 0.707107j,
                -0.576256 + 0.817269j, -0.448830 + 0.893617j,
                -0.354872 + 0.934915j, -0.320152 + 0.947366j,
                -0.354872 + 0.934915j, -0.448830 + 0.893617j,
                -0.576256 + 0.817269j, -0.707107 + 0.707107j,
                -0.817269 + 0.576256j, -0.893617 + 0.448830j,
                -0.934915 + 0.354872j, -0.947366 + 0.320152j,
                -0.934915 + 0.354872j, -0.893617 + 0.448830j,
                -0.817269 + 0.576256j, -0.707107 + 0.707107j, -0.576256 +
                0.817269j, -0.448830 + 0.893617j, -0.354874 + 0.934914j,
                -0.320163 + 0.947363j, -0.354949 + 0.934886j, -0.449249 +
                0.893407j, -0.578055 + 0.815998j, -0.713104 + 0.701059j,
                -0.832692 + 0.553737j, -0.924059 + 0.382250j, -0.980801 +
                0.195010j, -1.000000 - 0.000012j, -0.980785 - 0.195092j,
                -0.923879 - 0.382684j, -0.831470 - 0.555570j, -0.707107 -
                0.707107j, -0.555570 - 0.831470j, -0.382683 - 0.923880j,
                -0.195090 - 0.980785j, -0.000000 - 1.000000j, 0.195090 -
                0.980785j, 0.382683 - 0.923880j, 0.555570 - 0.831470j,
                0.707107 - 0.707107j, 0.831470 - 0.555570j, 0.923879 -
                0.382684j, 0.980785 - 0.195092j, 1.000000 - 0.000012j,
                0.980801 + 0.195010j, 0.924059 + 0.382250j, 0.832692 +
                0.553737j, 0.713104 + 0.701059j, 0.578055 + 0.815998j,
                0.449249 + 0.893407j, 0.354949 + 0.934886j, 0.320163 +
                0.947363j, 0.354874 + 0.934914j, 0.448830 + 0.893617j,
                0.576256 + 0.817269j, 0.707107 + 0.707107j, 0.817269 +
                0.576256j, 0.893617 + 0.448830j, 0.934914 + 0.354874j,
                0.947363 + 0.320163j, 0.934886 + 0.354949j, 0.893407 +
                0.449249j, 0.815998 + 0.578055j, 0.701059 + 0.713104j,
                0.553737 + 0.832692j, 0.382250 + 0.924059j, 0.195012 +
                0.980801j, 0.000000 + 1.000000j, -0.195012 + 0.980801j,
                -0.382250 + 0.924059j, -0.553737 + 0.832692j, -0.701059 +
                0.713104j, -0.815998 + 0.578055j, -0.893407 + 0.449249j,
                -0.934885 + 0.354950j, -0.947359 + 0.320174j, -0.934885 +
                0.354950j, -0.893407 + 0.449249j, -0.815998 + 0.578055j,
                -0.701059 + 0.713104j, -0.553737 + 0.832692j, -0.382250 +
                0.924059j, -0.195010 + 0.980801j, 0.000012 + 1.000000j,
                0.195092 + 0.980785j, 0.382684 + 0.923879j, 0.555570 +
                0.831470j, 0.707107 + 0.707107j, 0.831470 + 0.555570j,
                0.923879 + 0.382684j, 0.980785 + 0.195092j, 1.000000 +
                0.000012j, 0.980801 - 0.195010j, 0.924059 - 0.382250j,
                0.832692 - 0.553737j, 0.713104 - 0.701059j, 0.578055 -
                0.815998j, 0.449249 - 0.893407j, 0.354950 - 0.934885j,
                0.320174 - 0.947359j, 0.354950 - 0.934885j, 0.449249 -
                0.893407j, 0.578055 - 0.815998j, 0.713104 - 0.701059j,
                0.832692 - 0.553737j, 0.924059 - 0.382250j, 0.980801 -
                0.195012j, 1.000000 - 0.000000j, 0.980801 + 0.195012j,
                0.924059 + 0.382250j, 0.832692 + 0.553737j, 0.713104 +
                0.701059j, 0.578055 + 0.815998j, 0.449249 + 0.893407j,
                0.354950 + 0.934885j, 0.320174 + 0.947359j, 0.354950 +
                0.934885j, 0.449249 + 0.893407j, 0.578055 + 0.815998j,
                0.713104 + 0.701059j, 0.832692 + 0.553737j, 0.924059 +
                0.382250j, 0.980801 + 0.195012j, 1.000000 - 0.000000j,
                0.980801 - 0.195012j, 0.924059 - 0.382250j, 0.832692 -
                0.553737j, 0.713104 - 0.701059j, 0.578055 - 0.815998j,
                0.449249 - 0.893407j, 0.354950 - 0.934885j, 0.320174 -
                0.947359j, 0.354950 - 0.934885j, 0.449249 - 0.893407j,
                0.578055 - 0.815998j, 0.713104 - 0.701059j, 0.832692 -
                0.553737j, 0.924059 - 0.382250j, 0.980801 - 0.195012j,
                1.000000 - 0.000000j, 0.980801 + 0.195012j, 0.924059 +
                0.382250j, 0.832692 + 0.553737j, 0.713104 + 0.701059j,
                0.578055 + 0.815998j, 0.449249 + 0.893407j, 0.354950 +
                0.934885j, 0.320174 + 0.947359j, 0.354950 + 0.934885j,
                0.449249 + 0.893407j, 0.578055 + 0.815998j, 0.713104 +
                0.701059j, 0.832692 + 0.553737j, 0.924059 + 0.382250j, 0.980801
                + 0.195010j, 1.000000 - 0.000012j, 0.980785 - 0.195092j,
                0.923879 - 0.382684j, 0.831470 - 0.555570j, 0.707107 -
                0.707107j, 0.555570 - 0.831470j, 0.382684 - 0.923879j,
                0.195092 - 0.980785j, 0.000012 - 1.000000j, -0.195010 -
                0.980801j, -0.382250 - 0.924059j, -0.553737 - 0.832692j,
                -0.701059 - 0.713104j, -0.815998 - 0.578055j, -0.893407 -
                0.449249j, -0.934885 - 0.354950j, -0.947359 - 0.320174j,
                -0.934885 - 0.354950j, -0.893407 - 0.449249j, -0.815998 -
                0.578055j, -0.701059 - 0.713104j, -0.553737 - 0.832692j,
                -0.382250 - 0.924059j, -0.195010 - 0.980801j, 0.000012 -
                1.000000j, 0.195092 - 0.980785j, 0.382684 - 0.923879j,
                0.555570 - 0.831470j, 0.707107 - 0.707107j, 0.831470 -
                0.555570j, 0.923880 - 0.382683j, 0.980785 - 0.195090j,
                1.000000 - 0.000000j, 0.980785 + 0.195090j, 0.923880 +
                0.382683j, 0.831470 + 0.555570j, 0.707107 + 0.707107j,
                0.555570 + 0.831470j, 0.382684 + 0.923879j, 0.195092 +
                0.980785j, 0.000012 + 1.000000j, -0.195010 + 0.980801j,
                -0.382250 + 0.924059j, -0.553737 + 0.832692j, -0.701059 +
                0.713104j, -0.815998 + 0.578055j, -0.893407 + 0.449249j,
                -0.934885 + 0.354950j, -0.947359 + 0.320174j, -0.934885 +
                0.354950j, -0.893407 + 0.449249j, -0.815998 + 0.578055j,
                -0.701059 + 0.713104j, -0.553737 + 0.832692j, -0.382250 +
                0.924059j, -0.195010 + 0.980801j, 0.000012 + 1.000000j,
                0.195092 + 0.980785j, 0.382684 + 0.923879j, 0.555570 +
                0.831470j, 0.707107 + 0.707107j, 0.831470 + 0.555570j,
                0.923879 + 0.382684j, 0.980785 + 0.195092j, 1.000000 +
                0.000012j, 0.980801 - 0.195010j, 0.924059 - 0.382250j,
                0.832692 - 0.553737j, 0.713104 - 0.701059j, 0.578055 -
                0.815998j, 0.449249 - 0.893407j, 0.354950 - 0.934885j,
                0.320174 - 0.947359j, 0.354950 - 0.934885j, 0.449249 -
                0.893407j, 0.578055 - 0.815998j, 0.713104 - 0.701059j,
                0.832692 - 0.553737j, 0.924059 - 0.382250j, 0.980801 -
                0.195010j, 1.000000 + 0.000012j, 0.980785 + 0.195092j,
                0.923879 + 0.382684j, 0.831470 + 0.555570j, 0.707107 +
                0.707107j, 0.555570 + 0.831470j, 0.382683 + 0.923880j,
                0.195090 + 0.980785j, 0.000000 + 1.000000j, -0.195090 +
                0.980785j, -0.382683 + 0.923880j, -0.555570 + 0.831470j,
                -0.707107 + 0.707107j, -0.831470 + 0.555570j, -0.923879 +
                0.382684j, -0.980785 + 0.195092j, -1.000000 + 0.000012j,
                -0.980801 - 0.195010j, -0.924059 - 0.382250j, -0.832692 -
                0.553737j, -0.713104 - 0.701059j, -0.578055 - 0.815998j,
                -0.449249 - 0.893407j, -0.354950 - 0.934885j, -0.320174 -
                0.947359j, -0.354950 - 0.934885j, -0.449249 - 0.893407j,
                -0.578055 - 0.815998j, -0.713104 - 0.701059j, -0.832692 -
                0.553737j, -0.924059 - 0.382250j, -0.980801 - 0.195010j,
                -1.000000 + 0.000012j, -0.980785 + 0.195092j, -0.923879 +
                0.382684j, -0.831470 + 0.555570j, -0.707107 + 0.707107j,
                -0.555570 + 0.831470j, -0.382683 + 0.923880j, -0.195090 +
                0.980785j, 0.000000 + 1.000000j, 0.195090 + 0.980785j,
                0.382683 + 0.923880j, 0.555570 + 0.831470j, 0.707107 +
                0.707107j, 0.831470 + 0.555570j, 0.923879 + 0.382684j,
                0.980785 + 0.195092j, 1.000000 + 0.000012j, 0.980801 -
                0.195010j, 0.924059 - 0.382250j, 0.832692 - 0.553737j, 0.713104
                - 0.701059j, 0.578055 - 0.815998j, 0.449249 - 0.893407j,
                0.354950 - 0.934885j, 0.320174 - 0.947359j, 0.354950 -
                0.934885j, 0.449249 - 0.893407j, 0.578055 - 0.815998j,
                0.713104 - 0.701059j, 0.832692 - 0.553737j, 0.924059 -
                0.382250j, 0.980801 - 0.195010j, 1.000000 + 0.000012j,
                0.980785 + 0.195092j, 0.923879 + 0.382684j, 0.831470 +
                0.555570j, 0.707107 + 0.707107j, 0.555570 + 0.831470j,
                0.382683 + 0.923880j, 0.195090 + 0.980785j, 0.000000 +
                1.000000j, -0.195090 + 0.980785j, -0.382683 + 0.923880j,
                -0.555570 + 0.831470j, -0.707107 + 0.707107j, -0.831470 +
                0.555570j, -0.923879 + 0.382684j, -0.980785 + 0.195092j,
                -1.000000 + 0.000012j, -0.980801 - 0.195010j, -0.924059 -
                0.382250j, -0.832692 - 0.553737j, -0.713104 - 0.701059j,
                -0.578055 - 0.815998j, -0.449249 - 0.893407j, -0.354949 -
                0.934886j, -0.320163 - 0.947363j, -0.354874 - 0.934914j,
                -0.448830 - 0.893617j, -0.576256 - 0.817269j, -0.707107 -
                0.707107j, -0.817269 - 0.576256j, -0.893617 - 0.448830j,
                -0.934915 - 0.354872j, -0.947366 - 0.320152j, -0.934915 -
                0.354872j, -0.893617 - 0.448830j, -0.817269 - 0.576256j,
                -0.707107 - 0.707107j, -0.576256 - 0.817269j, -0.448830 -
                0.893617j, -0.354874 - 0.934914j, -0.320163 - 0.947363j,
                -0.354949 - 0.934886j, -0.449249 - 0.893407j, -0.578055 -
                0.815998j, -0.713104 - 0.701059j, -0.832692 - 0.553737j,
                -0.924059 - 0.382250j, -0.980801 - 0.195012j, -1.000000 +
                0.000000j, -0.980801 + 0.195012j, -0.924059 + 0.382250j,
                -0.832692 + 0.553737j, -0.713104 + 0.701059j, -0.578055 +
                0.815998j, -0.449249 + 0.893407j, -0.354950 + 0.934885j,
                -0.320174 + 0.947359j, -0.354950 + 0.934885j, -0.449249 +
                0.893407j, -0.578055 + 0.815998j, -0.713104 + 0.701059j,
                -0.832692 + 0.553737j, -0.924059 + 0.382250j, -0.980801 +
                0.195012j, -1.000000 + 0.000000j, -0.980801 - 0.195012j,
                -0.924059 - 0.382250j, -0.832692 - 0.553737j, -0.713104 -
                0.701059j, -0.578055 - 0.815998j, -0.449249 - 0.893407j,
                -0.354950 - 0.934885j, -0.320174 - 0.947359j, -0.354950 -
                0.934885j, -0.449249 - 0.893407j, -0.578055 - 0.815998j,
                -0.713104 - 0.701059j, -0.832692 - 0.553737j, -0.924059 -
                0.382250j, -0.980801 - 0.195010j, -1.000000 + 0.000012j,
                -0.980785 + 0.195092j, -0.923879 + 0.382684j, -0.831470 +
                0.555570j, -0.707107 + 0.707107j, -0.555570 + 0.831470j,
                -0.382684 + 0.923879j, -0.195092 + 0.980785j, -0.000012 +
                1.000000j, 0.195010 + 0.980801j, 0.382250 + 0.924059j,
                0.553737 + 0.832692j, 0.701059 + 0.713104j, 0.815998 +
                0.578055j, 0.893407 + 0.449249j, 0.934886 + 0.354949j,
                0.947363 + 0.320163j, 0.934914 + 0.354874j, 0.893617 +
                0.448830j, 0.817269 + 0.576256j, 0.707107 + 0.707107j,
                0.576256 + 0.817269j, 0.448830 + 0.893617j, 0.354872 +
                0.934915j, 0.320152 + 0.947366j, 0.354872 + 0.934915j,
                0.448830 + 0.893617j, 0.576256 + 0.817269j, 0.707107 +
                0.707107j, 0.817269 + 0.576256j, 0.893617 + 0.448830j,
                0.934915 + 0.354872j, 0.947366 + 0.320152j, 0.934915 +
                0.354872j, 0.893617 + 0.448830j, 0.817269 + 0.576256j,
                0.707107 + 0.707107j, 0.576256 + 0.817269j, 0.448830 +
                0.893617j, 0.354874 + 0.934914j, 0.320163 + 0.947363j, 0.354949
                + 0.934886j, 0.449249 + 0.893407j, 0.578055 + 0.815998j,
                0.713104 + 0.701059j, 0.832692 + 0.553737j, 0.924059 +
                0.382250j, 0.980801 + 0.195010j, 1.000000 - 0.000012j,
                0.980785 - 0.195092j, 0.923879 - 0.382684j, 0.831470 -
                0.555570j, 0.707107 - 0.707107j, 0.555570 - 0.831470j,
                0.382684 - 0.923879j, 0.195092 - 0.980785j, 0.000012 -
                1.000000j, -0.195010 - 0.980801j, -0.382250 - 0.924059j,
                -0.553737 - 0.832692j, -0.701059 - 0.713104j, -0.815998 -
                0.578055j, -0.893407 - 0.449249j, -0.934885 - 0.354950j,
                -0.947359 - 0.320174j, -0.934885 - 0.354950j, -0.893407 -
                0.449249j, -0.815998 - 0.578055j, -0.701059 - 0.713104j,
                -0.553737 - 0.832692j, -0.382250 - 0.924059j, -0.195010 -
                0.980801j, 0.000012 - 1.000000j, 0.195092 - 0.980785j,
                0.382684 - 0.923879j, 0.555570 - 0.831470j, 0.707107 -
                0.707107j, 0.831470 - 0.555570j, 0.923880 - 0.382683j,
                0.980785 - 0.195090j, 1.000000 - 0.000000j, 0.980785 +
                0.195090j, 0.923880 + 0.382683j, 0.831470 + 0.555570j,
                0.707107 + 0.707107j, 0.555570 + 0.831470j, 0.382684 +
                0.923879j, 0.195092 + 0.980785j, 0.000012 + 1.000000j,
                -0.195010 + 0.980801j, -0.382250 + 0.924059j, -0.553737 +
                0.832692j, -0.701059 + 0.713104j, -0.815998 + 0.578055j,
                -0.893407 + 0.449249j, -0.934886 + 0.354949j, -0.947363 +
                0.320163j, -0.934914 + 0.354874j, -0.893617 + 0.448830j,
                -0.817269 + 0.576256j, -0.707107 + 0.707107j, -0.576256 +
                0.817269j, -0.448830 + 0.893617j, -0.354874 + 0.934914j,
                -0.320163 + 0.947363j, -0.354949 + 0.934886j, -0.449249 +
                0.893407j, -0.578055 + 0.815998j, -0.713104 + 0.701059j,
                -0.832692 + 0.553737j, -0.924059 + 0.382250j, -0.980801 +
                0.195010j, -1.000000 - 0.000012j, -0.980785 - 0.195092j,
                -0.923879 - 0.382684j, -0.831470 - 0.555570j, -0.707107 -
                0.707107j, -0.555570 - 0.831470j, -0.382684 - 0.923879j,
                -0.195092 - 0.980785j, -0.000012 - 1.000000j, 0.195010 -
                0.980801j, 0.382250 - 0.924059j, 0.553737 - 0.832692j,
                0.701059 - 0.713104j, 0.815998 - 0.578055j, 0.893407 -
                0.449249j, 0.934886 - 0.354949j, 0.947363 - 0.320163j,
                0.934914 - 0.354874j, 0.893617 - 0.448830j, 0.817269 -
                0.576256j, 0.707107 - 0.707107j, 0.576256 - 0.817269j,
                0.448830 - 0.893617j, 0.354872 - 0.934915j, 0.320152 -
                0.947366j, 0.354872 - 0.934915j, 0.448830 - 0.893617j,
                0.576256 - 0.817269j, 0.707107 - 0.707107j, 0.817269 -
                0.576256j, 0.893617 - 0.448830j, 0.934915 - 0.354872j,
                0.947366 - 0.320152j, 0.934915 - 0.354872j, 0.893617 -
                0.448830j, 0.817269 - 0.576256j, 0.707107 - 0.707107j,
                0.576256 - 0.817269j, 0.448830 - 0.893617j, 0.354874 -
                0.934914j, 0.320163 - 0.947363j, 0.354949 - 0.934886j,
                0.449249 - 0.893407j, 0.578055 - 0.815998j, 0.713104 -
                0.701059j, 0.832692 - 0.553737j, 0.924059 - 0.382250j,
                0.980801 - 0.195010j, 1.000000 + 0.000012j, 0.980785 +
                0.195092j, 0.923879 + 0.382684j, 0.831470 + 0.555570j,
                0.707107 + 0.707107j, 0.555570 + 0.831470j, 0.382683 +
                0.923880j, 0.195090 + 0.980785j, 0.000000 + 1.000000j,
                -0.195090 + 0.980785j, -0.382683 + 0.923880j, -0.555570 +
                0.831470j, -0.707107 + 0.707107j, -0.831470 + 0.555570j,
                -0.923879 + 0.382684j, -0.980785 + 0.195092j, -1.000000 +
                0.000012j, -0.980801 - 0.195010j, -0.924059 - 0.382250j,
                -0.832692 - 0.553737j, -0.713104 - 0.701059j, -0.578055 -
                0.815998j, -0.449249 - 0.893407j, -0.354949 - 0.934886j,
                -0.320163 - 0.947363j, -0.354874 - 0.934914j, -0.448830 -
                0.893617j, -0.576256 - 0.817269j, -0.707107 - 0.707107j,
                -0.817269 - 0.576256j, -0.893617 - 0.448830j, -0.934914 -
                0.354874j, -0.947363 - 0.320163j, -0.934886 - 0.354949j,
                -0.893407 - 0.449249j, -0.815998 - 0.578055j, -0.701059 -
                0.713104j, -0.553737 - 0.832692j, -0.382250 - 0.924059j,
                -0.195012 - 0.980801j, -0.000000 - 1.000000j, 0.195012 -
                0.980801j, 0.382250 - 0.924059j, 0.553737 - 0.832692j, 0.701059
                - 0.713104j, 0.815998 - 0.578055j, 0.893407 - 0.449249j,
                0.934885 - 0.354950j, 0.947359 - 0.320174j, 0.934885 -
                0.354950j, 0.893407 - 0.449249j, 0.815998 - 0.578055j,
                0.701059 - 0.713104j, 0.553737 - 0.832692j, 0.382250 -
                0.924059j, 0.195010 - 0.980801j, -0.000012 - 1.000000j,
                -0.195092 - 0.980785j, -0.382684 - 0.923879j, -0.555570 -
                0.831470j, -0.707107 - 0.707107j, -0.831470 - 0.555570j,
                -0.923879 - 0.382684j, -0.980785 - 0.195092j, -1.000000 -
                0.000012j, -0.980801 + 0.195010j, -0.924059 + 0.382250j,
                -0.832692 + 0.553737j, -0.713104 + 0.701059j, -0.578055 +
                0.815998j, -0.449249 + 0.893407j, -0.354950 + 0.934885j,
                -0.320174 + 0.947359j, -0.354950 + 0.934885j, -0.449249 +
                0.893407j, -0.578055 + 0.815998j, -0.713104 + 0.701059j,
                -0.832692 + 0.553737j, -0.924059 + 0.382250j, -0.980801 +
                0.195012j, -1.000000 + 0.000000j, -0.980801 - 0.195012j,
                -0.924059 - 0.382250j, -0.832692 - 0.553737j, -0.713104 -
                0.701059j, -0.578055 - 0.815998j, -0.449249 - 0.893407j,
                -0.354950 - 0.934885j, -0.320174 - 0.947359j, -0.354950 -
                0.934885j, -0.449249 - 0.893407j, -0.578055 - 0.815998j,
                -0.713104 - 0.701059j, -0.832692 - 0.553737j, -0.924059 -
                0.382250j, -0.980801 - 0.195012j, -1.000000 + 0.000000j,
                -0.980801 + 0.195012j, -0.924059 + 0.382250j, -0.832692 +
                0.553737j, -0.713104 + 0.701059j, -0.578055 + 0.815998j,
                -0.449249 + 0.893407j, -0.354950 + 0.934885j, -0.320174 +
                0.947359j, -0.354950 + 0.934885j, -0.449249 + 0.893407j,
                -0.578055 + 0.815998j, -0.713104 + 0.701059j, -0.832692 +
                0.553737j, -0.924059 + 0.382250j, -0.980801 + 0.195012j,
                -1.000000 + 0.000000j, -0.980801 - 0.195012j, -0.924059 -
                0.382250j, -0.832692 - 0.553737j, -0.713104 - 0.701059j,
                -0.578055 - 0.815998j, -0.449249 - 0.893407j, -0.354950 -
                0.934885j, -0.320174 - 0.947359j, -0.354950 - 0.934885j,
                -0.449249 - 0.893407j, -0.578055 - 0.815998j, -0.713104 -
                0.701059j, -0.832692 - 0.553737j, -0.924059 - 0.382250j,
                -0.980801 - 0.195010j, -1.000000 + 0.000012j, -0.980785 +
                0.195092j, -0.923879 + 0.382684j, -0.831470 + 0.555570j,
                -0.707107 + 0.707107j, -0.555570 + 0.831470j, -0.382684 +
                0.923879j, -0.195092 + 0.980785j, -0.000012 + 1.000000j,
                0.195010 + 0.980801j, 0.382250 + 0.924059j, 0.553737 +
                0.832692j, 0.701059 + 0.713104j, 0.815998 + 0.578055j,
                0.893407 + 0.449249j, 0.934885 + 0.354950j, 0.947359 +
                0.320174j, 0.934885 + 0.354950j, 0.893407 + 0.449249j, 0.815998
                + 0.578055j, 0.701059 + 0.713104j, 0.553737 + 0.832692j,
                0.382250 + 0.924059j, 0.195010 + 0.980801j, -0.000012 +
                1.000000j, -0.195092 + 0.980785j, -0.382684 + 0.923879j,
                -0.555570 + 0.831470j, -0.707107 + 0.707107j, -0.831470 +
                0.555570j, -0.923880 + 0.382683j, -0.980785 + 0.195090j,
                -1.000000 + 0.000000j, -0.980785 - 0.195090j, -0.923880 -
                0.382683j, -0.831470 - 0.555570j, -0.707107 - 0.707107j,
                -0.555570 - 0.831470j, -0.382684 - 0.923879j, -0.195092 -
                0.980785j, -0.000012 - 1.000000j, 0.195010 - 0.980801j,
                0.382250 - 0.924059j, 0.553737 - 0.832692j, 0.701059 -
                0.713104j, 0.815998 - 0.578055j, 0.893407 - 0.449249j, 0.934885
                - 0.354950j, 0.947359 - 0.320174j, 0.934885 - 0.354950j,
                0.893407 - 0.449249j, 0.815998 - 0.578055j, 0.701059 -
                0.713104j, 0.553737 - 0.832692j, 0.382250 - 0.924059j, 0.195010
                - 0.980801j, -0.000012 - 1.000000j, -0.195092 - 0.980785j,
                -0.382684 - 0.923879j, -0.555570 - 0.831470j, -0.707107 -
                0.707107j, -0.831470 - 0.555570j, -0.923879 - 0.382684j,
                -0.980785 - 0.195092j, -1.000000 - 0.000012j, -0.980801 +
                0.195010j, -0.924059 + 0.382250j, -0.832692 + 0.553737j,
                -0.713104 + 0.701059j, -0.578055 + 0.815998j, -0.449249 +
                0.893407j, -0.354950 + 0.934885j, -0.320174 + 0.947359j,
                -0.354950 + 0.934885j, -0.449249 + 0.893407j, -0.578055 +
                0.815998j, -0.713104 + 0.701059j, -0.832692 + 0.553737j,
                -0.924059 + 0.382250j, -0.980801 + 0.195010j, -1.000000 -
                0.000012j, -0.980785 - 0.195092j, -0.923879 - 0.382684j,
                -0.831470 - 0.555570j, -0.707107 - 0.707107j, -0.555570 -
                0.831470j, -0.382683 - 0.923880j, -0.195090 - 0.980785j,
                -0.000000 - 1.000000j, 0.195090 - 0.980785j, 0.382683 -
                0.923880j, 0.555570 - 0.831470j, 0.707107 - 0.707107j, 0.831470
                - 0.555570j, 0.923879 - 0.382684j, 0.980785 - 0.195092j,
                1.000000 - 0.000012j, 0.980801 + 0.195010j, 0.924059 +
                0.382250j, 0.832692 + 0.553737j, 0.713104 + 0.701059j, 0.578055
                + 0.815998j, 0.449249 + 0.893407j, 0.354950 + 0.934885j,
                0.320174 + 0.947359j, 0.354950 + 0.934885j, 0.449249 +
                0.893407j, 0.578055 + 0.815998j, 0.713104 + 0.701059j, 0.832692
                + 0.553737j, 0.924059 + 0.382250j, 0.980801 + 0.195010j,
                1.000000 - 0.000012j, 0.980785 - 0.195092j, 0.923879 -
                0.382684j, 0.831470 - 0.555570j, 0.707107 - 0.707107j, 0.555570
                - 0.831470j, 0.382683 - 0.923880j, 0.195090 - 0.980785j,
                -0.000000 - 1.000000j, -0.195090 - 0.980785j, -0.382683 -
                0.923880j, -0.555570 - 0.831470j, -0.707107 - 0.707107j,
                -0.831470 - 0.555570j, -0.923879 - 0.382684j, -0.980785 -
                0.195092j, -1.000000 - 0.000012j, -0.980801 + 0.195010j,
                -0.924059 + 0.382250j, -0.832692 + 0.553737j, -0.713104 +
                0.701059j, -0.578055 + 0.815998j, -0.449249 + 0.893407j,
                -0.354950 + 0.934885j, -0.320174 + 0.947359j, -0.354950 +
                0.934885j, -0.449249 + 0.893407j, -0.578055 + 0.815998j,
                -0.713104 + 0.701059j, -0.832692 + 0.553737j, -0.924059 +
                0.382250j, -0.980801 + 0.195010j, -1.000000 - 0.000012j,
                -0.980785 - 0.195092j, -0.923879 - 0.382684j, -0.831470 -
                0.555570j, -0.707107 - 0.707107j, -0.555570 - 0.831470j,
                -0.382683 - 0.923880j, -0.195090 - 0.980785j, -0.000000 -
                1.000000j, 0.195090 - 0.980785j, 0.382683 - 0.923880j, 0.555570
                - 0.831470j, 0.707107 - 0.707107j, 0.831470 - 0.555570j,
                0.923879 - 0.382684j, 0.980785 - 0.195092j, 1.000000 -
                0.000012j, 0.980801 + 0.195010j, 0.924059 + 0.382250j, 0.832692
                + 0.553737j, 0.713104 + 0.701059j, 0.578055 + 0.815998j,
                0.449249 + 0.893407j, 0.354949 + 0.934886j, 0.320163 +
                0.947363j, 0.354874 + 0.934914j, 0.448830 + 0.893617j, 0.576256
                + 0.817269j, 0.707107 + 0.707107j, 0.817269 + 0.576256j,
                0.893617 + 0.448830j, 0.934915 + 0.354872j, 0.947366 +
                0.320152j, 0.934915 + 0.354872j, 0.893617 + 0.448830j, 0.817269
                + 0.576256j, 0.707107 + 0.707107j, 0.576256 + 0.817269j,
                0.448830 + 0.893617j, 0.354874 + 0.934914j, 0.320163 +
                0.947363j, 0.354949 + 0.934886j, 0.449249 + 0.893407j, 0.578055
                + 0.815998j, 0.713104 + 0.701059j, 0.832692 + 0.553737j,
                0.924059 + 0.382250j, 0.980801 + 0.195012j, 1.000000 -
                0.000000j, 0.980801 - 0.195012j, 0.924059 - 0.382250j, 0.832692
                - 0.553737j, 0.713104 - 0.701059j, 0.578055 - 0.815998j,
                0.449249 - 0.893407j, 0.354950 - 0.934885j, 0.320174 -
                0.947359j, 0.354950 - 0.934885j, 0.449249 - 0.893407j, 0.578055
                - 0.815998j, 0.713104 - 0.701059j, 0.832692 - 0.553737j,
                0.924059 - 0.382250j, 0.980801 - 0.195012j, 1.000000 -
                0.000000j, 0.980801 + 0.195012j, 0.924059 + 0.382250j, 0.832692
                + 0.553737j, 0.713104 + 0.701059j, 0.578055 + 0.815998j,
                0.449249 + 0.893407j, 0.354949 + 0.934886j, 0.320163 +
                0.947363j, 0.354874 + 0.934914j, 0.448830 + 0.893617j, 0.576256
                + 0.817269j, 0.707107 + 0.707107j, 0.817269 + 0.576256j,
                0.893617 + 0.448830j, 0.934915 + 0.354872j, 0.947366 +
                0.320152j, 0.934915 + 0.354872j, 0.893617 + 0.448830j, 0.817269
                + 0.576256j, 0.707107 + 0.707107j, 0.576256 + 0.817269j,
                0.448830 + 0.893617j, 0.354874 + 0.934914j, 0.320163 +
                0.947363j, 0.354949 + 0.934886j, 0.449249 + 0.893407j, 0.578055
                + 0.815998j, 0.713104 + 0.701059j, 0.832692 + 0.553737j,
                0.924059 + 0.382250j, 0.980801 + 0.195010j, 1.000000 -
                0.000012j, 0.980785 - 0.195092j, 0.923879 - 0.382684j, 0.831470
                - 0.555570j, 0.707107 - 0.707107j, 0.555570 - 0.831470j,
                0.382684 - 0.923879j, 0.195092 - 0.980785j, 0.000012 -
                1.000000j, -0.195010 - 0.980801j, -0.382250 - 0.924059j,
                -0.553737 - 0.832692j, -0.701059 - 0.713104j, -0.815998 -
                0.578055j, -0.893407 - 0.449249j, -0.934886 - 0.354949j,
                -0.947363 - 0.320163j, -0.934914 - 0.354874j, -0.893617 -
                0.448830j, -0.817269 - 0.576256j, -0.707107 - 0.707107j,
                -0.576256 - 0.817269j, -0.448830 - 0.893617j, -0.354874 -
                0.934914j, -0.320163 - 0.947363j, -0.354949 - 0.934886j,
                -0.449249 - 0.893407j, -0.578055 - 0.815998j, -0.713104 -
                0.701059j, -0.832692 - 0.553737j, -0.924059 - 0.382250j,
                -0.980801 - 0.195010j, -1.000000 + 0.000012j, -0.980785 +
                0.195092j, -0.923879 + 0.382684j, -0.831470 + 0.555570j,
                -0.707107 + 0.707107j, -0.555570 + 0.831470j, -0.382684 +
                0.923879j, -0.195092 + 0.980785j, -0.000012 + 1.000000j,
                0.195010 + 0.980801j, 0.382250 + 0.924059j, 0.553737 +
                0.832692j, 0.701059 + 0.713104j, 0.815998 + 0.578055j, 0.893407
                + 0.449249j, 0.934885 + 0.354950j, 0.947359 + 0.320174j,
                0.934885 + 0.354950j, 0.893407 + 0.449249j, 0.815998 +
                0.578055j, 0.701059 + 0.713104j, 0.553737 + 0.832692j, 0.382250
                + 0.924059j, 0.195010 + 0.980801j, -0.000012 + 1.000000j,
                -0.195092 + 0.980785j, -0.382684 + 0.923879j, -0.555570 +
                0.831470j, -0.707107 + 0.707107j, -0.831470 + 0.555570j,
                -0.923880 + 0.382683j, -0.980785 + 0.195090j, -1.000000 +
                0.000000j, -0.980785 - 0.195090j, -0.923880 - 0.382683j,
                -0.831470 - 0.555570j, -0.707107 - 0.707107j, -0.555570 -
                0.831470j, -0.382684 - 0.923879j, -0.195092 - 0.980785j,
                -0.000012 - 1.000000j, 0.195010 - 0.980801j, 0.382250 -
                0.924059j, 0.553737 - 0.832692j, 0.701059 - 0.713104j, 0.815998
                - 0.578055j, 0.893407 - 0.449249j, 0.934886 - 0.354949j,
                0.947363 - 0.320163j, 0.934914 - 0.354874j, 0.893617 -
                0.448830j, 0.817269 - 0.576256j, 0.707107 - 0.707107j, 0.576256
                - 0.817269j, 0.448830 - 0.893617j, 0.354873 - 0.934914j,
                0.320157 - 0.947364j, 0.354911 - 0.934900j, 0.449039 -
                0.893512j, 0.577156 - 0.816634j, 0.710112 - 0.704089j, 0.825057
                - 0.565049j, 0.909448 - 0.415819j, 0.961187 - 0.275898j
            ],
            threshold=snr_threshold,
        )
        self.top_grid_layout.addWidget(self.fft_correlator_hier_0)
        self.dslwp_tm_parser_0 = dslwp.tm_parser()
        self.dslwp_tm_header_parser_0 = dslwp.tm_header_parser()
        self.dslwp_set_gain_by_tag_cc_0 = dslwp.set_gain_by_tag_cc(1024, 1)
        self.dslwp_program_tracking_cc_0 = dslwp.program_tracking_cc(
            True,
            '/home/lilac/dslwp_dev/program_tracking_dslwp-b_20190722.txt', lon,
            lat, alt, 436400000, if_rate, False, True)
        self.dslwp_oqpsk_coherent_demod_cc_0 = dslwp.oqpsk_coherent_demod_cc(
            sps * 2, ([
                0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000005,
                0.000035, 0.000189, 0.000787, 0.002569, 0.006746, 0.014618,
                0.026868, 0.043018, 0.061431, 0.079856, 0.096160, 0.108824,
                0.117144, 0.121157, 0.121157, 0.117144, 0.108824, 0.096160,
                0.079856, 0.061431, 0.043018, 0.026868, 0.014618, 0.006746,
                0.002569, 0.000787, 0.000189, 0.000035, 0.000005, 0.000000,
                0.000000, 0.000000, 0.000000, 0.000000, 0.000000
            ]), 4, 1, 2.0 * math.pi * pll_loop_bw / samp_rate, 0.707, 3.14,
            -3.14, 0, 0.05, 0.707, 1.5, 100)
        self.dslwp_kiss_encode_pdu_0 = dslwp.kiss_encode_pdu(-1)
        self.dslwp_kiss_decode_pdu_1 = dslwp.kiss_decode_pdu()
        self.dslwp_kiss_decode_pdu_0 = dslwp.kiss_decode_pdu()
        self.dslwp_frame_spliter_c_0 = dslwp.frame_spliter_c(
            'payload_start', 7152)
        self.dslwp_ccsds_turbo_decode_0 = dslwp.ccsds_turbo_decode(
            223, 1, 4, 2, 0.707, 0)
        self.dslwp_ccsds_pseudo_randomizer_0 = dslwp.ccsds_pseudo_randomizer(3)
        self.blocks_udp_source_0 = blocks.udp_source(gr.sizeof_gr_complex * 1,
                                                     '127.0.0.1', 7177, 1472,
                                                     False)
        self.blocks_socket_pdu_0 = blocks.socket_pdu("TCP_CLIENT", '127.0.0.1',
                                                     '60064', 10000, False)
        self.blocks_multiply_xx_0 = blocks.multiply_vcc(1)
        self.blocks_message_debug_0 = blocks.message_debug()
        self.blocks_complex_to_real_0 = blocks.complex_to_real(1)
        self.band_pass_filter_0 = filter.fir_filter_ccf(
            5,
            firdes.band_pass(10.0**(af_gain / 20.0), if_rate, 300, 3000, 500,
                             firdes.WIN_HAMMING, 6.76))
        self.audio_sink_0 = audio.sink(8000, '', True)
        self.analog_sig_source_x_0 = analog.sig_source_c(
            if_rate, analog.GR_COS_WAVE, f_offset, 1, 0)

        ##################################################
        # Connections
        ##################################################
        self.msg_connect((self.dslwp_ccsds_pseudo_randomizer_0, 'out'),
                         (self.dslwp_ccsds_turbo_decode_0, 'in'))
        self.msg_connect((self.dslwp_ccsds_turbo_decode_0, 'out'),
                         (self.dslwp_kiss_encode_pdu_0, 'in'))
        self.msg_connect((self.dslwp_ccsds_turbo_decode_0, 'out'),
                         (self.dslwp_tm_header_parser_0, 'in'))
        self.msg_connect((self.dslwp_frame_spliter_c_0, 'out'),
                         (self.dslwp_ccsds_pseudo_randomizer_0, 'in'))
        self.msg_connect((self.dslwp_kiss_decode_pdu_0, 'out'),
                         (self.dslwp_tm_parser_0, 'in'))
        self.msg_connect((self.dslwp_kiss_decode_pdu_1, 'out'),
                         (self.dslwp_tm_parser_0, 'in'))
        self.msg_connect((self.dslwp_kiss_encode_pdu_0, 'out'),
                         (self.blocks_socket_pdu_0, 'pdus'))
        self.msg_connect((self.dslwp_tm_header_parser_0, 'out 1'),
                         (self.blocks_message_debug_0, 'print_pdu'))
        self.msg_connect((self.dslwp_tm_header_parser_0, 'out 2'),
                         (self.dslwp_kiss_decode_pdu_0, 'in'))
        self.msg_connect((self.dslwp_tm_header_parser_0, 'out 0'),
                         (self.dslwp_kiss_decode_pdu_1, 'in'))
        self.connect((self.analog_sig_source_x_0, 0),
                     (self.blocks_multiply_xx_0, 0))
        self.connect((self.band_pass_filter_0, 0),
                     (self.blocks_complex_to_real_0, 0))
        self.connect((self.blocks_complex_to_real_0, 0),
                     (self.audio_sink_0, 0))
        self.connect((self.blocks_multiply_xx_0, 0),
                     (self.dslwp_program_tracking_cc_0, 0))
        self.connect((self.blocks_udp_source_0, 0),
                     (self.blocks_multiply_xx_0, 1))
        self.connect((self.dslwp_oqpsk_coherent_demod_cc_0, 0),
                     (self.dslwp_frame_spliter_c_0, 0))
        self.connect((self.dslwp_oqpsk_coherent_demod_cc_0, 0),
                     (self.qtgui_const_sink_x_0, 0))
        self.connect((self.dslwp_program_tracking_cc_0, 0),
                     (self.band_pass_filter_0, 0))
        self.connect((self.dslwp_program_tracking_cc_0, 0),
                     (self.low_pass_filter_3_0_0, 0))
        self.connect((self.dslwp_set_gain_by_tag_cc_0, 0),
                     (self.dslwp_oqpsk_coherent_demod_cc_0, 0))
        self.connect((self.fft_correlator_hier_0, 0),
                     (self.dslwp_set_gain_by_tag_cc_0, 0))
        self.connect((self.low_pass_filter_3_0_0, 0),
                     (self.fft_correlator_hier_0, 0))
        self.connect((self.low_pass_filter_3_0_0, 0),
                     (self.qtgui_freq_sink_x_0_0, 0))
        self.connect((self.low_pass_filter_3_0_0, 0),
                     (self.qtgui_waterfall_sink_x_0, 0))
コード例 #3
0
    def __init__(self, syncword="1ACFFC1D"):
        gr.top_block.__init__(self, "Turbo Verification V2")
        Qt.QWidget.__init__(self)
        self.setWindowTitle("Turbo Verification V2")
        qtgui.util.check_set_qss()
        try:
            self.setWindowIcon(Qt.QIcon.fromTheme('gnuradio-grc'))
        except:
            pass
        self.top_scroll_layout = Qt.QVBoxLayout()
        self.setLayout(self.top_scroll_layout)
        self.top_scroll = Qt.QScrollArea()
        self.top_scroll.setFrameStyle(Qt.QFrame.NoFrame)
        self.top_scroll_layout.addWidget(self.top_scroll)
        self.top_scroll.setWidgetResizable(True)
        self.top_widget = Qt.QWidget()
        self.top_scroll.setWidget(self.top_widget)
        self.top_layout = Qt.QVBoxLayout(self.top_widget)
        self.top_grid_layout = Qt.QGridLayout()
        self.top_layout.addLayout(self.top_grid_layout)

        self.settings = Qt.QSettings("GNU Radio", "turbo_verification_v2")
        self.restoreGeometry(self.settings.value("geometry").toByteArray())

        ##################################################
        # Parameters
        ##################################################
        self.syncword = syncword

        ##################################################
        # Variables
        ##################################################
        self.symbol_rate = symbol_rate = 500e3
        self.sps = sps = 4
        self.vcdu_size = vcdu_size = 223 - 10
        self.samp_rate = samp_rate = symbol_rate * sps
        self.ntaps = ntaps = 40 * sps
        self.nfilts = nfilts = 32
        self.value = value = [0, 1]
        self.to = to = 0.0

        self.taps = taps = firdes.root_raised_cosine(sps, samp_rate,
                                                     symbol_rate, 0.35, ntaps)

        self.symbol = symbol = [-1, 1]
        self.scramble = scramble = 0
        self.rs = rs = 1
        self.reset = reset = vcdu_size
        self.polyphase_taps = polyphase_taps = firdes.root_raised_cosine(
            sps * nfilts, nfilts, 1.0 / float(sps), 0.35, 20 * sps * nfilts)
        self.parity = parity = 32
        self.linecode = linecode = 1
        self.intDepth = intDepth = 1
        self.frame_size = frame_size = vcdu_size + 10
        self.cfo = cfo = 0.25
        self.SNR = SNR = 2.5
        self.Rc = Rc = 0.5

        ##################################################
        # Blocks
        ##################################################
        self.tdd_ferMsgGen_0 = tdd.ferMsgGen(vcdu_size, 'cadu_len', 'vcdu_len')
        self.tdd_ferMsgCount_0 = tdd.ferMsgCount(0)
        self.qtgui_time_sink_x_0_0 = qtgui.time_sink_f(
            1024,  #size
            samp_rate,  #samp_rate
            "",  #name
            0  #number of inputs
        )
        self.qtgui_time_sink_x_0_0.set_update_time(0.10)
        self.qtgui_time_sink_x_0_0.set_y_axis(-1, 1)

        self.qtgui_time_sink_x_0_0.set_y_label('Amplitude', "")

        self.qtgui_time_sink_x_0_0.enable_tags(-1, True)
        self.qtgui_time_sink_x_0_0.set_trigger_mode(qtgui.TRIG_MODE_FREE,
                                                    qtgui.TRIG_SLOPE_POS, 0.0,
                                                    0, 0, "")
        self.qtgui_time_sink_x_0_0.enable_autoscale(False)
        self.qtgui_time_sink_x_0_0.enable_grid(False)
        self.qtgui_time_sink_x_0_0.enable_axis_labels(True)
        self.qtgui_time_sink_x_0_0.enable_control_panel(False)

        if not True:
            self.qtgui_time_sink_x_0_0.disable_legend()

        labels = ['', '', '', '', '', '', '', '', '', '']
        widths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        colors = [
            "blue", "red", "green", "black", "cyan", "magenta", "yellow",
            "dark red", "dark green", "blue"
        ]
        styles = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        markers = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
        alphas = [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]

        for i in xrange(1):
            if len(labels[i]) == 0:
                self.qtgui_time_sink_x_0_0.set_line_label(
                    i, "Data {0}".format(i))
            else:
                self.qtgui_time_sink_x_0_0.set_line_label(i, labels[i])
            self.qtgui_time_sink_x_0_0.set_line_width(i, widths[i])
            self.qtgui_time_sink_x_0_0.set_line_color(i, colors[i])
            self.qtgui_time_sink_x_0_0.set_line_style(i, styles[i])
            self.qtgui_time_sink_x_0_0.set_line_marker(i, markers[i])
            self.qtgui_time_sink_x_0_0.set_line_alpha(i, alphas[i])

        self._qtgui_time_sink_x_0_0_win = sip.wrapinstance(
            self.qtgui_time_sink_x_0_0.pyqwidget(), Qt.QWidget)
        self.top_layout.addWidget(self._qtgui_time_sink_x_0_0_win)
        self.qtgui_time_sink_x_0 = qtgui.time_sink_f(
            1024,  #size
            samp_rate,  #samp_rate
            "",  #name
            0  #number of inputs
        )
        self.qtgui_time_sink_x_0.set_update_time(0.10)
        self.qtgui_time_sink_x_0.set_y_axis(-1, 1)

        self.qtgui_time_sink_x_0.set_y_label('Amplitude', "")

        self.qtgui_time_sink_x_0.enable_tags(-1, True)
        self.qtgui_time_sink_x_0.set_trigger_mode(qtgui.TRIG_MODE_FREE,
                                                  qtgui.TRIG_SLOPE_POS, 0.0, 0,
                                                  0, "")
        self.qtgui_time_sink_x_0.enable_autoscale(False)
        self.qtgui_time_sink_x_0.enable_grid(False)
        self.qtgui_time_sink_x_0.enable_axis_labels(True)
        self.qtgui_time_sink_x_0.enable_control_panel(False)

        if not True:
            self.qtgui_time_sink_x_0.disable_legend()

        labels = ['', '', '', '', '', '', '', '', '', '']
        widths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        colors = [
            "blue", "red", "green", "black", "cyan", "magenta", "yellow",
            "dark red", "dark green", "blue"
        ]
        styles = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        markers = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
        alphas = [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]

        for i in xrange(1):
            if len(labels[i]) == 0:
                self.qtgui_time_sink_x_0.set_line_label(
                    i, "Data {0}".format(i))
            else:
                self.qtgui_time_sink_x_0.set_line_label(i, labels[i])
            self.qtgui_time_sink_x_0.set_line_width(i, widths[i])
            self.qtgui_time_sink_x_0.set_line_color(i, colors[i])
            self.qtgui_time_sink_x_0.set_line_style(i, styles[i])
            self.qtgui_time_sink_x_0.set_line_marker(i, markers[i])
            self.qtgui_time_sink_x_0.set_line_alpha(i, alphas[i])

        self._qtgui_time_sink_x_0_win = sip.wrapinstance(
            self.qtgui_time_sink_x_0.pyqwidget(), Qt.QWidget)
        self.top_layout.addWidget(self._qtgui_time_sink_x_0_win)
        self.mapper_prbs_source_b_0 = mapper.prbs_source_b("PRBS31", reset * 8)
        self.mapper_prbs_sink_b_0 = mapper.prbs_sink_b("PRBS31", reset * 8)
        self.dslwp_frame_spliter_f_0 = dslwp.frame_spliter_f(
            'payload_start', 3576)
        self.dslwp_ccsds_turbo_decode_0 = dslwp.ccsds_turbo_decode(
            223, 1, 2, 1, 0.707, 1)
        self.digital_map_bb_0_0 = digital.map_bb((-1, 1))
        self.digital_map_bb_0 = digital.map_bb((-1, 1))
        self.ccsds_synchronizeCADU_0 = ccsds.synchronizeCADU(
            '1ACFFC1D', 0, "sync")
        self.ccsds_synchronizeCADUSoft_0 = ccsds.synchronizeCADUSoft(
            '1ACFFC1D', 0, 'syncsoft')
        self.ccsds_recoverCADU_1 = ccsds.recoverCADU(
            int(frame_size / Rc) + 1, scramble, 'sync')
        self.ccsds_recoverCADUSoft_0 = ccsds.recoverCADUSoft(
            int(frame_size / Rc) + 1, scramble, 'syncsoft')
        self.ccsds_encodeTurbo_0 = ccsds.encodeTurbo(frame_size, 2, 'cadu_len')
        self.ccsds_createCADU_0 = ccsds.createCADU(
            int(frame_size / Rc) + 1, '1ACFFC1D', scramble, 'xx_len')
        self.blocks_unpack_k_bits_bb_1 = blocks.unpack_k_bits_bb(8)
        self.blocks_unpack_k_bits_bb_0_0 = blocks.unpack_k_bits_bb(8)
        self.blocks_unpack_k_bits_bb_0 = blocks.unpack_k_bits_bb(8)
        self.blocks_throttle_0 = blocks.throttle(gr.sizeof_char * 1, samp_rate,
                                                 True)
        self.blocks_tag_debug_1 = blocks.tag_debug(gr.sizeof_float * 1, '',
                                                   "syncsoft")
        self.blocks_tag_debug_1.set_display(False)
        self.blocks_stream_to_tagged_stream_2 = blocks.stream_to_tagged_stream(
            gr.sizeof_float, 1, 3576, "payload_start")
        self.blocks_stream_to_tagged_stream_0_0 = blocks.stream_to_tagged_stream(
            gr.sizeof_char, 1,
            int(frame_size / Rc) + 1, "xx_len")
        self.blocks_stream_to_tagged_stream_0 = blocks.stream_to_tagged_stream(
            gr.sizeof_char, 1, vcdu_size, "vcdu_len")
        self.blocks_pdu_to_tagged_stream_0_1 = blocks.pdu_to_tagged_stream(
            blocks.byte_t, 'packet_len')
        self.blocks_pdu_to_tagged_stream_0_0 = blocks.pdu_to_tagged_stream(
            blocks.byte_t, 'packet_len')
        self.blocks_pack_k_bits_bb_0 = blocks.pack_k_bits_bb(8)
        self.blocks_null_sink_0 = blocks.null_sink(gr.sizeof_float * 1)
        self.blocks_char_to_float_0_0 = blocks.char_to_float(1, 1.0)
        self.blocks_char_to_float_0 = blocks.char_to_float(1, 1.0)

        ##################################################
        # Connections
        ##################################################
        self.msg_connect((self.ccsds_recoverCADUSoft_0, 'cadu'),
                         (self.dslwp_ccsds_turbo_decode_0, 'in'))
        self.msg_connect((self.ccsds_recoverCADUSoft_0, 'cadu'),
                         (self.qtgui_time_sink_x_0, 'in'))
        self.msg_connect((self.ccsds_recoverCADU_1, 'cadu'),
                         (self.blocks_pdu_to_tagged_stream_0_0, 'pdus'))
        self.msg_connect((self.dslwp_ccsds_turbo_decode_0, 'out'),
                         (self.tdd_ferMsgCount_0, 'in'))
        self.msg_connect((self.dslwp_frame_spliter_f_0, 'out'),
                         (self.qtgui_time_sink_x_0_0, 'in'))
        self.msg_connect((self.tdd_ferMsgCount_0, 'out'),
                         (self.blocks_pdu_to_tagged_stream_0_1, 'pdus'))
        self.connect((self.blocks_char_to_float_0, 0),
                     (self.blocks_stream_to_tagged_stream_2, 0))
        self.connect((self.blocks_char_to_float_0_0, 0),
                     (self.ccsds_synchronizeCADUSoft_0, 0))
        self.connect((self.blocks_pack_k_bits_bb_0, 0),
                     (self.blocks_stream_to_tagged_stream_0, 0))
        self.connect((self.blocks_pdu_to_tagged_stream_0_0, 0),
                     (self.blocks_unpack_k_bits_bb_0_0, 0))
        self.connect((self.blocks_pdu_to_tagged_stream_0_1, 0),
                     (self.blocks_unpack_k_bits_bb_1, 0))
        self.connect((self.blocks_stream_to_tagged_stream_0, 0),
                     (self.tdd_ferMsgGen_0, 0))
        self.connect((self.blocks_stream_to_tagged_stream_0_0, 0),
                     (self.ccsds_createCADU_0, 0))
        self.connect((self.blocks_stream_to_tagged_stream_2, 0),
                     (self.dslwp_frame_spliter_f_0, 0))
        self.connect((self.blocks_throttle_0, 0),
                     (self.blocks_pack_k_bits_bb_0, 0))
        self.connect((self.blocks_unpack_k_bits_bb_0, 0),
                     (self.ccsds_synchronizeCADU_0, 0))
        self.connect((self.blocks_unpack_k_bits_bb_0, 0),
                     (self.digital_map_bb_0_0, 0))
        self.connect((self.blocks_unpack_k_bits_bb_0_0, 0),
                     (self.digital_map_bb_0, 0))
        self.connect((self.blocks_unpack_k_bits_bb_1, 0),
                     (self.mapper_prbs_sink_b_0, 0))
        self.connect((self.ccsds_createCADU_0, 0),
                     (self.blocks_unpack_k_bits_bb_0, 0))
        self.connect((self.ccsds_encodeTurbo_0, 0),
                     (self.blocks_stream_to_tagged_stream_0_0, 0))
        self.connect((self.ccsds_synchronizeCADUSoft_0, 0),
                     (self.blocks_null_sink_0, 0))
        self.connect((self.ccsds_synchronizeCADUSoft_0, 0),
                     (self.blocks_tag_debug_1, 0))
        self.connect((self.ccsds_synchronizeCADUSoft_0, 0),
                     (self.ccsds_recoverCADUSoft_0, 0))
        self.connect((self.ccsds_synchronizeCADU_0, 0),
                     (self.ccsds_recoverCADU_1, 0))
        self.connect((self.digital_map_bb_0, 0),
                     (self.blocks_char_to_float_0, 0))
        self.connect((self.digital_map_bb_0_0, 0),
                     (self.blocks_char_to_float_0_0, 0))
        self.connect((self.mapper_prbs_source_b_0, 0),
                     (self.blocks_throttle_0, 0))
        self.connect((self.tdd_ferMsgGen_0, 0), (self.ccsds_encodeTurbo_0, 0))
コード例 #4
0
ファイル: top_block.py プロジェクト: yeasoon/gr-ccsds
    def __init__(self):
        gr.top_block.__init__(self, "Top Block")
        Qt.QWidget.__init__(self)
        self.setWindowTitle("Top Block")
        qtgui.util.check_set_qss()
        try:
            self.setWindowIcon(Qt.QIcon.fromTheme('gnuradio-grc'))
        except:
            pass
        self.top_scroll_layout = Qt.QVBoxLayout()
        self.setLayout(self.top_scroll_layout)
        self.top_scroll = Qt.QScrollArea()
        self.top_scroll.setFrameStyle(Qt.QFrame.NoFrame)
        self.top_scroll_layout.addWidget(self.top_scroll)
        self.top_scroll.setWidgetResizable(True)
        self.top_widget = Qt.QWidget()
        self.top_scroll.setWidget(self.top_widget)
        self.top_layout = Qt.QVBoxLayout(self.top_widget)
        self.top_grid_layout = Qt.QGridLayout()
        self.top_layout.addLayout(self.top_grid_layout)

        self.settings = Qt.QSettings("GNU Radio", "top_block")
        self.restoreGeometry(self.settings.value("geometry").toByteArray())

        ##################################################
        # Variables
        ##################################################
        self.samp_rate = samp_rate = 32000

        ##################################################
        # Blocks
        ##################################################
        self.qtgui_time_sink_x_0 = qtgui.time_sink_f(
            1024,  #size
            samp_rate,  #samp_rate
            "",  #name
            0  #number of inputs
        )
        self.qtgui_time_sink_x_0.set_update_time(0.10)
        self.qtgui_time_sink_x_0.set_y_axis(-1, 1)

        self.qtgui_time_sink_x_0.set_y_label('Amplitude', "")

        self.qtgui_time_sink_x_0.enable_tags(-1, True)
        self.qtgui_time_sink_x_0.set_trigger_mode(qtgui.TRIG_MODE_FREE,
                                                  qtgui.TRIG_SLOPE_POS, 0.0, 0,
                                                  0, "")
        self.qtgui_time_sink_x_0.enable_autoscale(False)
        self.qtgui_time_sink_x_0.enable_grid(False)
        self.qtgui_time_sink_x_0.enable_axis_labels(True)
        self.qtgui_time_sink_x_0.enable_control_panel(False)

        if not True:
            self.qtgui_time_sink_x_0.disable_legend()

        labels = ['', '', '', '', '', '', '', '', '', '']
        widths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        colors = [
            "blue", "red", "green", "black", "cyan", "magenta", "yellow",
            "dark red", "dark green", "blue"
        ]
        styles = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        markers = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
        alphas = [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]

        for i in xrange(1):
            if len(labels[i]) == 0:
                self.qtgui_time_sink_x_0.set_line_label(
                    i, "Data {0}".format(i))
            else:
                self.qtgui_time_sink_x_0.set_line_label(i, labels[i])
            self.qtgui_time_sink_x_0.set_line_width(i, widths[i])
            self.qtgui_time_sink_x_0.set_line_color(i, colors[i])
            self.qtgui_time_sink_x_0.set_line_style(i, styles[i])
            self.qtgui_time_sink_x_0.set_line_marker(i, markers[i])
            self.qtgui_time_sink_x_0.set_line_alpha(i, alphas[i])

        self._qtgui_time_sink_x_0_win = sip.wrapinstance(
            self.qtgui_time_sink_x_0.pyqwidget(), Qt.QWidget)
        self.top_layout.addWidget(self._qtgui_time_sink_x_0_win)
        self.dslwp_ccsds_turbo_decode_0 = dslwp.ccsds_turbo_decode(
            223, 1, 2, 2, 0.707, 1)
        self.blocks_throttle_0 = blocks.throttle(gr.sizeof_float * 1,
                                                 samp_rate, True)
        self.blocks_tagged_stream_to_pdu_0 = blocks.tagged_stream_to_pdu(
            blocks.float_t, 'packet_len')
        self.blocks_stream_to_tagged_stream_0 = blocks.stream_to_tagged_stream(
            gr.sizeof_float, 1, 3576, "packet_len")
        self.blocks_pdu_to_tagged_stream_0 = blocks.pdu_to_tagged_stream(
            blocks.byte_t, 'packet_len')
        self.blocks_null_sink_0 = blocks.null_sink(gr.sizeof_char * 1)
        self.analog_noise_source_x_0 = analog.noise_source_f(
            analog.GR_GAUSSIAN, 1, 0)

        ##################################################
        # Connections
        ##################################################
        self.msg_connect((self.blocks_tagged_stream_to_pdu_0, 'pdus'),
                         (self.dslwp_ccsds_turbo_decode_0, 'in'))
        self.msg_connect((self.blocks_tagged_stream_to_pdu_0, 'pdus'),
                         (self.qtgui_time_sink_x_0, 'in'))
        self.msg_connect((self.dslwp_ccsds_turbo_decode_0, 'out'),
                         (self.blocks_pdu_to_tagged_stream_0, 'pdus'))
        self.connect((self.analog_noise_source_x_0, 0),
                     (self.blocks_throttle_0, 0))
        self.connect((self.blocks_pdu_to_tagged_stream_0, 0),
                     (self.blocks_null_sink_0, 0))
        self.connect((self.blocks_stream_to_tagged_stream_0, 0),
                     (self.blocks_tagged_stream_to_pdu_0, 0))
        self.connect((self.blocks_throttle_0, 0),
                     (self.blocks_stream_to_tagged_stream_0, 0))