GNU Radio Radar Toolbox
os_cfar_2d_vc_impl.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2014 Communications Engineering Lab, KIT.
4  *
5  * This is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 3, or (at your option)
8  * any later version.
9  *
10  * This software is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this software; see the file COPYING. If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street,
18  * Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef INCLUDED_RADAR_OS_CFAR_2D_VC_IMPL_H
22 #define INCLUDED_RADAR_OS_CFAR_2D_VC_IMPL_H
23 
24 #include <radar/os_cfar_2d_vc.h>
25 
26 namespace gr {
27  namespace radar {
28 
30  {
31  private:
32  // Nothing to declare in this block.
33 
34  protected:
35  int calculate_output_stream_length(const gr_vector_int &ninput_items);
36 
37  public:
38  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);
40  void set_rel_threshold(float inp);
41  void set_mult_threshold(float inp);
42  void set_samp_compare(std::vector<int> inp);
43  void set_samp_protect(std::vector<int> inp);
44 
45  int d_vlen;
46  std::vector<int> d_samp_compare, d_samp_protect;
48  std::vector<float> d_x, d_y, d_power;
49 
50  pmt::pmt_t d_port_id;
51  std::vector< tag_t > d_tags;
53 
54  // Where all the action really happens
55  int work(int noutput_items,
56  gr_vector_int &ninput_items,
57  gr_vector_const_void_star &input_items,
58  gr_vector_void_star &output_items);
59  };
60 
61  } // namespace radar
62 } // namespace gr
63 
64 #endif /* INCLUDED_RADAR_OS_CFAR_2D_VC_IMPL_H */
65 
int work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
void set_mult_threshold(float inp)
std::vector< int > d_samp_compare
Definition: os_cfar_2d_vc_impl.h:46
void set_samp_compare(std::vector< int > inp)
pmt::pmt_t d_px
Definition: os_cfar_2d_vc_impl.h:52
float d_mult_threshold
Definition: os_cfar_2d_vc_impl.h:47
int d_vlen
Definition: os_cfar_2d_vc_impl.h:45
pmt::pmt_t d_ppower
Definition: os_cfar_2d_vc_impl.h:52
pmt::pmt_t d_ptimestamp
Definition: os_cfar_2d_vc_impl.h:52
This block estimates peaks of a given matrix. A matrix can be represented as a combination of vectors...
Definition: os_cfar_2d_vc.h:44
void set_samp_protect(std::vector< int > inp)
std::vector< float > d_y
Definition: os_cfar_2d_vc_impl.h:48
float d_rel_threshold
Definition: os_cfar_2d_vc_impl.h:47
Definition: crop_matrix_vcvc.h:28
pmt::pmt_t d_value
Definition: os_cfar_2d_vc_impl.h:52
pmt::pmt_t d_py
Definition: os_cfar_2d_vc_impl.h:52
int calculate_output_stream_length(const gr_vector_int &ninput_items)
Definition: os_cfar_2d_vc_impl.h:29
pmt::pmt_t d_port_id
Definition: os_cfar_2d_vc_impl.h:50
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)
std::vector< tag_t > d_tags
Definition: os_cfar_2d_vc_impl.h:51
std::vector< float > d_power
Definition: os_cfar_2d_vc_impl.h:48
std::vector< float > d_x
Definition: os_cfar_2d_vc_impl.h:48
void set_rel_threshold(float inp)
std::vector< int > d_samp_protect
Definition: os_cfar_2d_vc_impl.h:46