mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-31 15:23:04 +00:00 
			
		
		
		
	OsmoSdr args
This commit is contained in:
		| @@ -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 ) | ||||
|             { | ||||
|   | ||||
| @@ -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_; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Anthony Arnold
					Anthony Arnold