mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 20:20:35 +00:00
Remove unused includes
This commit is contained in:
parent
f436cc8a5c
commit
4992449b51
@ -30,11 +30,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "fmcomms2_signal_source.h"
|
#include "fmcomms2_signal_source.h"
|
||||||
#include <cstdio>
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <boost/format.hpp>
|
|
||||||
#include <glog/logging.h>
|
#include <glog/logging.h>
|
||||||
#include <gnuradio/blocks/file_sink.h>
|
|
||||||
#include "configuration_interface.h"
|
#include "configuration_interface.h"
|
||||||
#include "gnss_sdr_valve.h"
|
#include "gnss_sdr_valve.h"
|
||||||
#include "GPS_L1_CA.h"
|
#include "GPS_L1_CA.h"
|
||||||
@ -75,8 +72,8 @@ Fmcomms2SignalSource::Fmcomms2SignalSource(ConfigurationInterface* configuration
|
|||||||
item_size_ = sizeof(gr_complex);
|
item_size_ = sizeof(gr_complex);
|
||||||
|
|
||||||
std::cout << "device address: " << uri_ << std::endl;
|
std::cout << "device address: " << uri_ << std::endl;
|
||||||
std::cout << "LO frequency : " << freq_ << "Hz" << std::endl;
|
std::cout << "LO frequency : " << freq_ << " Hz" << std::endl;
|
||||||
std::cout << "sample rate: " << sample_rate_ << "Hz" << std::endl;
|
std::cout << "sample rate: " << sample_rate_ << " Hz" << std::endl;
|
||||||
|
|
||||||
if(item_type_.compare("gr_complex") == 0)
|
if(item_type_.compare("gr_complex") == 0)
|
||||||
{
|
{
|
||||||
@ -92,7 +89,7 @@ Fmcomms2SignalSource::Fmcomms2SignalSource(ConfigurationInterface* configuration
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LOG(FATAL) << "Exception: item type " << item_type_ << " not supported!";
|
LOG(FATAL) << "Configuration error: item type " << item_type_ << " not supported!";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (samples_ != 0)
|
if (samples_ != 0)
|
||||||
@ -153,7 +150,7 @@ void Fmcomms2SignalSource::disconnect(gr::top_block_sptr top_block)
|
|||||||
{
|
{
|
||||||
if (dump_)
|
if (dump_)
|
||||||
{
|
{
|
||||||
top_block->disconnect(fmcomms2_source_f32c_, 0, file_sink_, 0);
|
top_block->disconnect(fmcomms2_source_f32c_, 0, file_sink_, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Returns "fmcomms2_Signal_Source"
|
* \brief Returns "Fmcomms2_Signal_Source"
|
||||||
*/
|
*/
|
||||||
inline std::string implementation() override
|
inline std::string implementation() override
|
||||||
{
|
{
|
||||||
|
@ -30,9 +30,7 @@
|
|||||||
|
|
||||||
#include "plutosdr_signal_source.h"
|
#include "plutosdr_signal_source.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <boost/format.hpp>
|
|
||||||
#include <glog/logging.h>
|
#include <glog/logging.h>
|
||||||
#include <gnuradio/blocks/file_sink.h>
|
|
||||||
#include "configuration_interface.h"
|
#include "configuration_interface.h"
|
||||||
#include "gnss_sdr_valve.h"
|
#include "gnss_sdr_valve.h"
|
||||||
#include "GPS_L1_CA.h"
|
#include "GPS_L1_CA.h"
|
||||||
@ -70,15 +68,15 @@ PlutosdrSignalSource::PlutosdrSignalSource(ConfigurationInterface* configuration
|
|||||||
|
|
||||||
if(item_type_.compare("gr_complex") != 0)
|
if(item_type_.compare("gr_complex") != 0)
|
||||||
{
|
{
|
||||||
std::cout << "bad item_type!!" << std::endl;
|
std::cout << "Configuration error: item_type must be gr_complex" << std::endl;
|
||||||
LOG(FATAL) << "Exception: item type must be gr_complex!";
|
LOG(FATAL) << "Configuration error: item_type must be gr_complex!";
|
||||||
}
|
}
|
||||||
|
|
||||||
item_size_ = sizeof(gr_complex);
|
item_size_ = sizeof(gr_complex);
|
||||||
|
|
||||||
std::cout << "device address: " << uri_ << std::endl;
|
std::cout << "device address: " << uri_ << std::endl;
|
||||||
std::cout << "frequency : " << freq_ << "Hz" << std::endl;
|
std::cout << "frequency : " << freq_ << " Hz" << std::endl;
|
||||||
std::cout << "sample rate: " << sample_rate_ << "Hz" << std::endl;
|
std::cout << "sample rate: " << sample_rate_ << " Hz" << std::endl;
|
||||||
std::cout << "gain mode: " << gain_mode_ << std::endl;
|
std::cout << "gain mode: " << gain_mode_ << std::endl;
|
||||||
std::cout << "item type: " << item_type_ << std::endl;
|
std::cout << "item type: " << item_type_ << std::endl;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user