18 #ifndef GNSS_SDR_NOTCH_CC_H 19 #define GNSS_SDR_NOTCH_CC_H 22 #include <gnuradio/block.h> 23 #include <gnuradio/fft/fft.h> 24 #include <volk_gnsssdr/volk_gnsssdr_alloc.h> 36 using notch_sptr = gnss_shared_ptr<Notch>;
38 notch_sptr make_notch_filter(
42 int32_t n_segments_est,
43 int32_t n_segments_reset);
53 int general_work(
int noutput_items, gr_vector_int &ninput_items,
54 gr_vector_const_void_star &input_items,
55 gr_vector_void_star &output_items);
58 friend notch_sptr make_notch_filter(
float pfa,
float p_c_factor, int32_t length, int32_t n_segments_est, int32_t n_segments_reset);
59 Notch(
float pfa,
float p_c_factor, int32_t length, int32_t n_segments_est, int32_t n_segments_reset);
60 #if GNURADIO_FFT_USES_TEMPLATES 61 std::unique_ptr<gr::fft::fft_complex_fwd> d_fft_;
63 std::unique_ptr<gr::fft::fft_complex> d_fft_;
65 volk_gnsssdr::vector<gr_complex> c_samples_;
66 volk_gnsssdr::vector<float> angle_;
67 volk_gnsssdr::vector<float> power_spect_;
70 gr_complex p_c_factor_;
77 uint32_t n_segments_est_;
78 uint32_t n_segments_reset_;
85 #endif // GNSS_SDR_NOTCH_CC_H This class implements a real-time software-defined multi state notch filter.
This interface represents a GNSS block.