GNU Radio Radar Toolbox
estimator_fmcw_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_ESTIMATOR_FMCW_IMPL_H
22 #define INCLUDED_RADAR_ESTIMATOR_FMCW_IMPL_H
23 
24 #include <radar/estimator_fmcw.h>
25 
26 namespace gr {
27 namespace radar {
28 
30 {
31 private:
32  // Nothing to declare in this block.
33 
34 public:
35  estimator_fmcw_impl(int samp_rate,
36  float center_freq,
37  float sweep_freq,
38  int samp_up,
39  int samp_down,
40  bool push_power);
42 
43  void handle_msg_cw(pmt::pmt_t msg);
44  void handle_msg_up(pmt::pmt_t msg);
45  void handle_msg_down(pmt::pmt_t msg);
46  void estimate();
47 
52 
54 
56 
59 
60  constexpr static float c_light = 3e8;
61 };
62 
63 } // namespace radar
64 } // namespace gr
65 
66 #endif /* INCLUDED_RADAR_ESTIMATOR_FMCW_IMPL_H */
gr::radar::estimator_fmcw_impl::d_port_id_in_down
pmt::pmt_t d_port_id_in_down
Definition: estimator_fmcw_impl.h:57
gr::radar::estimator_fmcw_impl::d_port_id_out
pmt::pmt_t d_port_id_out
Definition: estimator_fmcw_impl.h:57
gr::radar::estimator_fmcw_impl::d_push_power
bool d_push_power
Definition: estimator_fmcw_impl.h:51
gr::radar::estimator_fmcw_impl::d_const_doppler
float d_const_doppler
Definition: estimator_fmcw_impl.h:53
gr::radar::estimator_fmcw_impl::d_center_freq
float d_center_freq
Definition: estimator_fmcw_impl.h:49
gr::radar::estimator_fmcw_impl::d_msg_cw_in
bool d_msg_cw_in
Definition: estimator_fmcw_impl.h:55
gr::radar::estimator_fmcw
This block estimates range and veloicty from peaks of a FMCW spectrum. Input messages are data with t...
Definition: estimator_fmcw.h:49
gr::radar::estimator_fmcw_impl::d_samp_rate
int d_samp_rate
Definition: estimator_fmcw_impl.h:48
gr::radar::estimator_fmcw_impl::d_msg_down
pmt::pmt_t d_msg_down
Definition: estimator_fmcw_impl.h:58
gr::radar::estimator_fmcw_impl
Definition: estimator_fmcw_impl.h:29
gr::radar::estimator_fmcw_impl::d_sweep_freq
float d_sweep_freq
Definition: estimator_fmcw_impl.h:49
gr::radar::estimator_fmcw_impl::d_const_down
float d_const_down
Definition: estimator_fmcw_impl.h:53
gr::radar::estimator_fmcw_impl::handle_msg_down
void handle_msg_down(pmt::pmt_t msg)
gr::radar::estimator_fmcw_impl::~estimator_fmcw_impl
~estimator_fmcw_impl()
gr::radar::estimator_fmcw_impl::d_msg_up_in
bool d_msg_up_in
Definition: estimator_fmcw_impl.h:55
gr::radar::estimator_fmcw_impl::estimator_fmcw_impl
estimator_fmcw_impl(int samp_rate, float center_freq, float sweep_freq, int samp_up, int samp_down, bool push_power)
gr::radar::estimator_fmcw_impl::d_port_id_in_cw
pmt::pmt_t d_port_id_in_cw
Definition: estimator_fmcw_impl.h:57
gr::radar::estimator_fmcw_impl::d_msg_down_in
bool d_msg_down_in
Definition: estimator_fmcw_impl.h:55
gr::radar::estimator_fmcw_impl::d_port_id_in_up
pmt::pmt_t d_port_id_in_up
Definition: estimator_fmcw_impl.h:57
gr
Definition: crop_matrix_vcvc.h:28
gr::radar::estimator_fmcw_impl::d_samp_down
int d_samp_down
Definition: estimator_fmcw_impl.h:50
gr::radar::estimator_fmcw_impl::d_msg_up
pmt::pmt_t d_msg_up
Definition: estimator_fmcw_impl.h:58
gr::radar::estimator_fmcw_impl::d_msg_cw
pmt::pmt_t d_msg_cw
Definition: estimator_fmcw_impl.h:58
gr::radar::estimator_fmcw_impl::c_light
constexpr static float c_light
Definition: estimator_fmcw_impl.h:60
gr::radar::estimator_fmcw_impl::estimate
void estimate()
gr::radar::estimator_fmcw_impl::handle_msg_up
void handle_msg_up(pmt::pmt_t msg)
gr::radar::estimator_fmcw_impl::handle_msg_cw
void handle_msg_cw(pmt::pmt_t msg)
gr::radar::estimator_fmcw_impl::d_samp_up
int d_samp_up
Definition: estimator_fmcw_impl.h:50
gr::radar::estimator_fmcw_impl::d_const_up
float d_const_up
Definition: estimator_fmcw_impl.h:53
estimator_fmcw.h