1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-03-28 06:17:02 +00:00

OsmoSdr args

This commit is contained in:
Anthony Arnold 2015-04-30 17:25:03 +10:00
parent 5f68f92a23
commit a9c77939df
2 changed files with 3 additions and 1 deletions

View File

@ -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 )
{

View File

@ -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_;