Created
October 14, 2016 21:40
-
-
Save daniestevez/70d570292493daac33efb1767fc478ed to your computer and use it in GitHub Desktop.
AutoFEC BPSK patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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