GNU Radio Radar Toolbox
estimator_ofdm.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 
22 #ifndef INCLUDED_RADAR_ESTIMATOR_OFDM_H
23 #define INCLUDED_RADAR_ESTIMATOR_OFDM_H
24 
25 #include <radar/api.h>
26 #include <gnuradio/block.h>
27 
28 namespace gr {
29  namespace radar {
30 
31  /*!
32  * \brief This block evaluates the peaks given from a OFDM matrix. Input are the bins of the peaks with the identifiers 'axis_x' and 'axis_y'. The parameters of the block axis_x and axis_y are vectors which define the mapping of the axis. If two values are given it is assumed a linear progression in between. If four values are given the middle values are set on half of the axis and it is interpolated linear in between. len_x and len_y gives the length of the axis in number of bins. symbol_x and symbol_y defines the identifier (symbols) for the output data. merge_consecutive toggles merging consecutive peaks. Each peak is compared with peaks in a range of one bin. If there is a peak with a higher power the actual bin is not used for evaluations. If merge_consecutive is true data with identifier 'power' is needed.
33  *
34  * \param symbol_x Identifier (symbol) for information on x axis
35  * \param len_x Length of x axis in bins
36  * \param axis_x Axis x
37  * \param symbol_y Identifier (symbol) for information on y axis
38  * \param len_y Length of y axis in bins
39  * \param axis_y Axis y
40  * \param merge_consecutive Merge consecutive peaks
41  *
42  * \ingroup radar
43  *
44  */
45  class RADAR_API estimator_ofdm : virtual public gr::block
46  {
47  public:
48  typedef boost::shared_ptr<estimator_ofdm> sptr;
49 
50  /*!
51  * \brief Return a shared_ptr to a new instance of radar::estimator_ofdm.
52  *
53  * To avoid accidental use of raw pointers, radar::estimator_ofdm's
54  * constructor is in a private implementation
55  * class. radar::estimator_ofdm::make is the public interface for
56  * creating new instances.
57  */
58  static sptr make(std::string symbol_x, int len_x, std::vector<float> axis_x, std::string symbol_y, int len_y, std::vector<float> axis_y, bool merge_consecutive=true);
59  };
60 
61  } // namespace radar
62 } // namespace gr
63 
64 #endif /* INCLUDED_RADAR_ESTIMATOR_OFDM_H */
65 
Definition: crop_matrix_vcvc.h:28
This block evaluates the peaks given from a OFDM matrix. Input are the bins of the peaks with the ide...
Definition: estimator_ofdm.h:45
#define RADAR_API
Definition: api.h:30
boost::shared_ptr< estimator_ofdm > sptr
Definition: estimator_ofdm.h:48