2017-02-21 10:35:18 +00:00
|
|
|
/*!
|
|
|
|
* \file pulse_blanking_cc.h
|
2017-08-24 17:21:24 +00:00
|
|
|
* \brief Implements a pulse blanking algorithm
|
2017-02-21 10:35:18 +00:00
|
|
|
* \author Javier Arribas (jarribas(at)cttc.es)
|
2017-08-24 17:21:24 +00:00
|
|
|
* Antonio Ramos (antonio.ramosdet(at)gmail.com)
|
2017-02-21 10:35:18 +00:00
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*
|
2019-07-26 10:38:20 +00:00
|
|
|
* Copyright (C) 2010-2019 (see AUTHORS file for a list of contributors)
|
2017-02-21 10:35:18 +00:00
|
|
|
*
|
|
|
|
* GNSS-SDR is a software defined Global Navigation
|
|
|
|
* Satellite Systems receiver
|
|
|
|
*
|
|
|
|
* This file is part of GNSS-SDR.
|
|
|
|
*
|
2020-02-08 00:20:02 +00:00
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
2017-02-21 10:35:18 +00:00
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
2020-02-08 09:10:46 +00:00
|
|
|
#ifndef GNSS_SDR_PULSE_BLANKING_H
|
|
|
|
#define GNSS_SDR_PULSE_BLANKING_H
|
2017-02-21 10:35:18 +00:00
|
|
|
|
|
|
|
#include <boost/shared_ptr.hpp>
|
|
|
|
#include <gnuradio/block.h>
|
2018-08-13 23:32:06 +00:00
|
|
|
#include <cstdint>
|
2017-02-21 10:35:18 +00:00
|
|
|
|
|
|
|
class pulse_blanking_cc;
|
|
|
|
|
2019-02-11 12:02:18 +00:00
|
|
|
using pulse_blanking_cc_sptr = boost::shared_ptr<pulse_blanking_cc>;
|
2017-02-21 10:35:18 +00:00
|
|
|
|
2019-07-02 15:24:54 +00:00
|
|
|
pulse_blanking_cc_sptr make_pulse_blanking_cc(
|
|
|
|
float pfa,
|
|
|
|
int32_t length_,
|
|
|
|
int32_t n_segments_est,
|
|
|
|
int32_t n_segments_reset);
|
2017-02-21 10:35:18 +00:00
|
|
|
|
|
|
|
class pulse_blanking_cc : public gr::block
|
|
|
|
{
|
2019-07-01 21:44:42 +00:00
|
|
|
public:
|
|
|
|
~pulse_blanking_cc();
|
|
|
|
|
|
|
|
void forecast(int noutput_items, gr_vector_int &ninput_items_required);
|
|
|
|
|
|
|
|
int general_work(int noutput_items __attribute__((unused)), gr_vector_int &ninput_items __attribute__((unused)),
|
|
|
|
gr_vector_const_void_star &input_items, gr_vector_void_star &output_items);
|
|
|
|
|
2017-02-21 10:35:18 +00:00
|
|
|
private:
|
2019-07-02 15:24:54 +00:00
|
|
|
friend pulse_blanking_cc_sptr make_pulse_blanking_cc(float pfa, int32_t length_, int32_t n_segments_est, int32_t n_segments_reset);
|
|
|
|
pulse_blanking_cc(float pfa, int32_t length_, int32_t n_segments_est, int32_t n_segments_reset);
|
2018-08-13 23:32:06 +00:00
|
|
|
int32_t length_;
|
|
|
|
int32_t n_segments;
|
|
|
|
int32_t n_segments_est;
|
|
|
|
int32_t n_segments_reset;
|
|
|
|
int32_t n_deg_fred;
|
2017-07-10 10:53:26 +00:00
|
|
|
bool last_filtered;
|
|
|
|
float noise_power_estimation;
|
|
|
|
float thres_;
|
|
|
|
float pfa;
|
2018-03-03 01:03:39 +00:00
|
|
|
gr_complex *zeros_;
|
2017-02-21 10:35:18 +00:00
|
|
|
};
|
|
|
|
|
2020-02-08 09:10:46 +00:00
|
|
|
#endif // GNSS_SDR_PULSE_BLANKING_H
|