mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-03-04 18:48:17 +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)
|
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)
|
if(pfa == 0.0)
|
||||||
{
|
{
|
||||||
pfa = configuration_->property(role_ + ".pfa", 0.0);
|
|
||||||
threshold_ = threshold;
|
threshold_ = threshold;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -248,7 +247,6 @@ void GpsL1CaPcpsAcquisition::set_local_code()
|
|||||||
sizeof(gr_complex)*code_length_);
|
sizeof(gr_complex)*code_length_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (item_type_.compare("cshort") == 0)
|
if (item_type_.compare("cshort") == 0)
|
||||||
{
|
{
|
||||||
acquisition_sc_->set_local_code(code_);
|
acquisition_sc_->set_local_code(code_);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user