GNU Radio Radar Toolbox
find_max_peak_c_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_FIND_MAX_PEAK_C_IMPL_H
22 #define INCLUDED_RADAR_FIND_MAX_PEAK_C_IMPL_H
23 
24 #include <radar/find_max_peak_c.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  find_max_peak_c_impl(int samp_rate,
39  float threshold,
40  int samp_protect,
41  std::vector<float> max_freq,
42  bool cut_max_freq,
43  const std::string& len_key);
45  void set_threshold(float threshold);
46  void set_samp_protect(int samp);
47  void set_max_freq(std::vector<float> freq);
48 
50  float d_threshold;
52  std::vector<float> d_max_freq;
54 
55  std::vector<float> d_pks, d_freq, d_angle;
56 
57  pmt::pmt_t d_port_id;
59  std::vector<tag_t> d_tags;
60 
61  // Where all the action really happens
62  int work(int noutput_items,
63  gr_vector_int& ninput_items,
64  gr_vector_const_void_star& input_items,
65  gr_vector_void_star& output_items);
66 };
67 
68 } // namespace radar
69 } // namespace gr
70 
71 #endif /* INCLUDED_RADAR_FIND_MAX_PEAK_C_IMPL_H */
gr::radar::find_max_peak_c_impl::d_tags
std::vector< tag_t > d_tags
Definition: find_max_peak_c_impl.h:59
gr::radar::find_max_peak_c_impl::set_samp_protect
void set_samp_protect(int samp)
gr::radar::find_max_peak_c_impl::d_angle
std::vector< float > d_angle
Definition: find_max_peak_c_impl.h:55
gr::radar::find_max_peak_c_impl
Definition: find_max_peak_c_impl.h:29
gr::radar::find_max_peak_c_impl::find_max_peak_c_impl
find_max_peak_c_impl(int samp_rate, float threshold, int samp_protect, std::vector< float > max_freq, bool cut_max_freq, const std::string &len_key)
gr::radar::find_max_peak_c
This block estimates a single peak of a given FFT spectrum as tagged stream. Output is a message with...
Definition: find_max_peak_c.h:52
gr::radar::find_max_peak_c_impl::d_ptimestamp
pmt::pmt_t d_ptimestamp
Definition: find_max_peak_c_impl.h:58
gr::radar::find_max_peak_c_impl::d_pfreq
pmt::pmt_t d_pfreq
Definition: find_max_peak_c_impl.h:58
find_max_peak_c.h
gr::radar::find_max_peak_c_impl::calculate_output_stream_length
int calculate_output_stream_length(const gr_vector_int &ninput_items)
gr::radar::find_max_peak_c_impl::d_cut_max_freq
bool d_cut_max_freq
Definition: find_max_peak_c_impl.h:53
gr::radar::find_max_peak_c_impl::~find_max_peak_c_impl
~find_max_peak_c_impl()
gr::radar::find_max_peak_c_impl::d_samp_protect
int d_samp_protect
Definition: find_max_peak_c_impl.h:51
gr::radar::find_max_peak_c_impl::d_pks
std::vector< float > d_pks
Definition: find_max_peak_c_impl.h:55
gr::radar::find_max_peak_c_impl::d_max_freq
std::vector< float > d_max_freq
Definition: find_max_peak_c_impl.h:52
gr::radar::find_max_peak_c_impl::d_freq
std::vector< float > d_freq
Definition: find_max_peak_c_impl.h:55
gr::radar::find_max_peak_c_impl::d_samp_rate
int d_samp_rate
Definition: find_max_peak_c_impl.h:49
gr::radar::find_max_peak_c_impl::d_port_id
pmt::pmt_t d_port_id
Definition: find_max_peak_c_impl.h:57
gr::radar::find_max_peak_c_impl::set_threshold
void set_threshold(float threshold)
gr::radar::find_max_peak_c_impl::d_value
pmt::pmt_t d_value
Definition: find_max_peak_c_impl.h:58
gr
Definition: crop_matrix_vcvc.h:28
gr::radar::find_max_peak_c_impl::d_ppks
pmt::pmt_t d_ppks
Definition: find_max_peak_c_impl.h:58
gr::radar::find_max_peak_c_impl::set_max_freq
void set_max_freq(std::vector< float > freq)
gr::radar::find_max_peak_c_impl::d_pangle
pmt::pmt_t d_pangle
Definition: find_max_peak_c_impl.h:58
gr::radar::find_max_peak_c_impl::d_threshold
float d_threshold
Definition: find_max_peak_c_impl.h:50
gr::radar::find_max_peak_c_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)