os_cfar_2d_vc_impl.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2014 Communications Engineering Lab, KIT.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
* Boston, MA 02110-1301, USA.
*/
#ifndef INCLUDED_RADAR_OS_CFAR_2D_VC_IMPL_H
#define INCLUDED_RADAR_OS_CFAR_2D_VC_IMPL_H
#include <radar/os_cfar_2d_vc.h>
namespace gr {
namespace radar {
class os_cfar_2d_vc_impl : public os_cfar_2d_vc
{
private:
// Nothing to declare in this block.
protected:
int calculate_output_stream_length(const gr_vector_int& ninput_items);
public:
os_cfar_2d_vc_impl(int vlen,
std::vector<int> samp_compare,
std::vector<int> samp_protect,
float rel_threshold,
float mult_threshold,
const std::string& len_key);
~os_cfar_2d_vc_impl();
void set_rel_threshold(float inp);
void set_mult_threshold(float inp);
void set_samp_compare(std::vector<int> inp);
void set_samp_protect(std::vector<int> inp);
int d_vlen;
std::vector<int> d_samp_compare, d_samp_protect;
float d_rel_threshold, d_mult_threshold;
std::vector<float> d_x, d_y, d_power;
pmt::pmt_t d_port_id;
std::vector<tag_t> d_tags;
pmt::pmt_t d_ptimestamp, d_px, d_py, d_ppower, d_value;
// Where all the action really happens
int work(int noutput_items,
gr_vector_int& ninput_items,
gr_vector_const_void_star& input_items,
gr_vector_void_star& output_items);
};
} // namespace radar
} // namespace gr
#endif /* INCLUDED_RADAR_OS_CFAR_2D_VC_IMPL_H */
gr::radar::os_cfar_2d_vc_impl::work
int work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
gr::radar::os_cfar_2d_vc_impl::set_samp_compare
void set_samp_compare(std::vector< int > inp)
gr::radar::os_cfar_2d_vc_impl::d_rel_threshold
float d_rel_threshold
Definition os_cfar_2d_vc_impl.h:52
gr::radar::os_cfar_2d_vc_impl::d_port_id
pmt::pmt_t d_port_id
Definition os_cfar_2d_vc_impl.h:55
gr::radar::os_cfar_2d_vc_impl::set_rel_threshold
void set_rel_threshold(float inp)
gr::radar::os_cfar_2d_vc_impl::~os_cfar_2d_vc_impl
~os_cfar_2d_vc_impl()
gr::radar::os_cfar_2d_vc_impl::d_value
pmt::pmt_t d_value
Definition os_cfar_2d_vc_impl.h:57
gr::radar::os_cfar_2d_vc_impl::d_py
pmt::pmt_t d_py
Definition os_cfar_2d_vc_impl.h:57
gr::radar::os_cfar_2d_vc_impl::set_mult_threshold
void set_mult_threshold(float inp)
gr::radar::os_cfar_2d_vc_impl::d_vlen
int d_vlen
Definition os_cfar_2d_vc_impl.h:50
gr::radar::os_cfar_2d_vc_impl::d_power
std::vector< float > d_power
Definition os_cfar_2d_vc_impl.h:53
gr::radar::os_cfar_2d_vc_impl::d_tags
std::vector< tag_t > d_tags
Definition os_cfar_2d_vc_impl.h:56
gr::radar::os_cfar_2d_vc_impl::calculate_output_stream_length
int calculate_output_stream_length(const gr_vector_int &ninput_items)
gr::radar::os_cfar_2d_vc_impl::os_cfar_2d_vc_impl
os_cfar_2d_vc_impl(int vlen, std::vector< int > samp_compare, std::vector< int > samp_protect, float rel_threshold, float mult_threshold, const std::string &len_key)
gr::radar::os_cfar_2d_vc_impl::d_px
pmt::pmt_t d_px
Definition os_cfar_2d_vc_impl.h:57
gr::radar::os_cfar_2d_vc_impl::d_samp_compare
std::vector< int > d_samp_compare
Definition os_cfar_2d_vc_impl.h:51
gr::radar::os_cfar_2d_vc_impl::d_ppower
pmt::pmt_t d_ppower
Definition os_cfar_2d_vc_impl.h:57
gr::radar::os_cfar_2d_vc_impl::d_y
std::vector< float > d_y
Definition os_cfar_2d_vc_impl.h:53
gr::radar::os_cfar_2d_vc_impl::d_samp_protect
std::vector< int > d_samp_protect
Definition os_cfar_2d_vc_impl.h:51
gr::radar::os_cfar_2d_vc_impl::d_mult_threshold
float d_mult_threshold
Definition os_cfar_2d_vc_impl.h:52
gr::radar::os_cfar_2d_vc_impl::d_ptimestamp
pmt::pmt_t d_ptimestamp
Definition os_cfar_2d_vc_impl.h:57
gr::radar::os_cfar_2d_vc_impl::d_x
std::vector< float > d_x
Definition os_cfar_2d_vc_impl.h:53
gr::radar::os_cfar_2d_vc_impl::set_samp_protect
void set_samp_protect(std::vector< int > inp)
gr::radar::os_cfar_2d_vc
This block estimates peaks of a given matrix. A matrix can be represented as a combination of vectors...
Definition os_cfar_2d_vc.h:56
gr::radar
Definition crop_matrix_vcvc.h:29
gr
Definition crop_matrix_vcvc.h:28
os_cfar_2d_vc.h