diff options
author | Tom Rondeau | 2012-04-19 16:29:39 -0400 |
---|---|---|
committer | Tom Rondeau | 2012-04-23 19:56:14 -0400 |
commit | 362d45bb829a9b190586cca79717cc175f4d06d2 (patch) | |
tree | 15001c96271defad12908e24958aabd158d5159a /gr-digital/python/generic_mod_demod.py | |
parent | 6d1419febab128d82bad00abaf0935624f8aa6cb (diff) | |
download | gnuradio-362d45bb829a9b190586cca79717cc175f4d06d2.tar.gz gnuradio-362d45bb829a9b190586cca79717cc175f4d06d2.tar.bz2 gnuradio-362d45bb829a9b190586cca79717cc175f4d06d2.zip |
digital: copying over rest of blocks from gnuradio-core to gr-digital.
Includes moving GRC and QA code; new ones where missing.
Have not removed blocks from gnuradio-core for compatibility.
Diffstat (limited to 'gr-digital/python/generic_mod_demod.py')
-rw-r--r-- | gr-digital/python/generic_mod_demod.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/gr-digital/python/generic_mod_demod.py b/gr-digital/python/generic_mod_demod.py index ae876e108..aebf5349e 100644 --- a/gr-digital/python/generic_mod_demod.py +++ b/gr-digital/python/generic_mod_demod.py @@ -28,7 +28,7 @@ Generic modulation and demodulation. from gnuradio import gr from modulation_utils import extract_kwargs_from_options_for_class from utils import mod_codes -import digital_swig +import digital_swig as digital import math # default values (used in __init__ and add_options) @@ -121,10 +121,10 @@ class generic_mod(gr.hier_block2): gr.packed_to_unpacked_bb(self.bits_per_symbol(), gr.GR_MSB_FIRST) if gray_coded == True: - self.symbol_mapper = gr.map_bb(self._constellation.pre_diff_code()) + self.symbol_mapper = digital.map_bb(self._constellation.pre_diff_code()) if differential: - self.diffenc = gr.diff_encoder_bb(arity) + self.diffenc = digital.diff_encoder_bb(arity) self.chunks2symbols = gr.chunks_to_symbols_bc(self._constellation.points()) @@ -269,28 +269,28 @@ class generic_demod(gr.hier_block2): # Frequency correction fll_ntaps = 55 - self.freq_recov = digital_swig.fll_band_edge_cc(self._samples_per_symbol, self._excess_bw, - fll_ntaps, self._freq_bw) + self.freq_recov = digital.fll_band_edge_cc(self._samples_per_symbol, self._excess_bw, + fll_ntaps, self._freq_bw) # symbol timing recovery with RRC data filter taps = gr.firdes.root_raised_cosine(nfilts, nfilts*self._samples_per_symbol, 1.0, self._excess_bw, ntaps) - self.time_recov = gr.pfb_clock_sync_ccf(self._samples_per_symbol, - self._timing_bw, taps, - nfilts, nfilts//2, self._timing_max_dev) + self.time_recov = digital.pfb_clock_sync_ccf(self._samples_per_symbol, + self._timing_bw, taps, + nfilts, nfilts//2, self._timing_max_dev) fmin = -0.25 fmax = 0.25 - self.receiver = digital_swig.constellation_receiver_cb( + self.receiver = digital.constellation_receiver_cb( self._constellation, self._phase_bw, fmin, fmax) # Do differential decoding based on phase change of symbols if differential: - self.diffdec = gr.diff_decoder_bb(arity) + self.diffdec = digital.diff_decoder_bb(arity) if gray_coded: - self.symbol_mapper = gr.map_bb( + self.symbol_mapper = digital.map_bb( mod_codes.invert_code(self._constellation.pre_diff_code())) # unpack the k bit vector into a stream of bits |