1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 20:20:35 +00:00

Fix test termination

This commit is contained in:
Carles Fernandez 2020-11-22 20:08:42 +01:00
parent 9b9a2d20ff
commit e133834fb9
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -659,6 +659,10 @@ void pcps_acquisition::acquisition_core(uint64_t samp_count)
<< ", doppler_step: " << d_doppler_step << ", doppler_step: " << d_doppler_step
<< ", use_CFAR_algorithm_flag: " << (d_use_CFAR_algorithm_flag ? "true" : "false"); << ", use_CFAR_algorithm_flag: " << (d_use_CFAR_algorithm_flag ? "true" : "false");
if (d_acq_parameters.blocking)
{
lk.unlock();
}
// Doppler frequency grid loop // Doppler frequency grid loop
if (!d_step_two) if (!d_step_two)
{ {
@ -780,6 +784,11 @@ void pcps_acquisition::acquisition_core(uint64_t samp_count)
} }
} }
if (d_acq_parameters.blocking)
{
lk.lock();
}
if (!d_acq_parameters.bit_transition_flag) if (!d_acq_parameters.bit_transition_flag)
{ {
if (d_test_statistics > d_threshold) if (d_test_statistics > d_threshold)