mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-13 03:30:33 +00:00
Eliminate redundancy in doppler_max initialization
Eliminate the initialization of Acquisition variable "doppler_max" in Channel (acq_->set_doppler_max(doppler_max);) because this initialization is done now in Acquisition adpaters
This commit is contained in:
parent
bfd86f8792
commit
7403fec396
@ -64,12 +64,7 @@ Channel::Channel(ConfigurationInterface *configuration, unsigned int channel,
|
|||||||
acq_->set_gnss_synchro(&gnss_synchro_);
|
acq_->set_gnss_synchro(&gnss_synchro_);
|
||||||
trk_->set_gnss_synchro(&gnss_synchro_);
|
trk_->set_gnss_synchro(&gnss_synchro_);
|
||||||
|
|
||||||
// IMPORTANT: Do not change the order between set_doppler_max, set_doppler_step and set_threshold
|
// IMPORTANT: Do not change the order between set_doppler_step and set_threshold
|
||||||
unsigned int doppler_max = configuration->property("Acquisition_" + implementation_ + boost::lexical_cast<std::string>(channel_) + ".doppler_max", 0);
|
|
||||||
if(doppler_max == 0) doppler_max = configuration->property("Acquisition_" + implementation_+ ".doppler_max", 0);
|
|
||||||
DLOG(INFO) << "Channel "<< channel_ << " Doppler_max = " << doppler_max;
|
|
||||||
|
|
||||||
acq_->set_doppler_max(doppler_max);
|
|
||||||
|
|
||||||
unsigned int doppler_step = configuration->property("Acquisition_" + implementation_ + boost::lexical_cast<std::string>(channel_) + ".doppler_step" ,0);
|
unsigned int doppler_step = configuration->property("Acquisition_" + implementation_ + boost::lexical_cast<std::string>(channel_) + ".doppler_step" ,0);
|
||||||
if(doppler_step == 0) doppler_step = configuration->property("Acquisition_" + implementation_+".doppler_step", 500);
|
if(doppler_step == 0) doppler_step = configuration->property("Acquisition_" + implementation_+".doppler_step", 500);
|
||||||
|
Loading…
Reference in New Issue
Block a user