Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
AutoFEC BPSK patch
diff --git a/python/auto_fec.py b/python/auto_fec.py
index 40ee4ed..a3c2df3 100644
--- a/python/auto_fec.py
+++ b/python/auto_fec.py
@@ -36,7 +36,7 @@ _puncture_matrices = [
_phase_multiplication = [
('0', 1),
- ('90', 1j),
+## ('90', 1j),
# Others are just inverse of former - inverted stream can be fixed manually
#('180', -1),
#('270', -1j)
@@ -429,13 +429,15 @@ class auto_fec(gr.hier_block2):
self.gr_complex_to_float_0_0 = blocks.complex_to_float(1)
self.connect((self.gr_multiply_const_vxx_2, 0), (self.gr_complex_to_float_0_0, 0))
-
- self.gr_interleave_1 = blocks.interleave(gr.sizeof_float*1)
- self.connect((self.gr_complex_to_float_0_0, 1), (self.gr_interleave_1, 1))
- self.connect((self.gr_complex_to_float_0_0, 0), (self.gr_interleave_1, 0))
-
+
+## Hack for BPSK
+## self.gr_interleave_1 = blocks.interleave(gr.sizeof_float*1)
+## self.connect((self.gr_complex_to_float_0_0, 1), (self.gr_interleave_1, 1))
self.gr_multiply_const_vxx_0 = blocks.multiply_const_vff((1, )) # invert
- self.connect((self.gr_interleave_1, 0), (self.gr_multiply_const_vxx_0, 0))
+ self.connect((self.gr_complex_to_float_0_0, 0), (self.gr_multiply_const_vxx_0, 0))
+
+
+# self.connect((self.gr_interleave_1, 0), (self.gr_multiply_const_vxx_0, 0))
self.baz_delay_2 = baz.delay(gr.sizeof_float*1, default_xform.get_puncture_delay()) # delay_puncture
self.connect((self.gr_multiply_const_vxx_0, 0), (self.baz_delay_2, 0))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment