mirror of
https://github.com/brmlab/osmo-tetra.git
synced 2025-06-07 17:34:10 +02:00
Merge remote-tracking branch 'm0mik/master'
Mike Jameson updated uhd-tetra_demod.py and cqpsk.py for GNU Radio v3.74 compatibility Conflicts: src/demod/python/cqpsk.py
This commit is contained in:
commit
698bbe70be
2 changed files with 7 additions and 6 deletions
|
@ -27,7 +27,7 @@
|
|||
differential PI/4 CQPSK modulation and demodulation.
|
||||
"""
|
||||
|
||||
from gnuradio import gr, gru, blocks, analog, filter
|
||||
from gnuradio import gr, gru, blocks, analog, filter, digital
|
||||
from gnuradio.filter import firdes
|
||||
from math import pi, sqrt
|
||||
#import psk
|
||||
|
|
|
@ -2,8 +2,9 @@
|
|||
|
||||
import sys
|
||||
import math
|
||||
from gnuradio import gr, gru, audio, eng_notation, blks2, optfir
|
||||
from gnuradio import gr, gru, audio, eng_notation, filter, blocks
|
||||
from gnuradio import uhd
|
||||
from gnuradio.filter import firdes
|
||||
from gnuradio.eng_option import eng_option
|
||||
from optparse import OptionParser
|
||||
|
||||
|
@ -63,9 +64,9 @@ class my_top_block(gr.top_block):
|
|||
sys.stderr.write('Failed to set center frequency\n')
|
||||
raise SystemExit, 1
|
||||
|
||||
channel_taps = gr.firdes.low_pass(1.0, sample_rate, options.low_pass, options.low_pass * 0.1, gr.firdes.WIN_HANN)
|
||||
channel_taps = firdes.low_pass(1.0, sample_rate, options.low_pass, options.low_pass * 0.1, firdes.WIN_HANN)
|
||||
|
||||
FILTER = gr.freq_xlating_fir_filter_ccf(1, channel_taps, options.calibration, sample_rate)
|
||||
FILTER = filter.freq_xlating_fir_filter_ccf(1, channel_taps, options.calibration, sample_rate)
|
||||
|
||||
sys.stderr.write("sample rate: %d\n" %(sample_rate))
|
||||
|
||||
|
@ -78,11 +79,11 @@ class my_top_block(gr.top_block):
|
|||
log=options.log,
|
||||
verbose=options.verbose)
|
||||
|
||||
OUT = gr.file_sink(gr.sizeof_float, options.output_file)
|
||||
OUT = blocks.file_sink(gr.sizeof_float, options.output_file)
|
||||
|
||||
r = float(sample_rate) / float(new_sample_rate)
|
||||
|
||||
INTERPOLATOR = gr.fractional_interpolator_cc(0, r)
|
||||
INTERPOLATOR = filter.fractional_interpolator_cc(0, r)
|
||||
|
||||
self.connect(self._u, FILTER, INTERPOLATOR, DEMOD, OUT)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue