mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-07 07:50:32 +00:00
Remove unused include
This commit is contained in:
parent
079f31a624
commit
3ca7d0d08a
@ -37,7 +37,6 @@
|
|||||||
#include <exception>
|
#include <exception>
|
||||||
#include <gflags/gflags.h>
|
#include <gflags/gflags.h>
|
||||||
#include <glog/logging.h>
|
#include <glog/logging.h>
|
||||||
#include <volk/volk.h>
|
|
||||||
#include "gnss_sdr_valve.h"
|
#include "gnss_sdr_valve.h"
|
||||||
#include "configuration_interface.h"
|
#include "configuration_interface.h"
|
||||||
|
|
||||||
@ -71,8 +70,7 @@ FileSignalSource::FileSignalSource(ConfigurationInterface* configuration,
|
|||||||
dump_ = configuration->property(role + ".dump", false);
|
dump_ = configuration->property(role + ".dump", false);
|
||||||
dump_filename_ = configuration->property(role + ".dump_filename", default_dump_filename);
|
dump_filename_ = configuration->property(role + ".dump_filename", default_dump_filename);
|
||||||
enable_throttle_control_ = configuration->property(role + ".enable_throttle_control", false);
|
enable_throttle_control_ = configuration->property(role + ".enable_throttle_control", false);
|
||||||
std::string s = "InputFilter";
|
|
||||||
//double IF = configuration->property(s + ".IF", 0.0);
|
|
||||||
double seconds_to_skip = configuration->property(role + ".seconds_to_skip", default_seconds_to_skip );
|
double seconds_to_skip = configuration->property(role + ".seconds_to_skip", default_seconds_to_skip );
|
||||||
header_size = configuration->property( role + ".header_size", 0 );
|
header_size = configuration->property( role + ".header_size", 0 );
|
||||||
long samples_to_skip = 0;
|
long samples_to_skip = 0;
|
||||||
@ -117,8 +115,7 @@ FileSignalSource::FileSignalSource(ConfigurationInterface* configuration,
|
|||||||
|
|
||||||
if( seconds_to_skip > 0 )
|
if( seconds_to_skip > 0 )
|
||||||
{
|
{
|
||||||
samples_to_skip = static_cast< long >(
|
samples_to_skip = static_cast< long >( seconds_to_skip * sampling_frequency_ );
|
||||||
seconds_to_skip * sampling_frequency_ );
|
|
||||||
|
|
||||||
if( is_complex )
|
if( is_complex )
|
||||||
{
|
{
|
||||||
@ -138,7 +135,6 @@ FileSignalSource::FileSignalSource(ConfigurationInterface* configuration,
|
|||||||
LOG(INFO) << "Error skipping bytes!";
|
LOG(INFO) << "Error skipping bytes!";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (const std::exception &e)
|
catch (const std::exception &e)
|
||||||
{
|
{
|
||||||
@ -171,7 +167,6 @@ FileSignalSource::FileSignalSource(ConfigurationInterface* configuration,
|
|||||||
<< std::endl
|
<< std::endl
|
||||||
<< GNSSSDR_INSTALL_DIR "/share/gnss-sdr/conf/"
|
<< GNSSSDR_INSTALL_DIR "/share/gnss-sdr/conf/"
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG(INFO) << "file_signal_source: Unable to open the samples file "
|
LOG(INFO) << "file_signal_source: Unable to open the samples file "
|
||||||
@ -238,8 +233,8 @@ FileSignalSource::FileSignalSource(ConfigurationInterface* configuration,
|
|||||||
if (enable_throttle_control_)
|
if (enable_throttle_control_)
|
||||||
{
|
{
|
||||||
throttle_ = gr::blocks::throttle::make(item_size_, sampling_frequency_);
|
throttle_ = gr::blocks::throttle::make(item_size_, sampling_frequency_);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DLOG(INFO) << "File source filename " << filename_;
|
DLOG(INFO) << "File source filename " << filename_;
|
||||||
DLOG(INFO) << "Samples " << samples_;
|
DLOG(INFO) << "Samples " << samples_;
|
||||||
DLOG(INFO) << "Sampling frequency " << sampling_frequency_;
|
DLOG(INFO) << "Sampling frequency " << sampling_frequency_;
|
||||||
@ -251,14 +246,10 @@ FileSignalSource::FileSignalSource(ConfigurationInterface* configuration,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
FileSignalSource::~FileSignalSource()
|
FileSignalSource::~FileSignalSource()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void FileSignalSource::connect(gr::top_block_sptr top_block)
|
void FileSignalSource::connect(gr::top_block_sptr top_block)
|
||||||
{
|
{
|
||||||
if (samples_ > 0)
|
if (samples_ > 0)
|
||||||
@ -310,10 +301,6 @@ void FileSignalSource::connect(gr::top_block_sptr top_block)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void FileSignalSource::disconnect(gr::top_block_sptr top_block)
|
void FileSignalSource::disconnect(gr::top_block_sptr top_block)
|
||||||
{
|
{
|
||||||
if (samples_ > 0)
|
if (samples_ > 0)
|
||||||
@ -365,9 +352,6 @@ void FileSignalSource::disconnect(gr::top_block_sptr top_block)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
gr::basic_block_sptr FileSignalSource::get_left_block()
|
gr::basic_block_sptr FileSignalSource::get_left_block()
|
||||||
{
|
{
|
||||||
LOG(WARNING) << "Left block of a signal source should not be retrieved";
|
LOG(WARNING) << "Left block of a signal source should not be retrieved";
|
||||||
@ -375,9 +359,6 @@ gr::basic_block_sptr FileSignalSource::get_left_block()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
gr::basic_block_sptr FileSignalSource::get_right_block()
|
gr::basic_block_sptr FileSignalSource::get_right_block()
|
||||||
{
|
{
|
||||||
if (samples_ > 0)
|
if (samples_ > 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user