21#ifndef INCLUDED_SATNOGS_WATERFALL_SINK_IMPL_H
22#define INCLUDED_SATNOGS_WATERFALL_SINK_IMPL_H
24#include <gnuradio/fft/fft.h>
47 uint32_t nfft_per_row;
58 WATERFALL_MODE_DECIMATION = 0,
60 WATERFALL_MODE_MAX_HOLD =
63 WATERFALL_MODE_MEAN = 2
67 const float d_samp_rate;
68 const float d_center_freq;
69 const size_t d_fft_size;
75 fft::fft<gr_complex, true> d_fft;
76 volk::vector<gr_complex> d_shift_buffer;
77 volk::vector<float> d_hold_buffer;
78 volk::vector<float> d_tmp_buffer;
80 std::chrono::system_clock::time_point d_start;
84 void write_timestamp();
91 const std::string& filename,
97 int work(
int noutput_items,
98 gr_vector_const_void_star& input_items,
99 gr_vector_void_star& output_items);
Definition: waterfall_sink_impl.h:35
void compute_mean(const gr_complex *in, size_t n_fft)
waterfall_sink_impl(float samp_rate, float center_freq, float rps, size_t fft_size, const std::string &filename, int mode)
void compute_max_hold(const gr_complex *in, size_t n_fft)
void compute_decimation(const gr_complex *in, size_t n_fft)
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
This block computes the waterfall of the incoming signal and stores the result to a file.
Definition: waterfall_sink.h:41
Definition: amsat_duv_decoder.h:29