18 #ifndef GNSS_SDR_NOTCH_CC_H 19 #define GNSS_SDR_NOTCH_CC_H 23 #include <gnuradio/block.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);
61 std::unique_ptr<gnss_fft_complex_fwd> d_fft_;
62 volk_gnsssdr::vector<gr_complex> c_samples_;
63 volk_gnsssdr::vector<float> angle_;
64 volk_gnsssdr::vector<float> power_spect_;
67 gr_complex p_c_factor_;
74 uint32_t n_segments_est_;
75 uint32_t n_segments_reset_;
82 #endif // GNSS_SDR_NOTCH_CC_H This class implements a real-time software-defined multi state notch filter.
Helper file for FFT interface.
This interface represents a GNSS block.