Skip to content

Commit

Permalink
Switch to pwr_squelch
Browse files Browse the repository at this point in the history
  • Loading branch information
vladisslav2011 committed Jan 27, 2022
1 parent cb293ad commit 2b497c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/receivers/receiver_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ receiver_base_cf::receiver_base_cf(std::string src_name, float pref_quad_rate, f
{
iq_resamp = make_resampler_cc(d_pref_quad_rate/d_quad_rate);
agc = make_rx_agc_2f(d_audio_rate, false, 0, 0, 100, 500, 500, 0);
sql = gr::analog::simple_squelch_cc::make(-150.0, 0.001);
sql = gr::analog::pwr_squelch_cc::make(-150.0, 0.001);
meter = make_rx_meter_c(d_pref_quad_rate);
}

Expand Down
4 changes: 2 additions & 2 deletions src/receivers/receiver_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#define RECEIVER_BASE_H

#include <gnuradio/hier_block2.h>
#include <gnuradio/analog/simple_squelch_cc.h>
#include <gnuradio/analog/pwr_squelch_cc.h>
#include <gnuradio/blocks/wavfile_sink.h>
#include "dsp/resampler_xx.h"
#include "dsp/rx_meter.h"
Expand Down Expand Up @@ -130,7 +130,7 @@ class receiver_base_cf : public gr::hier_block2
resampler_cc_sptr iq_resamp; /*!< Baseband resampler. */
rx_meter_c_sptr meter; /*!< Signal strength. */
rx_agc_2f_sptr agc; /*!< Receiver AGC. */
gr::analog::simple_squelch_cc::sptr sql; /*!< Squelch. */
gr::analog::pwr_squelch_cc::sptr sql; /*!< Squelch. */
gr::blocks::wavfile_sink::sptr wav_sink; /*!< WAV file sink for recording. */
private:
float d_pref_quad_rate;
Expand Down

0 comments on commit 2b497c3

Please sign in to comment.