mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-05-03 07:54:11 +00:00
Code cleaning
This commit is contained in:
parent
944dd2c0d1
commit
f0b9e03dcd
@ -52,7 +52,7 @@ FlexibandSignalSource::FlexibandSignalSource(ConfigurationInterface* configurati
|
|||||||
gain2_ = configuration->property(role + ".gain2", 0); // check gain DAC values for Flexiband frontend!
|
gain2_ = configuration->property(role + ".gain2", 0); // check gain DAC values for Flexiband frontend!
|
||||||
gain3_ = configuration->property(role + ".gain3", 0); // check gain DAC values for Flexiband frontend!
|
gain3_ = configuration->property(role + ".gain3", 0); // check gain DAC values for Flexiband frontend!
|
||||||
|
|
||||||
AGC_ = configuration->property(role + ".AGC", true); // enabed AGC by default
|
AGC_ = configuration->property(role + ".AGC", true); // enabled AGC by default
|
||||||
|
|
||||||
usb_packet_buffer_size_ = configuration->property(role + ".usb_packet_buffer", 128);
|
usb_packet_buffer_size_ = configuration->property(role + ".usb_packet_buffer", 128);
|
||||||
|
|
||||||
@ -69,7 +69,7 @@ FlexibandSignalSource::FlexibandSignalSource(ConfigurationInterface* configurati
|
|||||||
char_to_float.push_back(gr::blocks::char_to_float::make());
|
char_to_float.push_back(gr::blocks::char_to_float::make());
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int n=0;n<(RF_channels_);n++)
|
for (int n = 0; n < RF_channels_; n++)
|
||||||
{
|
{
|
||||||
float_to_complex_.push_back(gr::blocks::float_to_complex::make());
|
float_to_complex_.push_back(gr::blocks::float_to_complex::make());
|
||||||
}
|
}
|
||||||
@ -77,8 +77,8 @@ FlexibandSignalSource::FlexibandSignalSource(ConfigurationInterface* configurati
|
|||||||
DLOG(INFO) << "Item size " << item_size_;
|
DLOG(INFO) << "Item size " << item_size_;
|
||||||
DLOG(INFO) << "Firmware file " << firmware_filename_;
|
DLOG(INFO) << "Firmware file " << firmware_filename_;
|
||||||
DLOG(INFO) << "flexiband_source_(" << flexiband_source_->unique_id() << ")";
|
DLOG(INFO) << "flexiband_source_(" << flexiband_source_->unique_id() << ")";
|
||||||
|
}
|
||||||
}else
|
else
|
||||||
{
|
{
|
||||||
LOG(WARNING) << item_type_ << " unrecognized item type for flexiband_source_";
|
LOG(WARNING) << item_type_ << " unrecognized item type for flexiband_source_";
|
||||||
item_size_ = sizeof(gr_complex);
|
item_size_ = sizeof(gr_complex);
|
||||||
@ -105,7 +105,6 @@ void FlexibandSignalSource::connect(gr::top_block_sptr top_block)
|
|||||||
top_block->connect(char_to_float.at(n * 2 + 1), 0, float_to_complex_.at(n), 1);
|
top_block->connect(char_to_float.at(n * 2 + 1), 0, float_to_complex_.at(n), 1);
|
||||||
DLOG(INFO) << "connected char_to_float to float_to_complex_ CH" << n;
|
DLOG(INFO) << "connected char_to_float to float_to_complex_ CH" << n;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Returns "FlexibandSignalSource".
|
* \brief Returns "Flexiband_Signal_Source".
|
||||||
*/
|
*/
|
||||||
std::string implementation()
|
std::string implementation()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user