self.connect(self.rrc_filter, gr.file_sink(gr.sizeof_float, "tx_rrc_filter.dat")) self.connect(self.shaping_filter, gr.file_sink(gr.sizeof_float, "tx_shaping_filter.dat")) if (self._decimation > 1): self.connect(self.decimator, gr.file_sink(gr.sizeof_float, "tx_decimator.dat")) def add_options(parser): """ Adds QPSK modulation-specific options to the standard parser """ parser.add_option("", "--excess-bw", type="float", default=_def_excess_bw, help="set RRC excess bandwith factor [default=%default] (PSK)") add_options=staticmethod(add_options) def extract_kwargs_from_options(options): """ Given command line options, create dictionary suitable for passing to __init__ """ return modulation_utils.extract_kwargs_from_options(dqpsk_mod.__init__, ('self',), options) extract_kwargs_from_options=staticmethod(extract_kwargs_from_options) # # Add these to the mod/demod registry # modulation_utils.add_type_1_mod('op25_c4fm', p25_mod_bf)
self.connect(self.C2S, gr.file_sink(gr.sizeof_float, "tx_chunks2symbols.dat")) self.connect(self.polarity, gr.file_sink(gr.sizeof_float, "tx_polarity.dat")) self.connect(self.filter, gr.file_sink(gr.sizeof_float, "tx_filter.dat")) if (self._decimation > 1): self.connect(self.decimator, gr.file_sink(gr.sizeof_float, "tx_decimator.dat")) def add_options(parser): """ Adds QPSK modulation-specific options to the standard parser """ add_options = staticmethod(add_options) def extract_kwargs_from_options(options): """ Given command line options, create dictionary suitable for passing to __init__ """ return modulation_utils.extract_kwargs_from_options( dqpsk_mod.__init__, ('self', ), options) extract_kwargs_from_options = staticmethod(extract_kwargs_from_options) # # Add these to the mod/demod registry # modulation_utils.add_type_1_mod('op25_c4fm', p25_mod_bf)
gr.file_sink(gr.sizeof_char, "slicer.dat")) def add_options(parser): """ Adds GMSK demodulation-specific options to the standard parser """ parser.add_option("", "--gain-mu", type="float", default=_def_gain_mu, help="M&M clock recovery gain mu [default=%default] (GMSK/PSK)") parser.add_option("", "--mu", type="float", default=_def_mu, help="M&M clock recovery mu [default=%default] (GMSK/PSK)") parser.add_option("", "--omega-relative-limit", type="float", default=_def_omega_relative_limit, help="M&M clock recovery omega relative limit [default=%default] (GMSK/PSK)") parser.add_option("", "--freq-error", type="float", default=_def_freq_error, help="M&M clock recovery frequency error [default=%default] (GMSK)") add_options=staticmethod(add_options) def extract_kwargs_from_options(options): """ Given command line options, create dictionary suitable for passing to __init__ """ return modulation_utils.extract_kwargs_from_options(gmsk_cats_demod.__init__, ('self',), options) extract_kwargs_from_options=staticmethod(extract_kwargs_from_options) # # Add these to the mod/demod registry # modulation_utils.add_type_1_mod('gmsk_cats', gmsk_cats_mod) modulation_utils.add_type_1_demod('gmsk_cats', gmsk_cats_demod)