diff options
author | 2016-02-11 22:49:23 +0100 | |
---|---|---|
committer | 2016-02-11 22:49:23 +0100 | |
commit | 25030f6063e796e5cb048ffc1ec7e1914192146b (patch) | |
tree | 0c346ad6d8a635aca22fd290e741281147a561cc /topblock.hpp | |
parent | Typo (diff) | |
download | gr-scan-master.tar.xz gr-scan-master.zip |
Diffstat (limited to 'topblock.hpp')
-rw-r--r-- | topblock.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/topblock.hpp b/topblock.hpp index 33e9484..d341a71 100644 --- a/topblock.hpp +++ b/topblock.hpp @@ -36,11 +36,12 @@ public: TopBlock(double centre_freq_1, double centre_freq_2, double sample_rate, double fft_width, double bandwidth1, double bandwidth2, double step, unsigned int avg_size, double spread, - double threshold, double ptime, const std::string &outcsv) : + double threshold, double ptime, const std::string &outcsv, + const std::string &device_args) : gr::top_block("Top Block"), vector_length(sample_rate / fft_width), window(GetWindow(vector_length)), - source(osmosdr::source::make()), /* OsmoSDR Source */ + source(osmosdr::source::make(device_args)), /* OsmoSDR Source */ stv(gr::blocks::stream_to_vector::make(sizeof(float) * 2, vector_length)), /* Stream to vector */ /* Based on the logpwrfft (a block implemented in python) */ fft(gr::fft::fft_vcc::make(vector_length, true, window, false, 1)), |