diff options
Diffstat (limited to 'gr-qtgui/lib/waterfall_sink_f_impl.h')
-rw-r--r-- | gr-qtgui/lib/waterfall_sink_f_impl.h | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/gr-qtgui/lib/waterfall_sink_f_impl.h b/gr-qtgui/lib/waterfall_sink_f_impl.h index d206825d8c..cd70e20de6 100644 --- a/gr-qtgui/lib/waterfall_sink_f_impl.h +++ b/gr-qtgui/lib/waterfall_sink_f_impl.h @@ -43,19 +43,26 @@ private: const pmt::pmt_t d_port; const pmt::pmt_t d_port_bw; - bool d_shift; - fft::fft_complex_fwd* d_fft; - - int d_index; - std::vector<float*> d_residbufs; - std::vector<double*> d_magbufs; + // Perform fftshift operation; + // this is usually desired when plotting + bool d_shift = true; + std::unique_ptr<fft::fft_complex_fwd> d_fft; + + int d_index = 0; + std::vector<volk::vector<float>> d_residbufs; + std::vector<volk::vector<double>> d_magbufs; double* d_pdu_magbuf; - float* d_fbuf; - - int d_argc; - char* d_argv; + volk::vector<float> d_fbuf; + + // Required now for Qt; argc must be greater than 0 and argv + // must have at least one valid character. Must be valid through + // life of the qApplication: + // http://harmattan-dev.nokia.com/docs/library/html/qt4/qapplication.html + char d_zero = 0; + int d_argc = 1; + char* d_argv = &d_zero; QWidget* d_parent; - WaterfallDisplayForm* d_main_gui; + WaterfallDisplayForm* d_main_gui = nullptr; gr::high_res_timer_type d_update_time; gr::high_res_timer_type d_last_time; |