diff options
author | Tom Rondeau | 2011-10-06 18:53:06 -0400 |
---|---|---|
committer | Tom Rondeau | 2011-10-06 18:53:06 -0400 |
commit | 42b034d07f7d27f3c645bebd0aed01f358e669bb (patch) | |
tree | b2aabce8ca74f7bc57fea1978234d9cf05c736cf /gr-digital/python/gmsk.py | |
parent | 646f625d0b16159e03efb64409fe55ac1d07249a (diff) | |
download | gnuradio-42b034d07f7d27f3c645bebd0aed01f358e669bb.tar.gz gnuradio-42b034d07f7d27f3c645bebd0aed01f358e669bb.tar.bz2 gnuradio-42b034d07f7d27f3c645bebd0aed01f358e669bb.zip |
digital: copied tunnel.py over to gr-digital/examples and updated it to use UHD. So far so good. Testing on multiple computers now.
Diffstat (limited to 'gr-digital/python/gmsk.py')
-rw-r--r-- | gr-digital/python/gmsk.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gr-digital/python/gmsk.py b/gr-digital/python/gmsk.py index ba122821e..4db62e40d 100644 --- a/gr-digital/python/gmsk.py +++ b/gr-digital/python/gmsk.py @@ -78,8 +78,8 @@ class gmsk_mod(gr.hier_block2): self._samples_per_symbol = samples_per_symbol self._bt = bt - if not isinstance(samples_per_symbol, int) or samples_per_symbol < 2: - raise TypeError, ("samples_per_symbol must be an integer >= 2, is %r" % \ + if samples_per_symbol < 2: + raise TypeError, ("samples_per_symbol must >= 2, is %r" % \ (samples_per_symbol,)) ntaps = 4 * samples_per_symbol # up to 3 bits in filter at once @@ -94,12 +94,12 @@ class gmsk_mod(gr.hier_block2): 1, # gain samples_per_symbol, # symbol_rate bt, # bandwidth * symbol time - ntaps # number of taps + int(ntaps) # number of taps ) - self.sqwave = (1,) * samples_per_symbol # rectangular window + self.sqwave = (1,) * int(samples_per_symbol) # rectangular window self.taps = numpy.convolve(numpy.array(self.gaussian_taps),numpy.array(self.sqwave)) - self.gaussian_filter = gr.interp_fir_filter_fff(samples_per_symbol, self.taps) + self.gaussian_filter = gr.pfb_arb_resampler_fff(samples_per_symbol, self.taps) # FM modulation self.fmmod = gr.frequency_modulator_fc(sensitivity) |