This block estimates a single peak of a given FFT spectrum as tagged stream. Output is a message with the information of frequency, phase and power of the peak as a f32vector with a single item. All data is tagged with the identifiers (symbols) 'frequency', 'phase' and 'power'. The peak is estimated on the whole spectrum or on the range max_freq if cut_max_freq is true. Furthermore a threshold of the spectrum amplitude can be given with threshold. The DC peak can be cut out with the protected samples samp_protect. This value do not evaluate samp_protect samples around the DC peak. If no suitable peak is found the block returns empty vectors with the identifiers.
More...
#include <find_max_peak_c.h>
|
static sptr | make (int samp_rate, float threshold, int samp_protect, std::vector< float > max_freq, bool cut_max_freq, const std::string &len_key="packet_len") |
| Return a shared_ptr to a new instance of radar::find_max_peak_c.
|
|
This block estimates a single peak of a given FFT spectrum as tagged stream. Output is a message with the information of frequency, phase and power of the peak as a f32vector with a single item. All data is tagged with the identifiers (symbols) 'frequency', 'phase' and 'power'. The peak is estimated on the whole spectrum or on the range max_freq if cut_max_freq is true. Furthermore a threshold of the spectrum amplitude can be given with threshold. The DC peak can be cut out with the protected samples samp_protect. This value do not evaluate samp_protect samples around the DC peak. If no suitable peak is found the block returns empty vectors with the identifiers.
- Parameters
-
samp_rate | Sample rate |
threshold | Threshold for detection of the spectrum amplitude |
samp_protect | Protected samples for cutting DC peak |
max_freq | Frequency range for cutting spectrum |
cut_max_freq | Toggle cutting the spectrum for peak estimation |
len_key | Packet length key for tagged stream |
◆ sptr
◆ make()
static sptr gr::radar::find_max_peak_c::make |
( |
int |
samp_rate, |
|
|
float |
threshold, |
|
|
int |
samp_protect, |
|
|
std::vector< float > |
max_freq, |
|
|
bool |
cut_max_freq, |
|
|
const std::string & |
len_key = "packet_len" |
|
) |
| |
|
static |
◆ set_max_freq()
virtual void gr::radar::find_max_peak_c::set_max_freq |
( |
std::vector< float > |
freq | ) |
|
|
pure virtual |
◆ set_samp_protect()
virtual void gr::radar::find_max_peak_c::set_samp_protect |
( |
int |
samp | ) |
|
|
pure virtual |
◆ set_threshold()
virtual void gr::radar::find_max_peak_c::set_threshold |
( |
float |
threshold | ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: