summaryrefslogtreecommitdiff
path: root/gr-digital/python/digital/ofdm_sync_fixed.py
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2020-01-13 21:48:58 -0800
committerMartin Braun <martin.braun@ettus.com>2020-01-16 10:47:37 -0800
commit06eba40d71219f2bd48868563f263831ac710a40 (patch)
tree65970ca0216226ba96fc6ff937ac0324c7c15e9a /gr-digital/python/digital/ofdm_sync_fixed.py
parent4f53ac5a76e3ab05960a81905a570cd74d2708d7 (diff)
digital: Remove deprecated OFDM blocks
These blocks have been marked deprecated for a while and had been slated for removal. They are now being removed. This includes the following blocks: - ofdm_frame_acquisition - ofdm_frame_sink - ofdm_insert_preamble - ofdm_sync_fixed - ofdm_sync_pn - ofdm_sync_pnac - ofdm_sync_ml - ofdm_receiver
Diffstat (limited to 'gr-digital/python/digital/ofdm_sync_fixed.py')
-rw-r--r--gr-digital/python/digital/ofdm_sync_fixed.py52
1 files changed, 0 insertions, 52 deletions
diff --git a/gr-digital/python/digital/ofdm_sync_fixed.py b/gr-digital/python/digital/ofdm_sync_fixed.py
deleted file mode 100644
index 891ba17d07..0000000000
--- a/gr-digital/python/digital/ofdm_sync_fixed.py
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/usr/bin/env python
-#
-# Copyright 2007,2013 Free Software Foundation, Inc.
-#
-# This file is part of GNU Radio
-#
-# GNU Radio is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-#
-# GNU Radio is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU Radio; see the file COPYING. If not, write to
-# the Free Software Foundation, Inc., 51 Franklin Street,
-# Boston, MA 02110-1301, USA.
-#
-
-from __future__ import unicode_literals
-import math
-from gnuradio import gr
-from gnuradio import blocks
-
-class ofdm_sync_fixed(gr.hier_block2):
- def __init__(self, fft_length, cp_length, nsymbols, freq_offset, logging=False):
-
- gr.hier_block2.__init__(self, "ofdm_sync_fixed",
- gr.io_signature(1, 1, gr.sizeof_gr_complex), # Input signature
- gr.io_signature2(2, 2, gr.sizeof_float, gr.sizeof_char)) # Output signature
-
- # Use a fixed trigger point instead of sync block
- symbol_length = fft_length + cp_length
- pkt_length = nsymbols*symbol_length
- data = (pkt_length)*[0,]
- data[(symbol_length)-1] = 1
- self.peak_trigger = blocks.vector_source_b(data, True)
-
- # Use a pre-defined frequency offset
- foffset = (pkt_length)*[math.pi*freq_offset,]
- self.frequency_offset = blocks.vector_source_f(foffset, True)
-
- self.connect(self, blocks.null_sink(gr.sizeof_gr_complex))
- self.connect(self.frequency_offset, (self,0))
- self.connect(self.peak_trigger, (self,1))
-
- if logging:
- self.connect(self.peak_trigger, blocks.file_sink(gr.sizeof_char, "ofdm_sync_fixed-peaks_b.dat"))
-