From 0064bc835d80e2bb017e502be7033e093e699152 Mon Sep 17 00:00:00 2001 From: Patrick Dohmen Date: Wed, 4 Jul 2018 12:08:26 +0200 Subject: [PATCH] Connect waterfall sink in front of filter Connecting the waterfall sink behind the FFT Filter causes the waterfall to show only the filtered APT signal. Fixing this needs an additional resampler. --- .../satellites/noaa_apt_decoder.grc | 79 +++++++++++++++++-- .../satellites/satnogs_noaa_apt_decoder.py | 11 ++- 2 files changed, 81 insertions(+), 9 deletions(-) diff --git a/apps/flowgraphs/satellites/noaa_apt_decoder.grc b/apps/flowgraphs/satellites/noaa_apt_decoder.grc index f89f833..8546f6e 100644 --- a/apps/flowgraphs/satellites/noaa_apt_decoder.grc +++ b/apps/flowgraphs/satellites/noaa_apt_decoder.grc @@ -2842,6 +2842,65 @@ we shift the LO a little further ccc + + rational_resampler_xxx + + alias + + + + comment + + + + affinity + + + + decim + int(samp_rate_rx /first_stage_decimation) + + + _enabled + True + + + fbw + 0 + + + _coordinate + (504, 44) + + + _rotation + 0 + + + id + rational_resampler_xxx_2_0 + + + interp + int(samp_rate_rx/ ( first_stage_decimation * int(samp_rate_rx/ first_stage_decimation / initial_bandwidth))) + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + taps + + + + type + ccc + + parameter @@ -3293,7 +3352,7 @@ we shift the LO a little further _coordinate - (696, 20) + (696, 28) _rotation @@ -3438,12 +3497,6 @@ we shift the LO a little further 0 0 - - fft_filter_xxx_0 - satnogs_waterfall_sink_0 - 0 - 0 - fir_filter_xxx_1 rational_resampler_xxx_0 @@ -3492,12 +3545,24 @@ we shift the LO a little further 0 0 + + rational_resampler_xxx_2_0 + satnogs_waterfall_sink_0 + 0 + 0 + satnogs_coarse_doppler_correction_cc_0 fft_filter_xxx_0 0 0 + + satnogs_coarse_doppler_correction_cc_0 + rational_resampler_xxx_2_0 + 0 + 0 + satnogs_tcp_rigctl_msg_source_0 satnogs_coarse_doppler_correction_cc_0 diff --git a/apps/flowgraphs/satellites/satnogs_noaa_apt_decoder.py b/apps/flowgraphs/satellites/satnogs_noaa_apt_decoder.py index 71dd2c4..9e43123 100755 --- a/apps/flowgraphs/satellites/satnogs_noaa_apt_decoder.py +++ b/apps/flowgraphs/satellites/satnogs_noaa_apt_decoder.py @@ -5,7 +5,7 @@ # Title: NOAA APT Decoder # Author: Manolis Surligas, George Vardakis # Description: A NOAA APT Decoder with automatic image synchronization -# Generated: Wed Jul 4 10:18:17 2018 +# Generated: Wed Jul 4 12:13:02 2018 ################################################## @@ -72,6 +72,12 @@ class satnogs_noaa_apt_decoder(gr.top_block): self.satnogs_noaa_apt_sink_0 = satnogs.noaa_apt_sink(decoded_data_file_path, 2080, 1800, bool(sync), bool(flip_images)) self.satnogs_iq_sink_0 = satnogs.iq_sink(32767, iq_file_path, False, enable_iq_dump) self.satnogs_coarse_doppler_correction_cc_0 = satnogs.coarse_doppler_correction_cc(rx_freq, samp_rate_rx /first_stage_decimation) + self.rational_resampler_xxx_2_0 = filter.rational_resampler_ccc( + interpolation=int(samp_rate_rx/ ( first_stage_decimation * int(samp_rate_rx/ first_stage_decimation / initial_bandwidth))), + decimation=int(samp_rate_rx /first_stage_decimation), + taps=None, + fractional_bw=None, + ) self.rational_resampler_xxx_2 = filter.rational_resampler_ccc( interpolation=48000, decimation=int(samp_rate_rx/ ( first_stage_decimation * int(samp_rate_rx/ first_stage_decimation / initial_bandwidth)) / audio_decimation), @@ -133,7 +139,6 @@ class satnogs_noaa_apt_decoder(gr.top_block): self.connect((self.blocks_complex_to_mag_0, 0), (self.rational_resampler_xxx_0_0, 0)) self.connect((self.fft_filter_xxx_0, 0), (self.analog_wfm_rcv_0, 0)) self.connect((self.fft_filter_xxx_0, 0), (self.rational_resampler_xxx_2, 0)) - self.connect((self.fft_filter_xxx_0, 0), (self.satnogs_waterfall_sink_0, 0)) self.connect((self.fir_filter_xxx_1, 0), (self.rational_resampler_xxx_0, 0)) self.connect((self.freq_xlating_fir_filter_xxx_0, 0), (self.satnogs_coarse_doppler_correction_cc_0, 0)) self.connect((self.hilbert_fc_0, 0), (self.blocks_complex_to_mag_0, 0)) @@ -142,7 +147,9 @@ class satnogs_noaa_apt_decoder(gr.top_block): self.connect((self.rational_resampler_xxx_0_0, 0), (self.satnogs_noaa_apt_sink_0, 0)) self.connect((self.rational_resampler_xxx_1, 0), (self.satnogs_ogg_encoder_0, 0)) self.connect((self.rational_resampler_xxx_2, 0), (self.satnogs_iq_sink_0, 0)) + self.connect((self.rational_resampler_xxx_2_0, 0), (self.satnogs_waterfall_sink_0, 0)) self.connect((self.satnogs_coarse_doppler_correction_cc_0, 0), (self.fft_filter_xxx_0, 0)) + self.connect((self.satnogs_coarse_doppler_correction_cc_0, 0), (self.rational_resampler_xxx_2_0, 0)) def get_antenna(self): return self.antenna