[hamradio-commits] [gnss-sdr] 18/27: OsmoSdr args
Carles Fernandez
carles_fernandez-guest at moszumanska.debian.org
Fri May 1 08:09:24 UTC 2015
This is an automated email from the git hooks/post-receive script.
carles_fernandez-guest pushed a commit to branch next
in repository gnss-sdr.
commit a9c77939df67107799f30460ec1466ef9fa436e3
Author: Anthony Arnold <anthony.arnold at uqconnect.ed.au>
Date: Thu Apr 30 17:25:03 2015 +1000
OsmoSdr args
---
src/algorithms/signal_source/adapters/osmosdr_signal_source.cc | 3 ++-
src/algorithms/signal_source/adapters/osmosdr_signal_source.h | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/algorithms/signal_source/adapters/osmosdr_signal_source.cc b/src/algorithms/signal_source/adapters/osmosdr_signal_source.cc
index 80e6ab4..28b7c4a 100644
--- a/src/algorithms/signal_source/adapters/osmosdr_signal_source.cc
+++ b/src/algorithms/signal_source/adapters/osmosdr_signal_source.cc
@@ -65,6 +65,7 @@ OsmosdrSignalSource::OsmosdrSignalSource(ConfigurationInterface* configuration,
if_gain_ = configuration->property(role + ".if_gain", (double)40.0);
sample_rate_ = configuration->property(role + ".sampling_frequency", (double)2.0e6);
item_type_ = configuration->property(role + ".item_type", default_item_type);
+ osmosdr_args_ = configuration->property(role + ".osmosdr_args", std::string( ));
if (item_type_.compare("short") == 0)
{
@@ -76,7 +77,7 @@ OsmosdrSignalSource::OsmosdrSignalSource(ConfigurationInterface* configuration,
// 1. Make the driver instance
try
{
- osmosdr_source_ = osmosdr::source::make();
+ osmosdr_source_ = osmosdr::source::make(osmosdr_args_);
}
catch( boost::exception & e )
{
diff --git a/src/algorithms/signal_source/adapters/osmosdr_signal_source.h b/src/algorithms/signal_source/adapters/osmosdr_signal_source.h
index 6204a0a..0fffe7b 100644
--- a/src/algorithms/signal_source/adapters/osmosdr_signal_source.h
+++ b/src/algorithms/signal_source/adapters/osmosdr_signal_source.h
@@ -100,6 +100,7 @@ private:
std::string dump_filename_;
osmosdr::source::sptr osmosdr_source_;
+ std::string osmosdr_args_;
boost::shared_ptr<gr::block> valve_;
gr::blocks::file_sink::sptr file_sink_;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/gnss-sdr.git
More information about the pkg-hamradio-commits
mailing list