mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-06-03 07:04:09 +00:00
OsmoSdr args
This commit is contained in:
parent
5f68f92a23
commit
a9c77939df
@ -65,6 +65,7 @@ OsmosdrSignalSource::OsmosdrSignalSource(ConfigurationInterface* configuration,
|
|||||||
if_gain_ = configuration->property(role + ".if_gain", (double)40.0);
|
if_gain_ = configuration->property(role + ".if_gain", (double)40.0);
|
||||||
sample_rate_ = configuration->property(role + ".sampling_frequency", (double)2.0e6);
|
sample_rate_ = configuration->property(role + ".sampling_frequency", (double)2.0e6);
|
||||||
item_type_ = configuration->property(role + ".item_type", default_item_type);
|
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)
|
if (item_type_.compare("short") == 0)
|
||||||
{
|
{
|
||||||
@ -76,7 +77,7 @@ OsmosdrSignalSource::OsmosdrSignalSource(ConfigurationInterface* configuration,
|
|||||||
// 1. Make the driver instance
|
// 1. Make the driver instance
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
osmosdr_source_ = osmosdr::source::make();
|
osmosdr_source_ = osmosdr::source::make(osmosdr_args_);
|
||||||
}
|
}
|
||||||
catch( boost::exception & e )
|
catch( boost::exception & e )
|
||||||
{
|
{
|
||||||
|
@ -100,6 +100,7 @@ private:
|
|||||||
std::string dump_filename_;
|
std::string dump_filename_;
|
||||||
|
|
||||||
osmosdr::source::sptr osmosdr_source_;
|
osmosdr::source::sptr osmosdr_source_;
|
||||||
|
std::string osmosdr_args_;
|
||||||
|
|
||||||
boost::shared_ptr<gr::block> valve_;
|
boost::shared_ptr<gr::block> valve_;
|
||||||
gr::blocks::file_sink::sptr file_sink_;
|
gr::blocks::file_sink::sptr file_sink_;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user