summaryrefslogtreecommitdiff
path: root/gr-digital/python/gfsk.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-digital/python/gfsk.py')
-rw-r--r--gr-digital/python/gfsk.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/gr-digital/python/gfsk.py b/gr-digital/python/gfsk.py
index 9ec477648e..215583dd8c 100644
--- a/gr-digital/python/gfsk.py
+++ b/gr-digital/python/gfsk.py
@@ -99,7 +99,9 @@ class gfsk_mod(gr.hier_block2):
#sensitivity = (pi / 2) / samples_per_symbol # phase change per bit = pi / 2
# Turn it into NRZ data.
- self.nrz = digital.bytes_to_syms()
+ #self.nrz = digital.bytes_to_syms()
+ self.unpack = gr.packed_to_unpacked_bb(1, gr.GR_MSB_FIRST)
+ self.nrz = digital.chunks_to_symbols_bf([-1, 1])
# Form Gaussian filter
# Generate Gaussian response (Needs to be convolved with window below).
@@ -127,7 +129,7 @@ class gfsk_mod(gr.hier_block2):
self._setup_logging()
# Connect & Initialize base class
- self.connect(self, self.nrz, self.gaussian_filter, self.fmmod, self.amp, self)
+ self.connect(self, self.unpack, self.nrz, self.gaussian_filter, self.fmmod, self.amp, self)
def samples_per_symbol(self):
return self._samples_per_symbol