mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-13 03:30:33 +00:00
Fix bug in Pfa assignation in GpsL1CaPcpsAcquisition
This commit is contained in:
parent
0671ec6b28
commit
0f599a1e6a
@ -136,11 +136,10 @@ void GpsL1CaPcpsAcquisition::set_channel(unsigned int channel)
|
||||
|
||||
void GpsL1CaPcpsAcquisition::set_threshold(float threshold)
|
||||
{
|
||||
float pfa = configuration_->property(role_ + boost::lexical_cast<std::string>(channel_) + ".pfa", 0.0);
|
||||
float pfa = configuration_->property(role_ + ".pfa", 0.0);
|
||||
|
||||
if(pfa == 0.0)
|
||||
{
|
||||
pfa = configuration_->property(role_ + ".pfa", 0.0);
|
||||
threshold_ = threshold;
|
||||
}
|
||||
else
|
||||
@ -248,7 +247,6 @@ void GpsL1CaPcpsAcquisition::set_local_code()
|
||||
sizeof(gr_complex)*code_length_);
|
||||
}
|
||||
|
||||
|
||||
if (item_type_.compare("cshort") == 0)
|
||||
{
|
||||
acquisition_sc_->set_local_code(code_);
|
||||
|
Loading…
Reference in New Issue
Block a user